Page 1 of 1

Marquee not working in Chrome and FF

Posted: Fri Jan 21, 2011 6:50 am
by hammadahmed1988
Hello, Im basically a novice user and Im facing a problem regarding marquee on a php page.
The marquee is displaying fine in IE but it simply doesn't show anything in Chrome and FF.
I know that the script is written for IE only, which takes its content from an external php file. Can anyone please modify this code to work on Chrome and FF
Thanks in advance :)

Code: Select all

<!--[if IE]>

<IE:Download ID="marqueedata" STYLE="behavior:url(#default#download)" /> 
<marquee id="externalmarquee" direction=up scrollAmount=1 style="width:210px;height:150px; background:; font-size:1; border:0px solid ; padding:3px" onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=1" src="/edit_news/news.php">
</marquee>

<script language="Javascript" type="text/javascript"> 

function downloaddata(){
marqueedata.startDownload(externalmarquee.src,displaydata)
}

function displaydata(data){
externalmarquee.innerHTML=data
}

if (document.all)
window.onload=downloaddata

<![endif]-->

</script>
I have tried using different scripts but i am having serious difficulties linking to the external php file, which is a must.

Re: Marquee not working in Chrome and FF

Posted: Fri Jan 21, 2011 7:50 am
by hammadahmed1988
I did it. Thanks any ways people. :D
Mods please close the thread

Code: Select all

<MARQUEE onmouseover=this.stop() onmouseout=this.start() 
scrollAmount=1 direction=up width="210" height=150>
<?php $fp = file("news.php");
for($i = 0; $i <sizeof($fp);$i++){
echo $fp[$i]."<BR>";
} ?>
</MARQUEE>