PDA

View Full Version : Crosstick script has problems in Firefox, help?



mattymattmatt
04-09-2005, 02:21 AM
Script: DD Crosstick
http://www.dynamicdrive.com/dynamicindex2/crosstick.htm

I copied the code exactly and the script works marvelously on IE, but it only shows the top two items in Firefox and then goes blank and never cycles back again. Any suggestions?

It is a WONDERFUL script.

I have it implemented on my work-in-progress page at http://www.thelightradio.net/index.php

Thanks,
matthew

jscheuer1
04-09-2005, 06:15 AM
Either take this:
<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> off the page or figure out why it is causing the problem. I vote for taking it off.

jscheuer1
04-09-2005, 06:34 AM
Figured it out, you can keep that declaration if you change these two lines in the script:
tdiv.style.top=parseInt(scrollerheight)change to:

tdiv.style.top=parseInt(scrollerheight)+"px"and change:

tdiv2.style.top=parseInt(scrollerheight)to:

tdiv2.style.top=parseInt(scrollerheight)+"px"

jscheuer1
04-09-2005, 07:04 AM
I just posted the above as a bug in bug reports because IMHO it is a bug. While doing so I realized that adding +"px" is redundant. You could as easily remove the parseInt() from them and accomplish the same thing. So, they'd end up looking like this:
tdiv.style.top=scrollerheight
and this:
tdiv2.style.top=scrollerheightrespectively. This is actually preferable.

mattymattmatt
04-09-2005, 03:18 PM
Thank you for your help! That worked marvelously!

You're my new hero!

-matthew