Log in

View Full Version : Inframe didn't work on Firefox



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">&nbsp;</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>

mburt
02-02-2007, 07:06 PM
<iframe id="datamain" src="/pages/external.dat" width=350 height=200 marginwidth=0 marginheight=4 hspace=0 vspace=4 frameborder=1 scrolling=no></iframe>

Make sure the above in red is placed in the right folder on your server. Other than that, I can't see the problem.

Hannah
02-02-2007, 07:14 PM
It works fine on window explore but not working on firefox. When I open the firefox the inframe disable and showing this inside the inframe

<html>
<body>

<div id="datacontainer" style="position:absolute;left:0;top:10;width:100&#37;" 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/index.pl?page=sigc55xx_sodimm" target="_top">Sig5502 Board Availability</a><font color="#0000FF">&nbsp;</font></font></strong><font color="#0000FF" face="Century Gothic" style="font-size: 7pt"><br>

</font>

mburt
02-02-2007, 07:19 PM
Could you post what the JavaScript Console says in FF?

Hannah
02-02-2007, 07:39 PM
Here the heading of index page

<html>
<body>

<head>
<title>Signalogic - News & Events</title>
<style type="text/css">
h3 {font-family: times}

p {font-family: courier}
p.sansserif {font-family: sans-serif}
p.cent {font-family: century gothic}
</style>

</head>




<script type="text/javascript">

var page_name = '';
var iv='';var pn=page_name;var ui='signalogic';
function sE(){return true;}window.onError=sE;function clr()
{document.ct.src="http://64.49.222.57/0.gif";}
pn=escape(pn);var url='http://www.web-stat.com/';
var al='Web-Stat hit counters';var rn=0;
if (window.screen){var sw=screen.width;var sh=screen.height;
var sc=screen.colorDepth;}else{var sw='';var sh='';
var sc='';}var qry=ui+"::"+escape(document.referrer)
+'::'+sw+'x'+sh+'::'+sc+'::'+pn+'::'+iv+'::'+rn;
document.write('<a href="'+url+'stats.shtml?'+ui+'" tar');
document.write('get="new"><img name="ct" border=0 src="');
document.write(url+'count.cgi?'+qry+'" onAbort="clr();"');
document.write(' onError="clr();" alt="'+al+'"><\/a>');

</script><noscript>
<a href="http://www.web-stat.com/stats.shtml?signalogic" target="new">
<img src="http://www.web-stat.com/count.cgi?signalogic::NoJavaScript"
alt="web-stat hit counter" border=0></a></noscript>



<!--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-->

<p>


<table cellspacing="0" cellpadding="5" border=0>

<td align =left valign = top width = "29&#37;" border="1" height="200">
<h1><font color="#006699"><b><font size="5" face="Century Schoolbook">Events</font></b></font></h1
<p><font face="Century Gothic">
<font style="font-size: 9pt"><A HREF="http://focus.ti.com/general/docs/tidc/general.tsp?templateId=6180&navigationId=12320&path=templatedata/cm/tidcgeneral/data/am_landing/na_landing"> TI Developer Conference</A><br>March 7-9, 2007 in Dallas, TX</p>


<tr>

<td><font face="Century Gothic"><a href="index.pl?page=c54_55_67xx"><img src="/images/ti_3rd.gif" width=100 height=100></a>
</font>
</td>
</tr>

<tr>
<td valign="top>
<br><a href="index.pl?page=c54_55_67xx" style="text-decoration:none"><font class="general_white" color="FF0000"><b>
<font size="1" face="Century Gothic">TI DSP Based Hardware</font><font face="Century Gothic">
</font>
</b></font><font face="Century Gothic"></a>
</font>
</td>
</tr>

<tr>
<td><font face="Century Gothic"><a href="index.pl?page=rohs"><img src="/images/RoHS_Logo.gif" width=110 height=62></a>
</font>
</td>
</tr>

<tr>
<td valign="top>
<br><a href="index.pl?page=rohs" style="text-decoration:none">
<font face="Century Gothic"><font class="general_white" color="FF0000"><b>
<font size="1">RoHS Compliance</font>

</b></font></a></font></tr>
</td>

</table>


</font>


</table>
</body>



external.dat page START HERE

<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">&nbsp;</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>