Solved

Insert/config javascript

Posted on 2001-06-07
21
168 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
  • 10
  • 5
  • 4
  • +1
21 Comments
 
LVL 9

Expert Comment

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

Author Comment

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

Still need help.
0
 

Author Comment

by:babban
Comment Utility
I have placed this code on a clean page.
Nothing happens, must I set som values in
banner.js and bannerconfig.js ?
0
 
LVL 2

Expert Comment

by:rabanero
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
That's the reason I inserted :
     'rabanero is right. The image was missing'
in my previous comment
     
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 75

Expert Comment

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

Michel
0
 

Author Comment

by:babban
Comment Utility
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
Comment Utility
<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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Put the JS files AFTER the image - so at the bottom or so...

Michel
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 100 total points
Comment Utility
                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
Comment Utility
Assuming of course that
HM_Loader.js
does not interfere...

Michel
0
 

Author Comment

by:babban
Comment Utility
It works now! Thx!!!!!!
0
 
LVL 75

Expert Comment

by:Michel Plungjan
Comment Utility
Grattis!

Michel
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now