PDA

View Full Version : Pausing up-down message scroller



jscheuer1
04-09-2005, 06:56 AM
Pausing up-down message scroller All (http://www.dynamicdrive.com/dynamicindex2/crosstick.htm)has a minor bug on pages with this doctype:
<?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">I can't be sure but, I imagine any transitional or strict doctype would produce the error. It occurs only under Mozilla (FF and NS7.2 tested) and can be fixed by changing these two lines to include +"px" at the end:

tdiv.style.top=parseInt(scrollerheight)and

tdiv2.style.top=parseInt(scrollerheight)They should have +"px" at the end anyway, as px was stripped from their values by the parseInt method. Come to think of it, they don't need the paresInt method applied to them in the first place. They are style and the preferred method is to include the units for non-zero values.

ddadmin
05-18-2005, 09:53 PM
Issue confirmed and fixed.