Java Script Automatic Scrolling firefox vs IE, problem help

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
crazytopu
Forum Contributor
Posts: 259
Joined: Fri Nov 07, 2003 12:43 pm
Location: London, UK
Contact:

Java Script Automatic Scrolling firefox vs IE, problem help

Post by crazytopu »

I would really appreciate if somebody can take a look :

http://www.webdeveloper.com/forum/showt ... post712911

Many Thanks for your time
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

Perhaps if you posted a specific description of what is not working in which browser -- and the link -- you might get some answers.
(#10850)
crazytopu
Forum Contributor
Posts: 259
Joined: Fri Nov 07, 2003 12:43 pm
Location: London, UK
Contact:

Post by crazytopu »

Okay sorry, I thought that links says everything:

Here is what I have

Code: Select all

<table width="95%" border="0" cellspacing="0" cellpadding="0" bordercolor="#CCCCCC" style="border: 1px dashed rgb(153, 134, 117)" align="center";>
      <tr>
        <td>
		
		
		<marquee height="321" width="174" behavior="scroll" direction="up" onMouseOut="this.start();" onMouseOver="this.stop();" scrollamount="1" scrolldelay="25" truespeed="" bgcolor="#FFFFEE" align="top"><b><font color="#ff9999">Trading Code: </font></b><b><a href="http://www.dsebd.org/displayComany.jsp?name=DSE%20NEWS" class="ab1">DSE NEWS</a></b><br><br><a href="http://www.dsebd.org/display_news.jsp" class="ab1">Today's (12.02.07) Total Trades: 30,719; Volume: 1,71,71,941 and Turnover: 98,72,11,233</a><br><br><font color="blue"><hr color="#99ccff" noshade="noshade" size="1"></font><br>
            </marquee>
		
		</td>
		
		
      </tr>
    </table>
You can also take the code from the site's view source. Here is the live version of the site:


Now if you follow thins linkhttp://kikorben.com/compquo/index3.html


you see when the page first loads in IE, it starts from the very bottom and all the way up until the end of the text is reached and in that case the scroll box displays some blank (empty white space - while scrolling) and then it starts from the beginning again.

In firefox, it doesnot start from the bottom of the scroll box (scroll box means where the text is scrolled) rather it starts from the very top and therefore, you get less time to read the very first line of text. Also, once scrolling reaches the end of the text (meaning there is no more text) it straightway jumps to the beginning without giving you enough indication that you had reached the end of the text already (like showing some empty white space in IE). So, to viewer it is little confusing as it seems like a non-ending loop...never giving you an indication when it reaches the end.

If you follow the link above, you see I have achieved it in IE. Now my question is, how to achieve this in Firefox? The same very effect you get in IE?

Here is a live site which has implemented it but I am not a java script guru so cant find what's wrong with my coding. There coding is working fine in both IE and firefox.

http://www.dsebd.org - look at the right scroll box.

Any help is greatly appreciated.
Post Reply