PDA

View Full Version : Fading Scroller Suggestion/Comment



Moooink
11-29-2004, 03:05 AM
Just a friendly suggestion to the code writers of some of the scripts on this site. In your Fading scroller (http://www.dynamicdrive.com/dynamicindex2/fadescroll.htm)...

The div height assignment places a restraint in Firefox and I would imagine all NS browsers that prevents the css from being able to resize based on the amount of material that is contained within the array. You should make some kind of option that offers variable height to be chosen or not chosen without having to edit the main part of the script...what we are giving ya'll credit for!

Nic

chinchilla2
12-04-2004, 05:44 PM
If your not worried about the height, you can set it to change that as needed simply by removing the height caller in the div tag.

Instead of this...

if (ie4||DOM2)
document.write('<div id="fscroller" style="border:1px solid black;width:'+fwidth+';height:'+fheight+'"></div>');

have it read:

if (ie4||DOM2)
document.write('<div id="fscroller" style="border:1px solid black;width:'+fwidth+'"></div>');

Works just fine in Firefox when you do that.