PDA

View Full Version : inframe scolling text didn't work in FF



Hannah
02-09-2007, 10:10 PM
My inframe scolling text didn't work in FF. Please let me know if something wrong with the code below.

<html>
<body>

<head>
<title>Company</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='company';
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?company" target="new">
<img src="http://www.web-stat.com/count.cgi?company::NoJavaScript"
alt="web-stat hit counter" border=0></a></noscript>




<TABLE WIDTH=100% ALIGN="left" BORDER =0>

<TR>

<td align = left valign = top width = "50%" height="910">

<h1><font face="Century Schoolbook" size="5" color="#006699">&nbsp;<b>News & Events</b></font></h1>
<p><ul>
<li><font face="Century Gothic"><A HREF="index.pl?page=asterisk_ip_pbx">
<li><font face="Century Gothic"><A HREF="index.pl?page=pc104_wireless">
</font>

<pre>
&nbsp
&nbsp
&nbsp
</pre><font face="Century Gothic"><A HREF="index.pl?page=NewProduct">
<IMG SRC="/images/NewProducts.jpg" WIDTH=180 HEIGHT=25 HSPACE=5 BORDER=0 ></a>
<br><A HREF="index.pl?page=NewProduct">
<IMG SRC="/images/banner.gif" BORDER=0 height = 214 width = 309></A> </font>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</td>



<td align =left valign = top width = "29%" border="1" height="910">
<h1><font color="#006699"><b><font size="5" face="Century Schoolbook">Recent
News</font></b></font></h1>



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


<p>


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

<td align =left valign = top width = "29%" 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 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>

</table>


</font>


</table>
</body>

Hannah
02-13-2007, 10:20 PM
Please help

jscheuer1
02-13-2007, 11:12 PM
Can't tell much without your external page. How a bout a link to your problem page, that would be ideal for diagnostic purposes.

Hannah
02-16-2007, 09:55 PM
Here the link to the page (http://www.signalogic.com). The scrolling text is working fine with IE but not on the FF.

Hannah

jscheuer1
02-16-2007, 10:15 PM
First thing I would try is changing the name of this page:

http://www.signalogic.com/pages/external.dat

to:

http://www.signalogic.com/pages/external.htm

Don't forget to update the src in the iframe:


<iframe id="datamain" src="/pages/external.htm" width=350 height=200 marginwidth=0 marginheight=4 hspace=0 vspace=4 frameborder=1 scrolling=no></iframe>


If you cannot change the filename, perhaps you can change its mime type to text/html in your .htaccess file.

Hannah
02-20-2007, 10:34 PM
John-

I changed the .dat to .htm file and also tried to upload it online. But inside the scrolling text doesn't work correctly. Please see the link of a picture (http://www.signalogic.com/images/Signalogic&#37;20main.jpg). Please let me know if I did something wrong with it.

FYI. The external.htm file below

<html>
<body>

<div id="datacontainer" style="position:absolute;left:1px;top:10px;width:100%" onMouseover="scrollspeed=0" onMouseout="scrollspeed=cache">

<!-- ADD YOUR SCROLLER CONTENT INSIDE HERE -->


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

<p align="left"><strong><font face="Century Gothic" style="font-size: 7pt"><a href="http://www.signalogic.com/index.pl?page=sigc5561_ptmc" target="_top">SigC5561-7x7-PTMC VoIP Board</a><font color="#0000FF">&nbsp;</font></font></strong><font color="#0000FF" face="Century Gothic" style="font-size: 7pt"><br>


</font>


<p align="left"><strong><font face="Century Gothic" style="font-size: 7pt"><a href="http://www.signalogic.com/HW400c2.html">HighWire HW400c/2 Gateway and Communication Server cPCI Blade</a><font color="#0000FF">&nbsp;</font></font></strong><font color="#0000FF" face="Century Gothic" style="font-size: 7pt"><br>

</font>

<p align="left"><strong><font face="Century Gothic" style="font-size: 7pt"><a href="http://www.signalogic.com/index.pl?page=sigc64xx_ptmc" target="_top">SigC641x-PTMC Octal DSP Resource Board</a><font color="#0000FF">&nbsp;</font></font></strong><font color="#0000FF" face="Century Gothic" style="font-size: 7pt"><br>

</font>

<p align="left"><strong><font face="Century Gothic" style="font-size: 7pt"><a href="http://www.signalogic.com/index.pl?page=wanPTMC_256T3" target="_top">Channelized T3 Interface PTMC Module Board</a><font color="#0000FF">&nbsp;</font></font></strong><font color="#0000FF" face="Century Gothic" style="font-size: 7pt"><br>

</font>

<p align="left"><strong><font face="Century Gothic" style="font-size: 7pt"><a href="http://www.signalogic.com/sigc67xx_sodimm.shtml" target="_top">Highest Floating-Point
DSP Density on the Planet</a><font color="#0000FF">&nbsp;</font></font></strong><font face="Century Gothic" style="font-size: 7pt"><br>
The <a href="/index.pl?page=sigc67xx_sodimm" target="_top">SigC67xx module</a> provides up to 5.4 GFLOPS in 6 sq. inches, the highest floating-point processing density available
on the market. The module supports processors types C6711, C6712, and C6713.</font></p>

<p align="left"><strong><font face="Century Gothic" style="font-size: 7pt"><a href="/index.pl?page=wireless" target="_top">Wireless PC/104 Board</a><br>
</font>
</strong><font face="Century Gothic" style="font-size: 7pt">The SigC5/6xx-PC104 Wireless Board is available now.



<p align="left"><strong><a href="/index.pl?page=competitive" target="_top">Introductory Competitive Offer Available for
Selected Customers</a><font color="#008080"><br>
</font>
</strong>For selected new customer, Signalogic will match competitive offers by other vendors for
similar DSP, data acquisition, telephony and wireless hardware products.

<p align="left"><strong><a href="/index.pl?page=tech_support" target="_top">Tech Support Pages Improved</a><br>
</strong>New customer case-incidents are constantly being added to the Technical Support pages, to allow our customers to resolve hardware and software installation and usage issues as fast as</font><font face="Century Gothic" size=1><font face="Century Gothic" style="font-size: 7pt">
possible</font>.




</font><font face="Verdana" size=1>
<!-- END SCROLLER CONTENT -->

</div>

<script type="text/javascript">

/***********************************************
* IFRAME Scroller script- &#169; Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//Specify speed of scroll. Larger=faster (ie: 5)
var scrollspeed=cache=2

//Specify intial delay before scroller starts scrolling (in miliseconds):
var initialdelay=500

function initializeScroller(){
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")
dataobj.style.top="5px"
setTimeout("getdataheight()", initialdelay)
}

function getdataheight(){
thelength=dataobj.offsetHeight
if (thelength==0)
setTimeout("getdataheight()",10)
else
scrollDiv()
}

function scrollDiv(){
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed+"px"
if (parseInt(dataobj.style.top)<thelength*(-1))
dataobj.style.top="5px"
setTimeout("scrollDiv()",40)
}

if (window.addEventListener)
window.addEventListener("load", initializeScroller, false)
else if (window.attachEvent)
window.attachEvent("onload", initializeScroller)
else
window.onload=initializeScroller

</script>

</body>
</html>

jscheuer1
02-21-2007, 04:15 AM
Looks like you skipped this part:




Don't forget to update the src in the iframe:


<iframe id="datamain" src="/pages/external.htm" width=350 height=200 marginwidth=0 marginheight=4 hspace=0 vspace=4 frameborder=1 scrolling=no></iframe>

Hannah
02-21-2007, 08:11 PM
John-

I have it in the index.html (main page) but not in the external.htm

Where should I put the scr of the ifame to?

(<iframe id="datamain" src="/pages/external.htm" width=350 height=200 marginwidth=0 marginheight=4 hspace=0 vspace=4 frameborder=1 scrolling=no></iframe>)

-Hannah

jscheuer1
02-22-2007, 05:10 AM
Everywhere it is referenced. Here in the source code of your index page:


<td align =left valign = top width = "29%" border="1" height="910">
<h1><font color="#006699"><b><font size="5" face="Century Schoolbook">Recent
News</font></b></font></h1>



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


<p>

The page itself must also exist:

http://www.signalogic.com/pages/external.htm

If you really have changed it as you say you have, I think there may be a problem with how your server is setup.

Hannah
02-22-2007, 04:21 PM
John-

Do you have any suggestions where I need to look on it?

-Hannah

jscheuer1
02-22-2007, 05:46 PM
First make sure that you have made the changes as I have outlined. If these are not reflected on the server, I think the easiest next step would be to try a .htaccess file to change the mime type of the .dat files. It would by far be easier (if your server will permit it, 99.99% do) to simply use the correct extensions as I have already outlined.

Hannah
02-23-2007, 12:22 AM
I did exactly to your outlined. But it looks liked this when I load it up (http://www.signalogic.com/images/Signalogic&#37;20main.jpg)

I used the .htaccess file and paste the info of external.dat and saved the file as external.dat

Hannah

jscheuer1
02-23-2007, 05:22 AM
Well, that image cap looks like an improvement. However, I think it may be time to try the .htaccess approach. I don't know what you thought I meant by that or what you did but, here is what I had in mind:

1 ) Revert everything to the way that you had it before with external.dat that was working in IE.

2 ) Make up a .htaccess file with this in it:


AddType text/html .dat

3 ) Upload that to the pages folder (the folder where external.dat is).

4 ) Cross your fingers, clear your cache in FF and see what happens.

Hannah
02-23-2007, 06:42 PM
John-

I did revert everything back to external.dat as per your suggestion but here how it looks in the FF
(http://signalogic.com/images/Signalogic&#37;20main.jpg)

and this how it looks in IE (http://signalogic.com/images/Signalogic%20main_2.jpg)

-Hannah

jscheuer1
02-24-2007, 06:44 AM
I feel like I am flying blind here. I cannot see your .htaccess file or even it exists. FF still sees the .dat mime type as text/plain.

What really bothers me is why you cannot have external.htm - it seemed to be working from your screenshot, just a matter of formatting the page but, once again, hard to tell from just a screenshot. Flying blind.

I did notice that when I tried to load just:


http://www.signalogic.com/pages/external.htm

I got a messing looking page and it wasn't showing 'pages/external.htm' in the address bar. It showed this:


http://www.signalogic.com/index.pl?page=external

But, at least the scrolling was working. Why would that be? What does the .pl extension mean? I just checked on Google and it is a server side language. Perhaps you need an external.pl page instead of .dat or .htm.

Hannah
02-26-2007, 07:56 PM
John-

I have re uploaded the .dat by try the (.htaccess approach). Please see the link (http://www.signalogic.com)

The .pl is the perl script code that my people were created this website.

-Hannah

jscheuer1
02-26-2007, 08:07 PM
Well, if you followed my instructions correctly, the .htaccess method is not working, the mime type is still being reported as text/plain and here is the out put of the file:


<td align =left valign = top width = "29%" border="1" height="910">
<h1><font color="#006699"><b><font size="5" face="Century Schoolbook">Recent
News</font></b></font></h1>


<html>
<body>

<div id="datacontainer" style="position:absolute;left:1px;top:10px;width:100%" onMouseover="scrollspeed=0" onMouseout="scrollspeed=cache">

<!-- ADD YOUR SCROLLER CONTENT INSIDE HERE -->


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

<p align="left"><strong><font face="Century Gothic" style="font-size: 7pt"><a href="http://www.signalogic.com/index.pl?page=sigc5561_ptmc" target="_top">SigC5561-7x7-PTMC VoIP Board</a><font color="#0000FF">&nbsp;</font></font></strong><font color="#0000FF" face="Century Gothic" style="font-size: 7pt"><br>


</font>


<p align="left"><strong><font face="Century Gothic" style="font-size: 7pt"><a href="http://www.signalogic.com/HW400c2.html">HighWire HW400c/2 Gateway and Communication Server cPCI Blade</a><font color="#0000FF">&nbsp;</font></font></strong><font color="#0000FF" face="Century Gothic" style="font-size: 7pt"><br>

</font>

<p align="left"><strong><font face="Century Gothic" style="font-size: 7pt"><a href="http://www.signalogic.com/index.pl?page=sigc64xx_ptmc" target="_top">SigC641x-PTMC Octal DSP Resource Board</a><font color="#0000FF">&nbsp;</font></font></strong><font color="#0000FF" face="Century Gothic" style="font-size: 7pt"><br>

</font>

<p align="left"><strong><font face="Century Gothic" style="font-size: 7pt"><a href="http://www.signalogic.com/index.pl?page=wanPTMC_256T3" target="_top">Channelized T3 Interface PTMC Module Board</a><font color="#0000FF">&nbsp;</font></font></strong><font color="#0000FF" face="Century Gothic" style="font-size: 7pt"><br>

</font>

<p align="left"><strong><font face="Century Gothic" style="font-size: 7pt"><a href="http://www.signalogic.com/sigc67xx_sodimm.shtml" target="_top">Highest Floating-Point
DSP Density on the Planet</a><font color="#0000FF">&nbsp;</font></font></strong><font face="Century Gothic" style="font-size: 7pt"><br>
The <a href="/index.pl?page=sigc67xx_sodimm" target="_top">SigC67xx module</a> provides up to 5.4 GFLOPS in 6 sq. inches, the highest floating-point processing density available
on the market. The module supports processors types C6711, C6712, and C6713.</font></p>

<p align="left"><strong><font face="Century Gothic" style="font-size: 7pt"><a href="/index.pl?page=wireless" target="_top">Wireless PC/104 Board</a><br>
</font>
</strong><font face="Century Gothic" style="font-size: 7pt">The SigC5/6xx-PC104 Wireless Board is available now.



<p align="left"><strong><a href="/index.pl?page=competitive" target="_top">Introductory Competitive Offer Available for
Selected Customers</a><font color="#008080"><br>
</font>
</strong>For selected new customer, Signalogic will match competitive offers by other vendors for
similar DSP, data acquisition, telephony and wireless hardware products.

<p align="left"><strong><a href="/index.pl?page=tech_support" target="_top">Tech Support Pages Improved</a><br>
</strong>New customer case-incidents are constantly being added to the Technical Support pages, to allow our customers to resolve hardware and software installation and usage issues as fast as</font><font face="Century Gothic" size=1><font face="Century Gothic" style="font-size: 7pt">
possible</font>.




</font><font face="Verdana" size=1>
<!-- END SCROLLER CONTENT -->

</div>

<script type="text/javascript">

/***********************************************
* IFRAME Scroller script- Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//Specify speed of scroll. Larger=faster (ie: 5)
var scrollspeed=cache=1

//Specify intial delay before scroller starts scrolling (in miliseconds):
var initialdelay=500

function initializeScroller(){
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")
dataobj.style.top="5px"
setTimeout("getdataheight()", initialdelay)
}

function getdataheight(){
thelength=dataobj.offsetHeight
if (thelength==0)
setTimeout("getdataheight()",10)
else
scrollDiv()
}

function scrollDiv(){
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed+"px"
if (parseInt(dataobj.style.top)<thelength*(-1))
dataobj.style.top="5px"
setTimeout("scrollDiv()",40)
}

if (window.addEventListener)
window.addEventListener("load", initializeScroller, false)
else if (window.attachEvent)
window.attachEvent("onload", initializeScroller)
else
window.onload=initializeScroller

</script>

</body>
</html>


It isn't valid HTML code, that may be a part of the problem. Could the file be named 'external.pl' - that might work. How did it get to be external.dat in the first place?

Hannah
02-26-2007, 08:45 PM
John-
I tried renamed it to (external.pl) but here it looks liked (http://www.signalogic.com/)


To answer you (How did it get to be external.dat in the first place?). This website was created by a former employee. I really don't know how it suppose to be working.
-Hannah

jscheuer1
02-26-2007, 11:14 PM
John-
I tried renamed it to (external.pl) but here it looks liked (http://www.signalogic.com/)


To answer you (How did it get to be external.dat in the first place?). This website was created by a former employee. I really don't know how it suppose to be working.
-Hannah

Well, I think that and a general lack of understanding of web publishing has prevented you from following my instructions and doing little common sense things. At least I get that feeling, I could be wrong. It may just be that the system that was left to you cannot display ordinary HTML pages and will not respond to .htaccess file configuration. In any case, because I do not know what I am looking at (operator error and/or system quirks), I cannot tell with confidence where the problem is coming from, much less what the solution might be. I'm sorry to say this and wish that I could have been of more help to you.