Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
JS rolling bug with IE8 and firefox
Old 11-24-2009, 12:16 PM JS rolling bug with IE8 and firefox
Junior Talker

Posts: 1
Name: Cat
Trades: 0
Hi buddys,
I'm trying to create a rolling area on my webpage, which will rolling forever on the top corner of my webpage to show the up coming event, the following is my code, however it works in IE7 or lower, in IE 8, it only rolling one turn, in firefox, it's not moving at all!!! Can anyone help and see what shall I do with it??

Many thanks,
Cat

<DIV id=rolllink011
style="OVERFLOW: hidden; WIDTH: 189px; HEIGHT: 100px">
<CENTER>
<DIV id=rolllink1011 style="WIDTH: 189px; HEIGHT: 120px">
<table width="100%" border="0" id="table011">
<tr>
<td height ="100px" width="98%" id="TdBox011">
<p><strong>Events</strong></p>
<p align="left">First Event ............Date</p>
<p align="left">Second Event ........Date</p>
<p align="left">Third Event ...........Date</p></td>
</tr>
</table>
</DIV>
</CENTER>
<CENTER>
<DIV id=rolllink2011></DIV></CENTER></DIV>


<script language="Javascript">
function Marquee011(){
if(rolllink2011.offsetTop-rolllink011.scrollTop<=0)
rolllink011.scrollTop-=rolllink1011.offsetHeight;
else{
rolllink011.scrollTop++;
}
}
function Start011(){
var rollspeed011=40;
var rolllink1=TdBox011.offsetHeight;
var temp=rolllink1;
while(temp<rolllink011.offsetHeight)
{
document.getElementById("table011").insertRow(1);
document.getElementById("table011").rows[1].insertCell(0).innerHTML=TdBox011.innerHTML;
temp+=rolllink1;
}
rolllink2011.innerHTML=rolllink1011.innerHTML;
var MyMar011=setInterval(Marquee011,rollspeed011);
rolllink011.onmouseover=function() {clearInterval(MyMar011);}
rolllink011.onmouseout=function() {MyMar011=setInterval(Marquee011,rollspeed011);}
}
setTimeout("Start011();",1000);
</script>
catinuk is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to JS rolling bug with IE8 and firefox
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.08516 seconds with 12 queries