Forum Moderators: open
<body onload="dothis();dothat()">
In other words, How do I get "dothis()" and "dothat()"?!?!
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy for Windows (vers 1st February 2004), see www.w3.org">
<title>NOTHING</title>
<style type="text/css">
BODY {background: #EDF2F9}
BODY {background-image: url(kgfree4back.jpg); }
BODY {font-family:Trebuchet MS}
BODY {color:#000000}
</style>
<script language="JavaScript" type="text/javascript">
<!--
//Disable right click script III- By Renigade
//For full source code, visit [dynamicdrive.com...]
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers¦¦(document.getElementById&&!document.all)) {
if (e.which==2¦¦e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>
<style type="text/css">
A{COLOR:#0057AE;FONT-FAMILY:verdana,arial,helvetica;FONT-SIZE:10pt;TEXT-DECORATION:none}
TD,P,body{FONT-FAMILY:verdana,arial,helvetica;FONT-SIZE:10pt;}
A:hover{COLOR:#9EB5DA;}
</style>
</head>
<body style="background-image: url(http://example.com/kgfree4back.jpg);" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<table border="0" cellspacing="0" cellpadding="0" width="777" nof="LY">
<tr valign="top" align="left">
<td height="116" align="center" valign="middle" width="777"><img id="Picture16" height="116" width="777" src="http://example.com/kgfree4top.jpg" border="0"></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="777" nof="LY">
<tr valign="top" align="left">
<td height="50" align="center" valign="middle" width="777"><img id="Picture17" height="50" width="777" src="http://example.com/kgfree4top1.jpg" border="0" usemap="#map0"><map name="map0">
<area shape="rect" alt="" coords="13,7,72,43" href="mailto:YOUREMAIL">
</map></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="736" nof="LY">
<tr valign="top" align="left">
<td>
<table border="0" cellspacing="0" cellpadding="0" width="174" nof="LY">
<tr valign="top" align="left">
<td height="46" colspan="3" align="center" valign="middle" width="174"><img id="Picture18" height="46" width="174" src="http://example.com/kgfree4left.jpg" border="0"></td>
</tr>
<tr valign="top" align="left">
<td width="14" height="6"><img src="./clearpixel.gif" width="14" height="1" border="0"></td>
<td width="147"><img src="./clearpixel.gif" width="147" height="1" border="0"></td>
<td width="13"><img src="./clearpixel.gif" width="13" height="1" border="0"></td>
</tr>
<tr valign="top" align="left">
<td></td>
<td width="147" class="TextObject">
<!-- START BUTTONS -->
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="129" height="255">
<param name="movie" value="Starlight.swf">
<param name="quality" value="high">
<param name="menu" value="true">
<embed src="Starlight.swf" quality="high" menu="true" pluginspage="http://www.macromedia.com/shockwave/ download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="129" height="255">
</object> <!-- END BUTTONS -->
<br>
<!-- PASS START -->
<!--Begin Sign-In Form-->
<br>
<div align="center" style="width: 100px; border: 1px solid #999999; background-color: #F2F4FA;">
<form action="http://pub29.bravenet.com/passwd/show.php" method="post" style="margin:0px;">
<div style="margin:10px 10px 4px 10px; font: 11px arial; color: black; text-align:left;">
User Name: <input type="text" name="uname" size="15" maxlength="254" style="border: 1px solid #cccccc; width: 115px"> Password: <input type="password" name="passwd" size="15" maxlength="254" style="border: 1px solid #cccccc; width: 115px;"> <input type="hidden" style="border: 0px solid black; height: 0px; width: 0px;" name="usernum" value="2443063768"> <input style="border: 0px solid black; height: 0px; width: 0px;" type="hidden" name="cpv" value="2">
</div>
<div style="margin:4px 0px 0px 7px; float:left;"></div>
<div style="margin:0px 3px 7px 0px; float:right;">
<input type="submit" name="submit" value="Login" style="width: 50px;">
</div>
</form>
</div><br>
<!--End Sign-In Form-->
<!-- PASS END -->
</td>
</tr>
</table>
</td>
<td>
<table border="0" cellspacing="0" cellpadding="0" width="562" nof="LY">
<tr valign="top" align="left">
<td width="27" height="18"><img src="./clearpixel.gif" width="27" height="1" border="0"></td>
<td width="206"><img src="./clearpixel.gif" width="206" height="1" border="0"></td>
<td></td>
<td width="224"><img src="./clearpixel.gif" width="224" height="1" border="0"></td>
</tr>
<tr valign="top" align="left">
<td></td>
<td colspan="3" width="535" class="TextObject">
<!-- START CONTENT AREA -->
<table align='center' width='100%' border='0' cellpadding='0' cellspacing='0' summary="">
<tr>
<td>
<p align="center"> </p>
</td>
</tr>
<tr>
<td>
<br>
<p align="center"> </p>
</td>
</tr>
<tr>
<td>
<br>
<p align="center"><!-- Start Bravenet.com Service Code -->
<script language="javascript" type="text/javascript">
function p(){window.open('http://pub29.bravenet.com/announce/show.php?usernum=2443063768&cpv=2',
'bnettaf','width=525,height=570,top=10,left=150,toolbars=no,resizable=1');}
</script></p><br>
<div align="center">
<a href="javascript:%20p();"><img title="Free Tell A Friend from Bravenet" alt="Free Tell A Friend from Bravenet" src="http://images.bravenet.com/cp/announce.gif" border="0"></a>
</div><!-- End Bravenet.com Service Code --><br>
</td>
</tr>
<tr>
<td>
<div align="center">
<script language="javascript" type="text/javascript">
var content='<p align="center"><font color="black">Added a "HOME" link to the bottom of every page.<br><br>Organized Extras Page by Catagory<\/font><\/p>';
var boxheight=60; // BACKGROUND BOX HEIGHT IN PIXELS.
var boxwidth=500; // BACKGROUND BOX WIDTH IN PIXELS.
var boxcolor="#EDF2F8"; // BACKGROUND BOX COLOR.
var speed=100; // SPEED OF SCROLL IN MILLISECONDS (1 SECOND=1000 MILLISECONDS)..
var pixelstep=2; // PIXELS "STEPS" PER REPITITION.
var godown=false; // TOP TO BOTTOM=TRUE , BOTTOM TO TOP=FALSE
// DO NOT EDIT BEYOND THIS POINT
var outer,inner,elementheight,ref,refX,refY;
var w3c=(document.getElementById)?true:false;
var ns4=(document.layers)?true:false;
var ie4=(document.all &&!w3c)?true:false;
var ie5=(document.all && w3c)?true:false;
var ns6=(w3c && navigator.appName.indexOf("Netscape")>=0)?true:false;
var txt='';
if(ns4){
txt+='<table cellpadding=0 cellspacing=0 border=0 height='+boxheight+' width='+boxwidth+'><tr><td>';
txt+='<ilayer name="ref" bgcolor="'+boxcolor+'" width='+boxwidth+' height='+boxheight+'><\/ilayer>';
txt+='<\/td><\/tr><\/table>'
txt+='<layer name="outer" bgcolor="'+boxcolor+'" visibility="hidden" width='+boxwidth+' height='+boxheight+'>';
txt+='<layer name="inner" width='+(boxwidth-4)+' height='+(boxheight-4)+' visibility="hidden" left="2" top="2" >'+content+'<\/layer>';
txt+='<\/layer>';
}else{
txt+='<div id="ref" style="position:relative; width:'+boxwidth+'; height:'+boxheight+'; background-color:'+boxcolor+';" ><\/div>';
txt+='<div id="outer" style="position:absolute; width:'+boxwidth+'; height:'+boxheight+'; visibility:hidden; background-color:'+boxcolor+'; overflow:hidden" >';
txt+='<div id="inner" style="position:absolute; visibility:visible; left:2px; top:2px; width:'+(boxwidth-4)+'; overflow:hidden; cursor:default;">'+content+'<\/div>';
txt+='<\/div>';
}
document.write(txt);
function getElHeight(el){
if(ns4)return (el.document.height)? el.document.height : el.clip.bottom-el.clip.top;
else if(ie4¦¦ie5)return (el.style.height)? el.style.height : el.clientHeight;
else return (el.style.height)? parseInt(el.style.height):parseInt(el.offsetHeight);
}
function getPageLeft(el){
var x;
if(ns4)return el.pageX;
if(ie4¦¦w3c){
x = 0;
while(el.offsetParent!=null){
x+=el.offsetLeft;
el=el.offsetParent;
}
x+=el.offsetLeft;
return x;
}}
function getPageTop(el){
var y;
if(ns4)return el.pageY;
if(ie4¦¦w3c){
y=0;
while(el.offsetParent!=null){
y+=el.offsetTop;
el=el.offsetParent;
}
y+=el.offsetTop;
return y;
}}
function scrollbox(){
if(ns4){
inner.top+=(godown)? pixelstep: -pixelstep;
if(godown){
if(inner.top>boxheight)inner.top=-elementheight;
}else{
if(inner.top<2-elementheight)inner.top=boxheight+2;
}}else{
inner.style.top=parseInt(inner.style.top)+((godown)? pixelstep: -pixelstep)+'px';
if(godown){
if(parseInt(inner.style.top)>boxheight)inner.style.top=-elementheight+'px';
}else{
if(parseInt(inner.style.top)<2-elementheight)inner.style.top=boxheight+2+'px';
}}}
window.onresize=function(){
if(ns4)setTimeout('history.go(0)', 400);
else{
outer.style.left=getPageLeft(ref)+'px';
outer.style.top=getPageTop(ref)+'px';
}}
window.onload=function(){
outer=(ns4)?document.layers['outer']:(ie4)?document.all['outer']:document.getElementById('outer');
inner=(ns4)?outer.document.layers['inner']:(ie4)?document.all['inner']:document.getElementById('inner');
ref=(ns4)?document.layers['ref']:(ie4)?document.all['ref']:document.getElementById('ref');
elementheight=getElHeight(inner);
if(ns4){
outer.moveTo(getPageLeft(ref),getPageTop(ref));
outer.clip.width=boxwidth;
outer.clip.height=boxheight;
inner.top=(godown)? -elementheight : boxheight-2;
inner.clip.width=boxwidth-4;
inner.clip.height=elementheight;
outer.visibility="show";
inner.visibility="show";
}else{
outer.style.left=getPageLeft(ref)+'px';
outer.style.top=getPageTop(ref)+'px';
inner.style.top=((godown)? -elementheight : boxheight)+'px';
inner.style.clip='rect(0px, '+(boxwidth-4)+'px, '+(elementheight)+'px, 0px)';
outer.style.visibility="visible";
}
setInterval('scrollbox()',speed);
}
</script>
</div>
</td>
</tr>
<tr>
<td>
<br>
<p align="center"> </p>
</td>
</tr>
<tr>
<td>
<br>
<p align="center"> </p>
</td>
</tr>
<tr>
<td>
<br>
<p align="center"> </p>
</td>
</tr>
<tr>
<td>
<br>
<br>
<p align="center"> </p>
</td>
</tr>
<tr>
<td>
<br>
<p align="center"> </p>
</td>
</tr>
<tr>
<td>
<br>
<br>
<p align="center"><b><!-- site search --><!-- Start Bravenet.com Service Code --></b></p>
<div align="center">
<div align="center" style="width: 210px; border: 1px solid #999999; background-color: #F2F4FA;">
<form action="http://pub29.bravenet.com/search2/search.php" method="post" style="margin:0px;">
<div style="background-color:#DBE0F5; padding:3px; font:12px arial; color:black;">
<b>Search My Site</b>
</div>
<div style="margin:10px; font: 11px arial; color: black; text-align:right;">
<input type="hidden" style="border: 0px solid black; height: 0px; width: 0px;" name="usernum" value="2443063768"><input type="hidden" style="border: 0px solid black; height: 0px; width: 0px;" name="cpv" value="2"><input type="text" size="15" name="keyword"> <input type="submit" value="Search">
</div>
<div align="center" style="margin:5px;"></div>
</form>
</div>
</div><!-- End Bravenet.com Service Code --><!-- end site search --><br>
<br>
</td>
</tr>
<tr>
<td>
<p align="center"> </p>
</td>
</tr>
<tr>
<td>
<p align="center"> </p>
</td>
</tr>
<tr>
<td>
<br>
<p align="center"><b><!-- START COUNTER --><!-- Start Bravenet.com Service Code -->
<script language="JavaScript" type="text/javascript" src="http://pub29.bravenet.com/counter/code.php?id=376448&usernum=2443063768&cpv=2">
</script> <!-- END DO NOT MODIFY --><!-- END COUNTER --></b></p><br>
</td>
</tr>
<tr>
<td>
<p align="center"> </p>
</td>
</tr>
<tr>
<td>
<p align="center"> </p>
</td>
</tr>
</table><!-- END CONTENT AREA -->
</td>
</tr>
<tr valign="top" align="left">
<td colspan="4" height="47"></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Any help would be appreciated. (I tried to leave in all the javascript code in the above mock up, the only thing that won't show up is the Scroller Board that matches the background with black vertical scrolling text. I hope I make sense! )
[edited by: korkus2000 at 1:48 pm (utc) on April 29, 2004]
[edit reason] No personal URLs please [/edit]
There isn't any onload handler conflict here. The only problem seems to come from the Flash object if it doesn't download.
An onload will fire whenever the page says it's finished. If images aren't available, then the onload is fired once the browser finds out. However, this doesn't seem to be happening in the case of the Flash.
The scroller is initiated here:
window.onload = function(){...etc
If onload doesn't fire, it doesn't get initiated.
I have tried naming the function:
function initScroller(){ ..etc
then putting a call to this at the bottom of the page - thus not requiring the onload, but called when all elements are loaded. This isn't working, and I don't know why.
When I comment out the Flash object, *the page works perfectly* (tested IE).
Can you live without it?
PS
You have this thing: function%20p(){window.open....
An %20 has crept in. It still works, but you might as well lose it.
This code is the Javascript Scroller:
<!--START LISTING SCROLLER CODE-->
<div align="center">
<script language="javascript" type="text/javascript">
//Vertical Scroller v1.2- by Brian of www.ScriptAsylum.com
//Visit JavaScript Kit (http://javascriptkit.com) for script
//ENTER CONTENT TO SCROLL BELOW.
var content='<p align="center"><font color="black">Added a "HOME" link to the bottom of every page.<br><br>Organized Extras Page by Catagory<\/font><\/p>';
var boxheight=60; // BACKGROUND BOX HEIGHT IN PIXELS.
var boxwidth=500; // BACKGROUND BOX WIDTH IN PIXELS.
var boxcolor="#EDF2F8"; // BACKGROUND BOX COLOR.
var speed=100; // SPEED OF SCROLL IN MILLISECONDS (1 SECOND=1000 MILLISECONDS)..
var pixelstep=2; // PIXELS "STEPS" PER REPITITION.
var godown=false; // TOP TO BOTTOM=TRUE , BOTTOM TO TOP=FALSE
// DO NOT EDIT BEYOND THIS POINT
var outer,inner,elementheight,ref,refX,refY;
var w3c=(document.getElementById)?true:false;
var ns4=(document.layers)?true:false;
var ie4=(document.all &&!w3c)?true:false;
var ie5=(document.all && w3c)?true:false;
var ns6=(w3c && navigator.appName.indexOf("Netscape")>=0)?true:false;
var txt='';
if(ns4){
txt+='<table cellpadding=0 cellspacing=0 border=0 height='+boxheight+' width='+boxwidth+'><tr><td>';
txt+='<ilayer name="ref" bgcolor="'+boxcolor+'" width='+boxwidth+' height='+boxheight+'><\/ilayer>';
txt+='<\/td><\/tr><\/table>'
txt+='<layer name="outer" bgcolor="'+boxcolor+'" visibility="hidden" width='+boxwidth+' height='+boxheight+'>';
txt+='<layer name="inner" width='+(boxwidth-4)+' height='+(boxheight-4)+' visibility="hidden" left="2" top="2" >'+content+'<\/layer>';
txt+='<\/layer>';
}else{
txt+='<div id="ref" style="position:relative; width:'+boxwidth+'; height:'+boxheight+'; background-color:'+boxcolor+';" ><\/div>';
txt+='<div id="outer" style="position:absolute; width:'+boxwidth+'; height:'+boxheight+'; visibility:hidden; background-color:'+boxcolor+'; overflow:hidden" >';
txt+='<div id="inner" style="position:absolute; visibility:visible; left:2px; top:2px; width:'+(boxwidth-4)+'; overflow:hidden; cursor:default;">'+content+'<\/div>';
txt+='<\/div>';
}
document.write(txt);
function getElHeight(el){
if(ns4)return (el.document.height)? el.document.height : el.clip.bottom-el.clip.top;
else if(ie4¦¦ie5)return (el.style.height)? el.style.height : el.clientHeight;
else return (el.style.height)? parseInt(el.style.height):parseInt(el.offsetHeight);
}
function getPageLeft(el){
var x;
if(ns4)return el.pageX;
if(ie4¦¦w3c){
x = 0;
while(el.offsetParent!=null){
x+=el.offsetLeft;
el=el.offsetParent;
}
x+=el.offsetLeft;
return x;
}}
function getPageTop(el){
var y;
if(ns4)return el.pageY;
if(ie4¦¦w3c){
y=0;
while(el.offsetParent!=null){
y+=el.offsetTop;
el=el.offsetParent;
}
y+=el.offsetTop;
return y;
}}
function scrollbox(){
if(ns4){
inner.top+=(godown)? pixelstep: -pixelstep;
if(godown){
if(inner.top>boxheight)inner.top=-elementheight;
}else{
if(inner.top<2-elementheight)inner.top=boxheight+2;
}}else{
inner.style.top=parseInt(inner.style.top)+((godown)? pixelstep: -pixelstep)+'px';
if(godown){
if(parseInt(inner.style.top)>boxheight)inner.style.top=-elementheight+'px';
}else{
if(parseInt(inner.style.top)<2-elementheight)inner.style.top=boxheight+2+'px';
}}}
window.onresize=function(){
if(ns4)setTimeout('history.go(0)', 400);
else{
outer.style.left=getPageLeft(ref)+'px';
outer.style.top=getPageTop(ref)+'px';
}}
window.onload=function(){
outer=(ns4)?document.layers['outer']:(ie4)?document.all['outer']:document.getElementById('outer');
inner=(ns4)?outer.document.layers['inner']:(ie4)?document.all['inner']:document.getElementById('inner');
ref=(ns4)?document.layers['ref']:(ie4)?document.all['ref']:document.getElementById('ref');
elementheight=getElHeight(inner);
if(ns4){
outer.moveTo(getPageLeft(ref),getPageTop(ref));
outer.clip.width=boxwidth;
outer.clip.height=boxheight;
inner.top=(godown)? -elementheight : boxheight-2;
inner.clip.width=boxwidth-4;
inner.clip.height=elementheight;
outer.visibility="show";
inner.visibility="show";
}else{
outer.style.left=getPageLeft(ref)+'px';
outer.style.top=getPageTop(ref)+'px';
inner.style.top=((godown)? -elementheight : boxheight)+'px';
inner.style.clip='rect(0px, '+(boxwidth-4)+'px, '+(elementheight)+'px, 0px)';
outer.style.visibility="visible";
}
setInterval('scrollbox()',speed);
}
</script>
</div>
<!--END LISTING SCROLLER CODE-->
I tried to include the above code in this page below (Look for bolded text to see Scroller):
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy for Windows (vers 1st February 2004), see www.w3.org">
<title>Something</title>
<style type="text/css">
BODY {background: #EDF2F9}
BODY {background-image: url(kgfree4back.jpg); }
BODY {font-family:Trebuchet MS}
BODY {color:#000000}
</style>
<script language="JavaScript" type="text/javascript">
<!--
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers¦¦(document.getElementById&&!document.all)) {
if (e.which==2¦¦e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>
<style type="text/css">
A{COLOR:#0057AE;FONT-FAMILY:verdana,arial,helvetica;FONT-SIZE:10pt;TEXT-DECORATION:none}
TD,P,body{FONT-FAMILY:verdana,arial,helvetica;FONT-SIZE:10pt;}
A:hover{COLOR:#9EB5DA;}
</style>
</head>
<body style="background-image: url(http://example.com/kgfree4back.jpg);" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<table border="0" cellspacing="0" cellpadding="0" width="777" nof="LY">
<tr valign="top" align="left">
<td height="116" align="center" valign="middle" width="777"><img id="Picture16" height="116" width="777" src="http://example.com/kgfree4top.jpg" border="0"></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="777" nof="LY">
<tr valign="top" align="left">
<td height="50" align="center" valign="middle" width="777"><img id="Picture17" height="50" width="777" src="http://example.com/kgfree4top1.jpg" border="0" usemap="#map0"><map name="map0">
<area shape="rect" alt="" coords="13,7,72,43" href="mailto:YOUREMAIL">
</map></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="736" nof="LY">
<tr valign="top" align="left">
<td>
<table border="0" cellspacing="0" cellpadding="0" width="174" nof="LY">
<tr valign="top" align="left">
<td height="46" colspan="3" align="center" valign="middle" width="174"><img id="Picture18" height="46" width="174" src="http://example.com/kgfree4left.jpg" border="0"></td>
</tr>
<tr valign="top" align="left">
<td width="14" height="6"><img src="./clearpixel.gif" width="14" height="1" border="0"></td>
<td width="147"><img src="./clearpixel.gif" width="147" height="1" border="0"></td>
<td width="13"><img src="./clearpixel.gif" width="13" height="1" border="0"></td>
</tr>
<tr valign="top" align="left">
<td></td>
</tr>
</table>
</td>
<td>
<table border="0" cellspacing="0" cellpadding="0" width="562" nof="LY">
<tr valign="top" align="left">
<td width="27" height="18"><img src="./clearpixel.gif" width="27" height="1" border="0"></td>
<td width="206"><img src="./clearpixel.gif" width="206" height="1" border="0"></td>
<td></td>
<td width="224"><img src="./clearpixel.gif" width="224" height="1" border="0"></td>
</tr>
<tr valign="top" align="left">
<td></td>
<td colspan="3" width="535" class="TextObject">
<!-- START CONTENT AREA -->
<table align='center' width='100%' border='0' cellpadding='0' cellspacing='0' summary="">
<tr>
<td>
<p align="center"><b><!-- site search --><!-- Start Bravenet.com Service Code --></b></p>
<div align="center">
<div align="center" style="width: 210px; border: 1px solid #999999; background-color: #F2F4FA;">
<form action="http://pub29.bravenet.com/search2/search.php" method="post" style="margin:0px;">
<div style="background-color:#DBE0F5; padding:3px; font:12px arial; color:black;">
<b>Search My Site</b>
</div>
<div style="margin:10px; font: 11px arial; color: black; text-align:right;">
<input type="hidden" style="border: 0px solid black; height: 0px; width: 0px;" name="usernum" value="2443063768"><input type="hidden" style="border: 0px solid black; height: 0px; width: 0px;" name="cpv" value="2"><input type="text" size="15" name="keyword"> <input type="submit" value="Search">
</div>
<div align="center" style="margin:5px;"></div>
</form>
</div>
</div><!-- End Bravenet.com Service Code --><!-- end site search --><br>
<br>
</td>
</tr>
<tr>
<td>
<!--HERE IT IS, YEAH-->
<div align="center">
<script language="javascript" type="text/javascript">
//Vertical Scroller v1.2- by Brian of www.ScriptAsylum.com
//Visit JavaScript Kit (http://javascriptkit.com) for script
//ENTER CONTENT TO SCROLL BELOW.
var content='<p align="center"><font color="black">Added a "HOME" link to the bottom of every page.<br><br>Organized Extras Page by Catagory<\/font><\/p>';
var boxheight=60; // BACKGROUND BOX HEIGHT IN PIXELS.
var boxwidth=500; // BACKGROUND BOX WIDTH IN PIXELS.
var boxcolor="#EDF2F8"; // BACKGROUND BOX COLOR.
var speed=100; // SPEED OF SCROLL IN MILLISECONDS (1 SECOND=1000 MILLISECONDS)..
var pixelstep=2; // PIXELS "STEPS" PER REPITITION.
var godown=false; // TOP TO BOTTOM=TRUE , BOTTOM TO TOP=FALSE
// DO NOT EDIT BEYOND THIS POINT
var outer,inner,elementheight,ref,refX,refY;
var w3c=(document.getElementById)?true:false;
var ns4=(document.layers)?true:false;
var ie4=(document.all &&!w3c)?true:false;
var ie5=(document.all && w3c)?true:false;
var ns6=(w3c && navigator.appName.indexOf("Netscape")>=0)?true:false;
var txt='';
if(ns4){
txt+='<table cellpadding=0 cellspacing=0 border=0 height='+boxheight+' width='+boxwidth+'><tr><td>';
txt+='<ilayer name="ref" bgcolor="'+boxcolor+'" width='+boxwidth+' height='+boxheight+'><\/ilayer>';
txt+='<\/td><\/tr><\/table>'
txt+='<layer name="outer" bgcolor="'+boxcolor+'" visibility="hidden" width='+boxwidth+' height='+boxheight+'>';
txt+='<layer name="inner" width='+(boxwidth-4)+' height='+(boxheight-4)+' visibility="hidden" left="2" top="2" >'+content+'<\/layer>';
txt+='<\/layer>';
}else{
txt+='<div id="ref" style="position:relative; width:'+boxwidth+'; height:'+boxheight+'; background-color:'+boxcolor+';" ><\/div>';
txt+='<div id="outer" style="position:absolute; width:'+boxwidth+'; height:'+boxheight+'; visibility:hidden; background-color:'+boxcolor+'; overflow:hidden" >';
txt+='<div id="inner" style="position:absolute; visibility:visible; left:2px; top:2px; width:'+(boxwidth-4)+'; overflow:hidden; cursor:default;">'+content+'<\/div>';
txt+='<\/div>';
}
document.write(txt);
function getElHeight(el){
if(ns4)return (el.document.height)? el.document.height : el.clip.bottom-el.clip.top;
else if(ie4¦¦ie5)return (el.style.height)? el.style.height : el.clientHeight;
else return (el.style.height)? parseInt(el.style.height):parseInt(el.offsetHeight);
}
function getPageLeft(el){
var x;
if(ns4)return el.pageX;
if(ie4¦¦w3c){
x = 0;
while(el.offsetParent!=null){
x+=el.offsetLeft;
el=el.offsetParent;
}
x+=el.offsetLeft;
return x;
}}
function getPageTop(el){
var y;
if(ns4)return el.pageY;
if(ie4¦¦w3c){
y=0;
while(el.offsetParent!=null){
y+=el.offsetTop;
el=el.offsetParent;
}
y+=el.offsetTop;
return y;
}}
function scrollbox(){
if(ns4){
inner.top+=(godown)? pixelstep: -pixelstep;
if(godown){
if(inner.top>boxheight)inner.top=-elementheight;
}else{
if(inner.top<2-elementheight)inner.top=boxheight+2;
}}else{
inner.style.top=parseInt(inner.style.top)+((godown)? pixelstep: -pixelstep)+'px';
if(godown){
if(parseInt(inner.style.top)>boxheight)inner.style.top=-elementheight+'px';
}else{
if(parseInt(inner.style.top)<2-elementheight)inner.style.top=boxheight+2+'px';
}}}
window.onresize=function(){
if(ns4)setTimeout('history.go(0)', 400);
else{
outer.style.left=getPageLeft(ref)+'px';
outer.style.top=getPageTop(ref)+'px';
}}
window.onload=function(){
outer=(ns4)?document.layers['outer']:(ie4)?document.all['outer']:document.getElementById('outer');
inner=(ns4)?outer.document.layers['inner']:(ie4)?document.all['inner']:document.getElementById('inner');
ref=(ns4)?document.layers['ref']:(ie4)?document.all['ref']:document.getElementById('ref');
elementheight=getElHeight(inner);
if(ns4){
outer.moveTo(getPageLeft(ref),getPageTop(ref));
outer.clip.width=boxwidth;
outer.clip.height=boxheight;
inner.top=(godown)? -elementheight : boxheight-2;
inner.clip.width=boxwidth-4;
inner.clip.height=elementheight;
outer.visibility="show";
inner.visibility="show";
}else{
outer.style.left=getPageLeft(ref)+'px';
outer.style.top=getPageTop(ref)+'px';
inner.style.top=((godown)? -elementheight : boxheight)+'px';
inner.style.clip='rect(0px, '+(boxwidth-4)+'px, '+(elementheight)+'px, 0px)';
outer.style.visibility="visible";
}
setInterval('scrollbox()',speed);
}
</script>
</div><!--HERE IT ENDS, YEAH-->
</td>
</tr>
<tr>
<td>
<br>
<p align="center"><b><!-- START COUNTER --><!-- Start Bravenet.com Service Code -->
<script language="JavaScript" type="text/javascript" src="http://pub29.bravenet.com/counter/code.php?id=376448&usernum=2443063768&cpv=2">
</script> <!-- END DO NOT MODIFY --><!-- END COUNTER --></b></p><br>
</td>
</tr>
</table><!-- END CONTENT AREA -->
</td>
</tr>
<tr valign="top" align="left">
<td colspan="4" height="47"></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
But when I tested it, it won't work! All I want is for someone to fix it for me, PLEASE. This is driving me nuts! I am using the lastest edtion of IE on a WinXP Desktop, just for specification. I don't know if this is truly a Javascript problem, but I could use any bit of help. Thanks.
[edited by: korkus2000 at 1:48 pm (utc) on April 29, 2004]
[edit reason] Please no URLS [/edit]