Pausing up-down message scroller All has a minor bug on pages with this doctype: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:Code:<?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">
andCode:tdiv.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.Code:tdiv2.style.top=parseInt(scrollerheight)



Reply With Quote

Bookmarks