ElvisFan
06-10-2006, 06:16 PM
I'm attempting to install a sliding quote bar on an ezBoard, the code is from JavaSource. It works on a "test board" (a considerably smaller board with less HTML and Java) but installing it on the larger board, it refuses to work.
What information will you need (ie: the original code, the board URL, etc....) if I am able to gain any assistance here?
Here is the original code with our quotes put in place, it is in the Header box:
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
//slider's width
var swidth=350
//slider's height
var sheight=72
//slider's speed
var sspeed=1
//messages: change to your own; use as many as you'd like; set up Hyperlinks to URLs as you normally do: <a target=... href="... URL ...">..message..</a>
var singletext=new Array()
singletext[0]='<div align="center"><font face=Arial size=3 color="white">Well Phuk...<br>All ya gotta do is throw a bra over his head.<br>He`s done.<br> ~Sassy</div></FONT>'
singletext[1]='<div align="center"><font face=Arial size=3 color="white">Floppy is Turkey Taped to a chair next to me.<br> I` m feeding him grapes on a stick. <br>~ Elvie</font></div>'
singletext[2]='<div align="center"><font face=Arial size=3 color="white">You guys watch my back, <br>I`m going after the coonass. <br>~ RIM</font></div>'
singletext[3]='<div align="center"><font face=Arial size=3 color="white">...running through the thread nekkid to distract you... ~Kritter</font></div>'
singletext[4]='<div align="center"><font face=Arial size=3 color="white">Oh and here are some tampons to shoot at their foreheads.<br> ~ Sassy</font></div>'
singletext[5]='<div align="center"><font face=Arial size=3 color="white">Death by tampon.........<br> that`s not the way I`m going.........<br> not in my obit.<br> ~ Floppy</font></div>'
singletext[6]='<div align="center"><font face=Arial size=3 color="white">You know, i like my women like i like my coffee...<br>ground up and in the freezer...<br>good god did i really just say that? <br>~ Codi Mi</font></div>'
singletext[7]='<div align="center"><font face=Arial size=3 color="white">Look at that silly boy <br> running around with a speculum hanging outta his ass. <br>~ Missie</font></div>'
singletext[8]='<div align="center"><font face=Arial size=3 color="white">Fart floppy,<br> fart like you`ve never farted before!! <br>~ Codi Mi</font></div>'
singletext[9]='<div align="center"><font face=Arial size=3 color="white">...finally crawls out from under Sassy`s bra... <br>Wha happened?<br> ~ Phuk</font></div>'
singletext[10]='<div align="center"><font face=Arial size=3 color="white">Just tell them we all got drunk & had a boobie party!! <br>~Ditzzy</font></div>'
singletext[11]='<div align="center"><font face=Arial size=3 color="white">He actually farted the other night <br>and spun around quick to see where the noise came from. <br> ~Hobby</font></div>'
if (singletext.length>1)
i=1
else
i=0
function start(){
if (document.all){
ieslider1.style.top=sheight
iemarquee(ieslider1)
}
else if (document.layers){document.ns4slider.document.ns4slider1.top=sheight
document.ns4slider.document.ns4slider1.visibility='show'
ns4marquee(document.ns4slider.document.ns4slider1)
}
else if (document.getElementById&&!document.all){
document.getElementById('ns6slider1').style.top=sheight
ns6marquee(document.getElementById('ns6slider1'))
}
}
function iemarquee(whichdiv){
iediv=eval(whichdiv)
if (iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){
iediv.style.pixelTop=0
setTimeout("iemarquee(iediv)",100)
}
if (iediv.style.pixelTop>=sheight*-1){
iediv.style.pixelTop-=sspeed
setTimeout("iemarquee(iediv)",100)
}
else{
iediv.style.pixelTop=sheight
iediv.innerHTML=singletext[i]
if (i==singletext.length-1)
i=0
else
i++
}
}
function ns4marquee(whichlayer){
ns4layer=eval(whichlayer)
if (ns4layer.top>0&&ns4layer.top<=sspeed){
ns4layer.top=0
setTimeout("ns4marquee(ns4layer)",100)
}
if (ns4layer.top>=sheight*-1){
ns4layer.top-=sspeed
setTimeout("ns4marquee(ns4layer)",100)
}
else{
ns4layer.top=sheight
ns4layer.document.write(singletext[i])
ns4layer.document.close()
if (i==singletext.length-1)
i=0
else
i++
}
}
function ns6marquee(whichdiv){
ns6div=eval(whichdiv)
if (parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){
ns6div.style.top=0
setTimeout("ns6marquee(ns6div)",100)
}
if (parseInt(ns6div.style.top)>=sheight*-1){
ns6div.style.top=parseInt(ns6div.style.top)-sspeed
setTimeout("ns6marquee(ns6div)",100)
}
else{
ns6div.style.top=sheight
ns6div.innerHTML=singletext[i]
if (i==singletext.length-1)
i=0
else
i++
}
}
// End -->
</script>
</HEAD>
<div align="center">
<span style="borderWidth:1; borderColor:red; width:350; height:72; background:navy">
<ilayer id="ns4slider" width="&{swidth};" height="&{sheight};">
<layer id="ns4slider1" height="&{sheight};" onmouseover="sspeed=0;" onmouseout="sspeed=1">
<script language="JavaScript">
if (document.layers)
document.write(singletext[0])
</script>
</layer></ilayer>
<script language="JavaScript">
if (document.all){
document.writeln('<div style="position:relative;overflow:hidden;width:'+swidth+';height:'+sheight+';clip:rect(0 '+swidth+' '+sheight+' 0);border:1 solid red;" onmouseover="sspeed=0;" onmouseout="sspeed=1">')
document.writeln('<div id="ieslider1" style="position:relative;width:'+swidth+';">')
document.write(singletext[0])
document.writeln('</div></div>')
}
if(document.getElementById&&!document.all){
document.writeln('<div style="position:relative;overflow:hidden;width:'+swidth+';height:'+sheight+';clip:rect(0 '+swidth+' '+sheight+' 0);border:1px solid red;" onmouseover="sspeed=0;" onmouseout="sspeed=1">')
document.writeln('<div id="ns6slider1" style="position:relative;width:'+swidth+';">')
document.write(singletext[0])
document.writeln('</div></div>')
}
</script></span>
</div>
<p><center>
<font face="arial, helvetica" size"-2"></font>
</center><p>
<!-- Script Size: 5.31 KB -->
This is in the <body code> box:
BODY onLoad="start()"
What information will you need (ie: the original code, the board URL, etc....) if I am able to gain any assistance here?
Here is the original code with our quotes put in place, it is in the Header box:
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
//slider's width
var swidth=350
//slider's height
var sheight=72
//slider's speed
var sspeed=1
//messages: change to your own; use as many as you'd like; set up Hyperlinks to URLs as you normally do: <a target=... href="... URL ...">..message..</a>
var singletext=new Array()
singletext[0]='<div align="center"><font face=Arial size=3 color="white">Well Phuk...<br>All ya gotta do is throw a bra over his head.<br>He`s done.<br> ~Sassy</div></FONT>'
singletext[1]='<div align="center"><font face=Arial size=3 color="white">Floppy is Turkey Taped to a chair next to me.<br> I` m feeding him grapes on a stick. <br>~ Elvie</font></div>'
singletext[2]='<div align="center"><font face=Arial size=3 color="white">You guys watch my back, <br>I`m going after the coonass. <br>~ RIM</font></div>'
singletext[3]='<div align="center"><font face=Arial size=3 color="white">...running through the thread nekkid to distract you... ~Kritter</font></div>'
singletext[4]='<div align="center"><font face=Arial size=3 color="white">Oh and here are some tampons to shoot at their foreheads.<br> ~ Sassy</font></div>'
singletext[5]='<div align="center"><font face=Arial size=3 color="white">Death by tampon.........<br> that`s not the way I`m going.........<br> not in my obit.<br> ~ Floppy</font></div>'
singletext[6]='<div align="center"><font face=Arial size=3 color="white">You know, i like my women like i like my coffee...<br>ground up and in the freezer...<br>good god did i really just say that? <br>~ Codi Mi</font></div>'
singletext[7]='<div align="center"><font face=Arial size=3 color="white">Look at that silly boy <br> running around with a speculum hanging outta his ass. <br>~ Missie</font></div>'
singletext[8]='<div align="center"><font face=Arial size=3 color="white">Fart floppy,<br> fart like you`ve never farted before!! <br>~ Codi Mi</font></div>'
singletext[9]='<div align="center"><font face=Arial size=3 color="white">...finally crawls out from under Sassy`s bra... <br>Wha happened?<br> ~ Phuk</font></div>'
singletext[10]='<div align="center"><font face=Arial size=3 color="white">Just tell them we all got drunk & had a boobie party!! <br>~Ditzzy</font></div>'
singletext[11]='<div align="center"><font face=Arial size=3 color="white">He actually farted the other night <br>and spun around quick to see where the noise came from. <br> ~Hobby</font></div>'
if (singletext.length>1)
i=1
else
i=0
function start(){
if (document.all){
ieslider1.style.top=sheight
iemarquee(ieslider1)
}
else if (document.layers){document.ns4slider.document.ns4slider1.top=sheight
document.ns4slider.document.ns4slider1.visibility='show'
ns4marquee(document.ns4slider.document.ns4slider1)
}
else if (document.getElementById&&!document.all){
document.getElementById('ns6slider1').style.top=sheight
ns6marquee(document.getElementById('ns6slider1'))
}
}
function iemarquee(whichdiv){
iediv=eval(whichdiv)
if (iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){
iediv.style.pixelTop=0
setTimeout("iemarquee(iediv)",100)
}
if (iediv.style.pixelTop>=sheight*-1){
iediv.style.pixelTop-=sspeed
setTimeout("iemarquee(iediv)",100)
}
else{
iediv.style.pixelTop=sheight
iediv.innerHTML=singletext[i]
if (i==singletext.length-1)
i=0
else
i++
}
}
function ns4marquee(whichlayer){
ns4layer=eval(whichlayer)
if (ns4layer.top>0&&ns4layer.top<=sspeed){
ns4layer.top=0
setTimeout("ns4marquee(ns4layer)",100)
}
if (ns4layer.top>=sheight*-1){
ns4layer.top-=sspeed
setTimeout("ns4marquee(ns4layer)",100)
}
else{
ns4layer.top=sheight
ns4layer.document.write(singletext[i])
ns4layer.document.close()
if (i==singletext.length-1)
i=0
else
i++
}
}
function ns6marquee(whichdiv){
ns6div=eval(whichdiv)
if (parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){
ns6div.style.top=0
setTimeout("ns6marquee(ns6div)",100)
}
if (parseInt(ns6div.style.top)>=sheight*-1){
ns6div.style.top=parseInt(ns6div.style.top)-sspeed
setTimeout("ns6marquee(ns6div)",100)
}
else{
ns6div.style.top=sheight
ns6div.innerHTML=singletext[i]
if (i==singletext.length-1)
i=0
else
i++
}
}
// End -->
</script>
</HEAD>
<div align="center">
<span style="borderWidth:1; borderColor:red; width:350; height:72; background:navy">
<ilayer id="ns4slider" width="&{swidth};" height="&{sheight};">
<layer id="ns4slider1" height="&{sheight};" onmouseover="sspeed=0;" onmouseout="sspeed=1">
<script language="JavaScript">
if (document.layers)
document.write(singletext[0])
</script>
</layer></ilayer>
<script language="JavaScript">
if (document.all){
document.writeln('<div style="position:relative;overflow:hidden;width:'+swidth+';height:'+sheight+';clip:rect(0 '+swidth+' '+sheight+' 0);border:1 solid red;" onmouseover="sspeed=0;" onmouseout="sspeed=1">')
document.writeln('<div id="ieslider1" style="position:relative;width:'+swidth+';">')
document.write(singletext[0])
document.writeln('</div></div>')
}
if(document.getElementById&&!document.all){
document.writeln('<div style="position:relative;overflow:hidden;width:'+swidth+';height:'+sheight+';clip:rect(0 '+swidth+' '+sheight+' 0);border:1px solid red;" onmouseover="sspeed=0;" onmouseout="sspeed=1">')
document.writeln('<div id="ns6slider1" style="position:relative;width:'+swidth+';">')
document.write(singletext[0])
document.writeln('</div></div>')
}
</script></span>
</div>
<p><center>
<font face="arial, helvetica" size"-2"></font>
</center><p>
<!-- Script Size: 5.31 KB -->
This is in the <body code> box:
BODY onLoad="start()"