PDA

View Full Version : DD Pausing updown message scroller and NS 7.1



agrevet
10-28-2004, 03:59 AM
Hi. The Dynamic Drive pausing updown message scroller http://www.dynamicdrive.com/dynamicindex2/crosstick.htm isn't working right in Netscape 7.1. Lines runover each other. Here's the page where I've got it working:

http://www.awcstockholm.org/fawcosite/index.htm

And here's the Source Code -- any advice??? Many thanks, agrevet:

/***********************************************
* Pausing updown message scroller- 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
***********************************************/

//configure the below five variables to change the style of the scroller
var scrollerdelay='3000' //delay between msg scrolls. 3000=3 seconds.
var scrollerwidth='189px'
var scrollerheight='182px'
var scrollerbgcolor='lightyellow'
//set below to '' if you don't wish to use a background image
var scrollerbackground=''

//configure the below variable to change the contents of the scroller
var messages=new Array()
messages[0]="<font size='2'><font face='Arial'><a href='http://www.dynamicdrive.com'> - Voting from Overseas in 2004</a></font>"
messages[1]="<font size='2'><font face='Arial'><a href='http://javascriptkit.com'> - New DPI/NGO Intera Conference to activists world(Word doc - 161 KB) The Conference,<br>will take place from 8-10 September 2004.</a></font>"
messages[2]="<font size='2'><font face='Arial'><a href='http://www.codingforums.com'> - Celebrate World Heart Day, September 26, 2004</a></font>"
messages[3]="<font size='2'><font face='Arial'><a href='http://www.freewarejava.com'> - Back to the good days for mail, IHT article, July 31, 2004 details the AC of Lyon President's efforts to improve overseas mail delivery.</a></font>"
messages[4]="<font size='2'><font face='Arial'><a href='http://dynamicdrive.com/link.htm'> - U.S. Postal Service Improves International Package Delivery</a></font>"
messages[5]="<font size='2'><font face='Arial'><a href='http://www.dynamicdrive.com'> - Clean Up the World Weekend, September 17-19, 2004</a></font>"
messages[6]="<font size='2'><font face='Arial'><a href='http://javascriptkit.com'> - New DPI/NGO Intera Conference to activists world(Word doc - 161 KB) The Conference,<br>will take place from 8-10 September 2004.</a></font>"
messages[7]="<font size='2'><font face='Arial'><a href='http://www.codingforums.com'> - Celebrate World Heart Day, September 26, 2004</a></font>"
messages[8]="<font size='2'><font face='Arial'><a href='http://www.freewarejava.com'> - Back to the good days for mail, IHT article, July 31, 2004 details the AC of Lyon President's efforts to improve overseas mail delivery.</a></font>"
messages[9]="<font size='2'><font face='Arial'><a href='http://dynamicdrive.com/link.htm'> - U.S. Postal Service Improves International Package Delivery</a></font>"

///////Do not edit pass this line///////////////////////

Kestrel
11-29-2004, 11:02 AM
I have the same problem. This page http://www.dstelecom.co.uk/index/customer.html works in IE, but stops in NS7.1 and Firefox

Kestrel
12-03-2004, 08:00 PM
It took me 5 hours to learn Javascript and to work out what this script is doing. So at last I've found the bug.

In the functions move3 and move4, add "+px" at the end of the line starting tdiv.style.top=...

olegos
12-31-2004, 09:30 PM
Thanks a lot Kestrel :)

It took me 5 hours to learn Javascript and to work out what this script is doing. So at last I've found the bug.

In the functions move3 and move4, add "+px" at the end of the line starting tdiv.style.top=...