Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Insert/config javascript

Posted on 2001-06-07
21
Medium Priority
?
178 Views
Last Modified: 2013-11-18
Hi Experts.

I have a public domain java script banner and need help
make it work.

The files are:

banner.js
bannerconfig.js

How do I implement this scrolling banner to my test.asp page and make it work?

Here is the code for banner.js:

// banner.js

onload = startBanner;

function showMessage(n, show) {
  var whichEl = (NS4) ? eval("message" + n) :
                        eval("message" + n + ".style");
  whichEl.visibility = (show) ? ((NS4) ? "show" : "visible") :
                                ((NS4) ? "hide" : "hidden");
}

function nextMessage() {
  var fromInd = current;
  current = (fromInd == ar.length - 1) ? 0 : fromInd + 1;
  scrollBanner(fromInd, current);
}

function moveUp() {
  if (NS4) {
    fromEl.top -= increment;
    if (toEl.top - increment <= toElTarget) {
      toEl.top = toElTarget;
      clearInterval(intervalID);
      fromEl.visibility = "hide";
      timeoutID = setTimeout("nextMessage()", pause);
    } else {
      toEl.top -= increment;
    }
  } else {
    fromEl.pixelTop -= increment;
    if (toEl.pixelTop - increment <= toElTarget) {
      toEl.pixelTop = toElTarget;
      clearInterval(intervalID);
      fromEl.visibility = "hidden";
      timeoutID = setTimeout("nextMessage()", pause);
    } else {
      toEl.pixelTop -= increment;
    }
  }
}

function scrollBanner(from, to) {
  if (NS4) {
    fromEl = eval("message" + from);
    toEl = eval("message" + to);
    toEl.top = fromEl.top + bannerHeight;
    toElTarget = fromEl.top;
  } else {
    fromEl = eval("message" + from + ".style");
    toEl = eval("message" + to + ".style");
    toEl.pixelTop = fromEl.pixelTop + bannerHeight;
    toElTarget = fromEl.pixelTop;
  }
  showMessage(to, true); // show the upcoming message
  intervalID = setInterval("moveUp()", interval);
}

function makeIE() {
  // assign the necessary code to a variable
  var text = '<DIV ID="banner" STYLE="position:absolute">';
  for (var i = ar.length - 1; i >= 0; i--) {
    text += '<DIV ID="message' + i +
            '" STYLE="position:absolute"></DIV>';
  }
  text += '</DIV>';

  // insert the code before the end of the document
  document.body.insertAdjacentHTML("BeforeEnd", text);

  // define the main element's properties
  with (banner.style) {
    width = bannerWidth;
    height = bannerHeight;
    clip = "rect(0 " + bannerWidth + " " + bannerHeight + " 0)";
    backgroundColor = bannerColor;
    pixelLeft = bannerLeft;
    pixelTop = bannerTop;
  }

  // define the child elements' properties
  for (i = 0; i < ar.length; i++) {
    with (eval("message" + i + ".style")) {
      visibility = "hidden";
      pixelLeft = leftPadding;
      pixelTop = topPadding;
      width = bannerWidth - leftPadding;
      backgroundColor = bannerColor;
    }
  }
}

function makeNS() {
  // create the main element
  banner = new Layer(bannerWidth);

  // define the main element's properties
  with (banner) {
    clip.right = bannerWidth;
    clip.bottom = bannerHeight;
    document.bgColor = bannerColor;
    left = bannerLeft;
    top = bannerTop;
    visibility = "show";
  }

  // define the child elements' properties
  for (var i = 0; i < ar.length; i++) {
    // create a child element
    eval("message" + i + " = " +
         "new Layer(bannerWidth - leftPadding, banner)");
    with(eval("message" + i)) {
      visibility = "hide";
      left = leftPadding;
      top = topPadding;
      document.bgColor = bannerColor;
    }
  }
}

function fillBanner() {
  var whichEl;
  if (NS4) {
    for (var i = 0; i < ar.length; i++) {
      whichEl = eval("message" + i);
      whichEl.document.write(ar[i]);
      whichEl.document.close();
    }
  } else {
    for (var i = 0; i < ar.length; i++) {
      whichEl = eval("message" + i);
      whichEl.innerHTML = ar[i];
    }
  }
}

function startBanner() {
  if (NS4)
    makeNS()
  else
    makeIE();
  fillBanner();
  showMessage(0, true);
  current = 0;
  timeoutID = setTimeout("nextMessage()", pause);
}

--------------------------------------------------------
And here is the code for bannerconfig.js
// bannerconfig.js

var NS4 = (document.layers) ? true : false;
var IE4 = (document.all) ? true : false;

var interval = 20;
var increment = 2;
var pause = 2000;
// var bannerColor = "#ffffcc";
var bannerColor = null;
var leftPadding = 3;
var topPadding = 1;

var bannerLeft = (NS4) ? document.images.holdspace.x :
  holdspace.offsetLeft;
var bannerTop = (NS4) ? document.images.holdspace.y :
  holdspace.offsetTop;
var bannerWidth = (NS4) ? document.images.holdspace.width :
  holdspace.width;

var bannerHeight = (NS4) ? document.images.holdspace.height :
  holdspace.height;

var ar = new Array(
  '<FONT SIZE=1 FACE="Arial">06/01/01</FONT><BR><FONT SIZE=2 FACE="Arial"><A HREF="/news/art/pr105.html">Test </A></FONT>',
  '<FONT SIZE=1 FACE="Arial">04/25/01</FONT><BR><FONT SIZE=2 FACE="Arial"><A HREF="/news/art/pr104.html">Test2</A></FONT>',
  '<FONT SIZE=1 FACE="Arial">04/25/01</FONT><BR><FONT SIZE=2 FACE="Arial"><A HREF="/news/art/pr103.html">Test3</A></FONT>',
  '<FONT SIZE=1 FACE="Arial">04/24/01</FONT><BR><FONT SIZE=2 FACE="Arial"><A HREF="/news/art/pr102.html">Test4</A></FONT>'



  );
0
Comment
Question by:babban
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 10
  • 5
  • 4
  • +1
21 Comments
 
LVL 9

Expert Comment

by:nimaig
ID: 6166569
<script Language = "javascript" src="bannerconfig.js"></script>
<script Language = "javascript" src="banner.js"></script>
0
 

Author Comment

by:babban
ID: 6166590
Nothing happens. I placed the code first in the page.
I using Dreamweaver Ultra Dev.

Still need help.
0
 

Author Comment

by:babban
ID: 6166623
I have placed this code on a clean page.
Nothing happens, must I set som values in
banner.js and bannerconfig.js ?
0
Tutorial: Introduction to Managing a Linux Server

In this tutorial on systemd, we will explore:
-OS/Distro Adoption
-chkconfig and Other Legacy Commands
-Summary and Key Commands

 
LVL 2

Expert Comment

by:rabanero
ID: 6166657
put between <HEAD> ... </HEAD>:

<script Language = "javascript" src="bannerconfig.js"></script>
<script Language = "javascript" src="banner.js"></script>


But your HTML code must have some DIV and LAYER objects than are used by both js files. I see a DIV named "BeforeEnd", but could be more of them.

I recommend you to go to any sample page and check for DIV and LAYER objects which can be used in your functions.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 6166685
Rabanero: The makeIE and makeNS does that on the fly...

What is missing is something like
<img src="blank.gif" name="holdspace" width=100 height=50>
in front of the
<script Language = "javascript" src="bannerconfig.js"></script>
<script Language = "javascript" src="banner.js"></script>

which needs to be in the body of the page

Michel
0
 
LVL 2

Expert Comment

by:rabanero
ID: 6166775
I see, "BeforeEnd" is default name for end of document.

I don't know, go to a page that works and revise the code. Sorry.
0
 
LVL 9

Expert Comment

by:nimaig
ID: 6166792
Try this :



//banner.js

function showMessage(n, show) {
 var whichEl = (NS4) ? eval("message" + n) :
                       eval("message" + n + ".style");
 whichEl.visibility = (show) ? ((NS4) ? "show" : "visible") :
                               ((NS4) ? "hide" : "hidden");
}

function nextMessage() {
 var fromInd = current;
 current = (fromInd == ar.length - 1) ? 0 : fromInd + 1;
 scrollBanner(fromInd, current);
}

function moveUp() {
 if (NS4) {
   fromEl.top -= increment;
   if (toEl.top - increment <= toElTarget) {
     toEl.top = toElTarget;
     clearInterval(intervalID);
     fromEl.visibility = "hide";
     timeoutID = setTimeout("nextMessage()", pause);
   } else {
     toEl.top -= increment;
   }
 } else {
   fromEl.pixelTop -= increment;
   if (toEl.pixelTop - increment <= toElTarget) {
     toEl.pixelTop = toElTarget;
     clearInterval(intervalID);
     fromEl.visibility = "hidden";
     timeoutID = setTimeout("nextMessage()", pause);
   } else {
     toEl.pixelTop -= increment;
   }
 }
}

function scrollBanner(from, to) {
 if (NS4) {
   fromEl = eval("message" + from);
   toEl = eval("message" + to);
   toEl.top = fromEl.top + bannerHeight;
   toElTarget = fromEl.top;
 } else {
   fromEl = eval("message" + from + ".style");
   toEl = eval("message" + to + ".style");
   toEl.pixelTop = fromEl.pixelTop + bannerHeight;
   toElTarget = fromEl.pixelTop;
 }
 showMessage(to, true); // show the upcoming message
 intervalID = setInterval("moveUp()", interval);
}

function makeIE() {
 // assign the necessary code to a variable
 var text = '<DIV ID="banner" STYLE="position:absolute">';
 for (var i = ar.length - 1; i >= 0; i--) {
   text += '<DIV ID="message' + i +
           '" STYLE="position:absolute"></DIV>';
 }
 text += '</DIV>';

 // insert the code before the end of the document
 document.body.insertAdjacentHTML("BeforeEnd", text);

 // define the main element's properties
 with (banner.style) {
   width = bannerWidth;
   height = bannerHeight;
   clip = "rect(0 " + bannerWidth + " " + bannerHeight + " 0)";
   backgroundColor = bannerColor;
   pixelLeft = bannerLeft;
   pixelTop = bannerTop;
 }

 // define the child elements' properties
 for (i = 0; i < ar.length; i++) {
   with (eval("message" + i + ".style")) {
     visibility = "hidden";
     pixelLeft = leftPadding;
     pixelTop = topPadding;
     width = bannerWidth - leftPadding;
     backgroundColor = bannerColor;
   }
 }
}

function makeNS() {
 // create the main element
 banner = new Layer(bannerWidth);

 // define the main element's properties
 with (banner) {
   clip.right = bannerWidth;
   clip.bottom = bannerHeight;
   document.bgColor = bannerColor;
   left = bannerLeft;
   top = bannerTop;
   visibility = "show";
 }

 // define the child elements' properties
 for (var i = 0; i < ar.length; i++) {
   // create a child element
   eval("message" + i + " = " +
        "new Layer(bannerWidth - leftPadding, banner)");
   with(eval("message" + i)) {
     visibility = "hide";
     left = leftPadding;
     top = topPadding;
     document.bgColor = bannerColor;
   }
 }
}

function fillBanner() {
 var whichEl;
 if (NS4) {
   for (var i = 0; i < ar.length; i++) {
     whichEl = eval("message" + i);
     whichEl.document.write(ar[i]);
     whichEl.document.close();
   }
 } else {
   for (var i = 0; i < ar.length; i++) {
     whichEl = eval("message" + i);
     whichEl.innerHTML = ar[i];
   }
 }
}

function startBanner() {
 if (NS4)
   makeNS()
 else
   makeIE();
 fillBanner();
 showMessage(0, true);
 current = 0;
 timeoutID = setTimeout("nextMessage()", pause);
}


// bannerconfig.js
alert("in");
var NS4 = (document.layers) ? true : false;
var IE4 = (document.all) ? true : false;

var interval = 20;
var increment = 2;
var pause = 2000;
// var bannerColor = "#ffffcc";
var bannerColor = null;
var leftPadding = 3;
var topPadding = 1;

/*
var bannerLeft = (NS4) ? document.images.holdspace.x :
 holdspace.offsetLeft;
var bannerTop = (NS4) ? document.images.holdspace.y :
 holdspace.offsetTop;
var bannerWidth = (NS4) ? document.images.holdspace.width :
 holdspace.width;

var bannerHeight = (NS4) ? document.images.holdspace.height :
 holdspace.height;
*/
 
bannerLeft = 10;
bannerTop = 10;
bannerWidth =100;
bannerHeight = 500;

var ar = new Array(
 '<FONT SIZE=1 FACE="Arial">06/01/01</FONT><BR><FONT SIZE=2 FACE="Arial"><A HREF="/news/art/pr105.html">Test</A></FONT>',
 '<FONT SIZE=1 FACE="Arial">04/25/01</FONT><BR><FONT SIZE=2 FACE="Arial"><A HREF="/news/art/pr104.html">Test2</A></FONT>',
 '<FONT SIZE=1 FACE="Arial">04/25/01</FONT><BR><FONT SIZE=2 FACE="Arial"><A HREF="/news/art/pr103.html">Test3</A></FONT>',
 '<FONT SIZE=1 FACE="Arial">04/24/01</FONT><BR><FONT SIZE=2 FACE="Arial"><A HREF="/news/art/pr102.html">Test4</A></FONT>'
);


//test.html
<html>
<head>
<script Language = "javascript" src="banner.js"></script>
<script Language = "javascript" src="bannerconfig.js"></script>
</head>
<body onload = "startBanner()">
<form>
<img src="blank.gif" name="holdspace" width="100" height="50">
</form>
</body>
</html>





0
 
LVL 9

Expert Comment

by:nimaig
ID: 6166819
Try this :

rabanero is right. The image was missing.

//banner.js



function showMessage(n, show) {
 var whichEl = (NS4) ? eval("message" + n) :
                       eval("message" + n + ".style");
 whichEl.visibility = (show) ? ((NS4) ? "show" : "visible") :
                               ((NS4) ? "hide" : "hidden");
}

function nextMessage() {
 var fromInd = current;
 current = (fromInd == ar.length - 1) ? 0 : fromInd + 1;
 scrollBanner(fromInd, current);
}

function moveUp() {
 if (NS4) {
   fromEl.top -= increment;
   if (toEl.top - increment <= toElTarget) {
     toEl.top = toElTarget;
     clearInterval(intervalID);
     fromEl.visibility = "hide";
     timeoutID = setTimeout("nextMessage()", pause);
   } else {
     toEl.top -= increment;
   }
 } else {
   fromEl.pixelTop -= increment;
   if (toEl.pixelTop - increment <= toElTarget) {
     toEl.pixelTop = toElTarget;
     clearInterval(intervalID);
     fromEl.visibility = "hidden";
     timeoutID = setTimeout("nextMessage()", pause);
   } else {
     toEl.pixelTop -= increment;
   }
 }
}

function scrollBanner(from, to) {
 if (NS4) {
   fromEl = eval("message" + from);
   toEl = eval("message" + to);
   toEl.top = fromEl.top + bannerHeight;
   toElTarget = fromEl.top;
 } else {
   fromEl = eval("message" + from + ".style");
   toEl = eval("message" + to + ".style");
   toEl.pixelTop = fromEl.pixelTop + bannerHeight;
   toElTarget = fromEl.pixelTop;
 }
 showMessage(to, true); // show the upcoming message
 intervalID = setInterval("moveUp()", interval);
}

function makeIE() {
 // assign the necessary code to a variable
 var text = '<DIV ID="banner" STYLE="position:absolute">';
 for (var i = ar.length - 1; i >= 0; i--) {
   text += '<DIV ID="message' + i +
           '" STYLE="position:absolute"></DIV>';
 }
 text += '</DIV>';

 // insert the code before the end of the document
 document.body.insertAdjacentHTML("BeforeEnd", text);

 // define the main element's properties
 with (banner.style) {
   width = bannerWidth;
   height = bannerHeight;
   clip = "rect(0 " + bannerWidth + " " + bannerHeight + " 0)";
   backgroundColor = bannerColor;
   pixelLeft = bannerLeft;
   pixelTop = bannerTop;
 }

 // define the child elements' properties
 for (i = 0; i < ar.length; i++) {
   with (eval("message" + i + ".style")) {
     visibility = "hidden";
     pixelLeft = leftPadding;
     pixelTop = topPadding;
     width = bannerWidth - leftPadding;
     backgroundColor = bannerColor;
   }
 }
}

function makeNS() {
 // create the main element
 banner = new Layer(bannerWidth);

 // define the main element's properties
 with (banner) {
   clip.right = bannerWidth;
   clip.bottom = bannerHeight;
   document.bgColor = bannerColor;
   left = bannerLeft;
   top = bannerTop;
   visibility = "show";
 }

 // define the child elements' properties
 for (var i = 0; i < ar.length; i++) {
   // create a child element
   eval("message" + i + " = " +
        "new Layer(bannerWidth - leftPadding, banner)");
   with(eval("message" + i)) {
     visibility = "hide";
     left = leftPadding;
     top = topPadding;
     document.bgColor = bannerColor;
   }
 }
}

function fillBanner() {
 var whichEl;
 if (NS4) {
   for (var i = 0; i < ar.length; i++) {
     whichEl = eval("message" + i);
     whichEl.document.write(ar[i]);
     whichEl.document.close();
   }
 } else {
   for (var i = 0; i < ar.length; i++) {
     whichEl = eval("message" + i);
     whichEl.innerHTML = ar[i];
   }
 }
}

function startBanner() {
 if (NS4)
   makeNS()
 else
   makeIE();
 fillBanner();
 showMessage(0, true);
 current = 0;
 timeoutID = setTimeout("nextMessage()", pause);
}





// bannerconfig.js
alert("in");
var NS4 = (document.layers) ? true : false;
var IE4 = (document.all) ? true : false;

var interval = 20;
var increment = 2;
var pause = 2000;
// var bannerColor = "#ffffcc";
var bannerColor = null;
var leftPadding = 3;
var topPadding = 1;



var bannerLeft = (NS4) ? document.images.holdspace.x :document.images.holdspace.offsetLeft;
var bannerTop = (NS4) ? document.images.holdspace.y :document.images.holdspace.offsetTop;
var bannerWidth = (NS4) ? document.images.holdspace.width :document.images.holdspace.width;
var bannerHeight = (NS4) ? document.images.holdspace.height:document.images.holdspace.height;

var ar = new Array(
 '<FONT SIZE=1 FACE="Arial">06/01/01</FONT><BR><FONT SIZE=2 FACE="Arial"><A HREF="/news/art/pr105.html">Test</A></FONT>',
 '<FONT SIZE=1 FACE="Arial">04/25/01</FONT><BR><FONT SIZE=2 FACE="Arial"><A HREF="/news/art/pr104.html">Test2</A></FONT>',
 '<FONT SIZE=1 FACE="Arial">04/25/01</FONT><BR><FONT SIZE=2 FACE="Arial"><A HREF="/news/art/pr103.html">Test3</A></FONT>',
 '<FONT SIZE=1 FACE="Arial">04/24/01</FONT><BR><FONT SIZE=2 FACE="Arial"><A HREF="/news/art/pr102.html">Test4</A></FONT>'
);



//test.html
<html>
<head>
<script Language = "javascript" src="banner.js"></script>
</head>
<body onload = "startBanner()">
<form>
<img src="blank.gif" name="holdspace" width="100" height="50">
</form>
</body>
<script Language = "javascript" src="bannerconfig.js"></script>
</html>







0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 6166846
nimaig : Except for pasting his code in and creating a web page, what is the difference between my and your comment???

If you remove the text from my comment you have

                     <img src="blank.gif" name="holdspace" width=100 height=50>
                     <script Language = "javascript" src="bannerconfig.js"></script>
                     <script Language = "javascript" src="banner.js"></script>

Which works on my IE5.5 and NS 4.7
0
 
LVL 9

Expert Comment

by:nimaig
ID: 6166872
That's the reason I inserted :
     'rabanero is right. The image was missing'
in my previous comment
     
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 6166892
But that is not a div or a layer.... That is only a placeholder

Michel
0
 

Author Comment

by:babban
ID: 6166950
Hi experts.

The script works now but I cant place it where I want.
Can't I place blanl.gif in a table? It doesn't work.

Nimaiq's code does not work:

//test.html
<html>
<head>
<script Language = "javascript" src="banner.js"></script>
</head>
<body onload = "startBanner()">
<form>
<img src="blank.gif" name="holdspace" width="100" height="50">
</form>
</body>
<script Language = "javascript" src="bannerconfig.js"></script>
</html>

Nothing happens.

I can only get it to work if I place it like this

<img src="blank.gif" name="holdspace" width=100 height=50>
                    <script Language = "javascript" src="bannerconfig.js"></script>
                    <script Language = "javascript" src="banner.js"></script>

but I want the text to scroll it in a table/cell to the right in the page.

??
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 6167059
<IMG SRC="blank.gif"
        NAME="holdspace" ID="holdspace"
        WIDTH="400" HEIGHT="21"
        STYLE="visibility:hidden; position:relative;">

Michel

0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 6167061
So

<body>
<table align="right">
<tr><td><IMG SRC="blank.gif"
        NAME="holdspace" ID="holdspace"
        WIDTH="400" HEIGHT="21"
        STYLE="visibility:hidden; position:relative;"></P></td></tr>
</table>
<script src="bannerconfig.js">></script>
<script src="banner.js"></script>

</body>
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 6167065
Or as they use it in the zip file you download

<HTML>
<HEAD>
<TITLE>A Scrolling JavaScript Banner</TITLE>
</HEAD>
<BODY>
<P>This is the beginning of the document.</P>
<P><IMG SRC="blank.gif"
        NAME="holdspace" ID="holdspace"
        WIDTH="400" HEIGHT="21"
        STYLE="visibility:hidden; position:relative;"></P>
<P>This is the end of the document.</P>
<SCRIPT LANGUAGE="JavaScript1.2">
<!--

if (navigator.appVersion.indexOf("MSIE 4.0; Macintosh;") == -1) {
  with (document) {
    write("<SCRIPT LANGUAGE='JavaScript1.2' SRC='bannerconfig.js'>");
    write("<\/SCRIPT>");
    write("<SCRIPT LANGUAGE='JavaScript1.2' SRC='banner.js'>");
    write("<\/SCRIPT>");
  }
}

//-->
</SCRIPT>
</BODY>
</HTML>
0
 

Author Comment

by:babban
ID: 6167674
Can't make it work where I want:

Here is my 'not so clean' code. Please feel free to make it nicer and get the banner to work. I have placed it
where I want it. (Blank.gif)

Here we go...

<HEAD>
</HEAD><BODY bgColor=#ffffff leftMargin=2 topMargin=2 marginwidth="2" marginheight="2">
<script Language = "javascript" src="scripts/banner.js"></script>
<script Language = "javascript" src="scripts/bannerconfig.js"></script>


<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--

if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
<!--

HM_PG_MenuWidth = 150;
HM_PG_FontFamily = "Arial,sans-serif";
HM_PG_FontSize = 8;
HM_PG_FontBold = 0;
HM_PG_FontItalic = 0;
HM_PG_FontColor = "#ffffff";
HM_PG_FontColorOver = "#ebebeb";
HM_PG_BGColor = "#000099";
HM_PG_BGColorOver = "#0000CC";
HM_PG_ItemPadding = 3;

HM_PG_BorderWidth = 1;
HM_PG_BorderColor = "black";
HM_PG_BorderStyle = "solid";
HM_PG_SeparatorSize = 1;
HM_PG_SeparatorColor = "#d0ff00";
HM_PG_ImageSrc = "tri.gif";
HM_PG_ImageSrcLeft = "triL.gif";

HM_PG_ImageSize = 5;
HM_PG_ImageHorizSpace = 0;
HM_PG_ImageVertSpace = 2;

HM_PG_KeepHilite = true;
HM_PG_ClickStart = 0;
HM_PG_ClickKill = false;
HM_PG_ChildOverlap = 0;
HM_PG_ChildOffset = 10;
HM_PG_ChildPerCentOver = null;
HM_PG_TopSecondsVisible = .5;
HM_PG_StatusDisplayBuild =1;
HM_PG_StatusDisplayLink = 0;
HM_PG_UponDisplay = null;
HM_PG_UponHide = null;
HM_PG_RightToLeft = false;

HM_PG_CreateTopOnly = 1;
HM_PG_ShowLinkCursor = 1;
HM_PG_NSFontOver = true;

//HM_a_TreesToBuild = [1,2];

//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2" SRC="HM_Loader.js" TYPE='text/javascript'></SCRIPT>
<font face="Verdana, Geneva, Sans-serif" size="-2"></font>
<META content="MSHTML 5.00.2014.210" name=GENERATOR>

<TABLE border=0 cellPadding=0 cellSpacing=0 height=60 width=760>
  <TBODY>
  <TR>
    <TD align=left height=35 vAlign=top><IMG border=0 height=80
      src="Inside_sci_com_files/firebar3h.gif" width=760></TD></TR></TBODY></TABLE>
<TABLE border=0 borderColor=#000033 cellPadding=0 cellSpacing=0 height=660
width=756>
  <TBODY>
  <TR>
    <TD height=660>
      <TABLE border=0 cellPadding=0 cellSpacing=0 height="100%" width=756>
        <TBODY>
        <TR>
          <TD background=Inside_sci_com_files/666666_gray.gif height=20>
            <TABLE border=0 cellPadding=0 cellSpacing=0 width=756>
              <TBODY>
              <TR>
                <TD width=252><B><FONT color=#000000
                  face="Verdana, Geneva, Sans-serif"
                  size=-2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NYHETER</FONT></B></TD>
                <TD width=227>
                  <DIV align=center><B><font color="#000000" face="Verdana, Geneva, Sans-serif" size="-2">NYHETER</font></B></DIV>
                </TD>
                <TD width=277>
                  <DIV align=center><B><FONT color=#000000
                  face="Verdana, Geneva, Sans-serif"
                  size=-2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A
                  href="http://inside/calendar">S&Ouml;K I TELEFONLISTA</A></FONT></B></DIV>
                </TD></TR></TBODY></TABLE></TD></TR>
        <TR vAlign=top>
          <TD height=636>
            <TABLE border=0 cellPadding=0 cellSpacing=0 height=636 width=756>
              <TBODY>
              <TR>
                <TD align=middle bgColor=#fffff2 height=636 vAlign=top
width=142>
                  <P><BR>
                  </P>
                  <P>&nbsp;</P>
                  <P>&nbsp;</P>
                  <P><FONT face="Verdana, Arial, Helvetica, sans-serif"
                  size=2><BR>
                    <BR>
                    <BR>
                    <BR>
                    <BR>
                    </FONT></P>
                  <P>&nbsp;</P>
                  <P>&nbsp;</P>
                  <P>&nbsp;</P>
                  <P>&nbsp;</P>
                  <P>&nbsp;</P>
                  <P><FONT face="Verdana, Arial, Helvetica, sans-serif"
                  size=2><BR>
                    <BR>
                    </FONT></P>
                  </TD>
                <TD height=636 vAlign=top width=448>
                  <TABLE border=0 cellPadding=0 cellSpacing=0 height=636
                  width=447>
                    <TBODY>
                    <TR>
                      <TD bgColor=#0066ff width=1><IMG height=10
                        src="Inside_sci_com_files/invisible.gif" width=1></TD>
                      <TD align=middle vAlign=top width=446>
                        <p align="left"><font face="Verdana, Geneva, Sans-serif" size="-2"><br>
                          </font></p>
                        <p>&nbsp;</p>
                      </TD>
                      <TD bgColor=#0066ff width=1><IMG height=10
                        src="Inside_sci_com_files/invisible.gif"
                    width=1></TD></TR></TBODY></TABLE></TD>
                <TD align=right height=636 vAlign=top width=166>
                  <TABLE border=0 cellPadding=4 cellSpacing=0 height=636
                  width="100%">
                    <TBODY>
                    <TR vAlign=top>
                      <TD bgColor=#fffff2 height=25>
                        <TABLE border=0 cellPadding=1 cellSpacing=0 height=125
                        width="100%">
                          <TBODY></TBODY>
                        </TABLE>
                       
                                    <form name="soktelefonlista" method="post" action="soktelefonlista.asp">
                          <font face="Verdana, Geneva, Sans-serif" size="-2">S&ouml;kord:</font>
                          <br>
                          <input type="text" name="searchStr" size="10">
                          <input type="Submit" value="S?k" name="Submit">
                          <br>
                          <font face="Verdana, Geneva, Sans-serif" size="-2">
                          <input type="radio" name="radiobutton" value="radiobutton">
                          Namn<br>
                          <input type="radio" name="radiobutton" value="radiobutton">
                          Avdelning<br>
                          <input type="radio" name="radiobutton" value="radiobutton">
                          Telefonnr<br>
                          <br>
                          Visa hela telefonlistan</font>
                          <p>&nbsp;</p>
                        </form>
                       
                      </TD>
                    </TR>
                    <TR bgColor=#006699 vAlign=top>
                      <TD height=3></TD>
                    </TR>
                    <TR>
                      <TD background=Inside_sci_com_files/666666_gray.gif
                      height=22>
                        <DIV align=center><B><FONT color=#000000
                        face="Verdana, Geneva, Sans-serif" size=-2><A
                        href="http://inside/notice">PLATS F&Ouml;R IDE&Eacute;R</A></FONT></B></DIV>
                      </TD>
                    </TR>
                    <TR>
                      <TD bgColor=#fffff2><FONT
                        face="Verdana, Geneva, Sans-serif" size=-2><img src="blank.gif"
       name="holdspace" id="holdspace"
       width="162" height="235"
       style="visibility:hidden; position:relative;"><br>
                        </FONT></TD>
                    </TR>
                    </TBODY>
                  </TABLE>
                </TD></TR></TBODY></TABLE></TD></TR>
        <TR bgColor=#0066cc>
          <TD height=40>
            <TABLE border=0 cellPadding=0 cellSpacing=0 height=40 width=756>
              <TBODY>
              <TR>
                <TD bgColor=#0066cc colSpan=3 width=680>
                  <DIV align=center><FONT color=white
                  face="Verdana, Arial, Helvetica, sans-serif" size=1><B>Last
                  Updated: </B>Monday, April 23, 2001 8:56:34
              AM</FONT></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></BODY></HTML>
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 6167747
Put the JS files AFTER the image - so at the bottom or so...

Michel
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 400 total points
ID: 6167771
                face="Verdana, Arial, Helvetica, sans-serif" size=1><B>Last
                 Updated: </B>Monday, April 23, 2001 8:56:34
             AM</FONT></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<script Language = "javascript" src="banner.js"></script>
<script Language = "javascript" src="bannerconfig.js"></script>
             
             </BODY></HTML>

works
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 6167888
Assuming of course that
HM_Loader.js
does not interfere...

Michel
0
 

Author Comment

by:babban
ID: 6177228
It works now! Thx!!!!!!
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 6177835
Grattis!

Michel
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question