PDA

View Full Version : BG Image to a scroller


souldrifter02
06-18-2003, 10:22 AM
I would like to modify Mikes DHTML Scroller at this address:
http://www.dynamicdrive.com/dynamicindex2/mikescroll.htm

to have a backgroundimage instead of a background color.

It seems like it should be possible...
the script at:
http://www.dynamicdrive.com/dynamicindex2/crosstick.htm

Has a background- but it doesn't work the way I need it to... so can I modify the other script to accept a background image?

Thanks

Horus_Kol
06-18-2003, 10:45 AM
In the dhtmllib.js, there is already a function to set the background image.

change the middle parameter of the setColors function to the URL of the pic.

in the scroller.js file, change the function call for setBgColor to setBgImage.

There are a couple of extra things that need changing - like the default value and stuff, but I'll leave that for you to do.

souldrifter02
06-18-2003, 02:08 PM
Horus,

I see what you mean now, but I'm still not sure where I need to make the changes.

Can you direct me by line numbers?

Thanks!