Hannah
02-02-2007, 06:57 PM
My inframe scrolling text didn't work on Firefox. Can any one help. See my text below my code.
Index page
<!--Start Scoller Content-->
<!--<IFRAME> scroller- By Dynamic Drive-->
<!--For full source code and more DHTML scripts, visit http://www.dynamicdrive.com-->
<!--This credit MUST stay intact for use-->
<font face="Century Gothic">
<iframe id="datamain" src="/pages/external.dat" width=350 height=200 marginwidth=0 marginheight=4 hspace=0 vspace=4 frameborder=1 scrolling=no></iframe>
</font>
<!--End Scroller Content-->
External.dat page
<html>
<body>
<div id="datacontainer" style="position:absolute;left:0;top:10;width:100%" onMouseover="scrollspeed=0" onMouseout="scrollspeed=cache">
<p>
<p>
<p>
<p>
<p align="left"><strong><font face="Century Gothic" style="font-size: 7pt"><a
href="http://www.signalogic.com/sigc55xx_sodimm.html">Sig5502 Board Availability</a><font color="#0000FF"> </font></font></strong><font color="#0000FF" face="Century Gothic" style="font-size: 7pt"><br>
</font>
</font><font face="Verdana" size=1>
<div>
<script language="JavaScript1.2">
//<iframe> script by Dynamicdrive.com
//Specify speed of scroll. Larger=faster (ie: 25)
var scrollspeed=cache=1.8
function initialize(){
marqueeheight=document.all? parent.document.all.datamain.height : parent.document.getElementById("datamain").getAttribute("height")
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")
dataobj.style.top=5
thelength=dataobj.offsetHeight-marqueeheight*(1-.5) //Adjust .5 multiplier for amount it goes up (.5 = 1/2 way, .67 = 2/3 of the way, etc)
scrolltest()
}
function scrolltest(){
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed
if (parseInt(dataobj.style.top)<thelength*(-1))
dataobj.style.top=5
setTimeout("scrolltest()",50)
}
window.onload=initialize
</script>
</body>
</html>
Index page
<!--Start Scoller Content-->
<!--<IFRAME> scroller- By Dynamic Drive-->
<!--For full source code and more DHTML scripts, visit http://www.dynamicdrive.com-->
<!--This credit MUST stay intact for use-->
<font face="Century Gothic">
<iframe id="datamain" src="/pages/external.dat" width=350 height=200 marginwidth=0 marginheight=4 hspace=0 vspace=4 frameborder=1 scrolling=no></iframe>
</font>
<!--End Scroller Content-->
External.dat page
<html>
<body>
<div id="datacontainer" style="position:absolute;left:0;top:10;width:100%" onMouseover="scrollspeed=0" onMouseout="scrollspeed=cache">
<p>
<p>
<p>
<p>
<p align="left"><strong><font face="Century Gothic" style="font-size: 7pt"><a
href="http://www.signalogic.com/sigc55xx_sodimm.html">Sig5502 Board Availability</a><font color="#0000FF"> </font></font></strong><font color="#0000FF" face="Century Gothic" style="font-size: 7pt"><br>
</font>
</font><font face="Verdana" size=1>
<div>
<script language="JavaScript1.2">
//<iframe> script by Dynamicdrive.com
//Specify speed of scroll. Larger=faster (ie: 25)
var scrollspeed=cache=1.8
function initialize(){
marqueeheight=document.all? parent.document.all.datamain.height : parent.document.getElementById("datamain").getAttribute("height")
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")
dataobj.style.top=5
thelength=dataobj.offsetHeight-marqueeheight*(1-.5) //Adjust .5 multiplier for amount it goes up (.5 = 1/2 way, .67 = 2/3 of the way, etc)
scrolltest()
}
function scrolltest(){
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed
if (parseInt(dataobj.style.top)<thelength*(-1))
dataobj.style.top=5
setTimeout("scrolltest()",50)
}
window.onload=initialize
</script>
</body>
</html>