PDA

View Full Version : Conveyer Belt Slideshow tip..



unknownghost
06-29-2005, 03:12 PM
Hi,

New to the board,

I was wondering if anyone knew if it was possible to add a background image (as opposed to a bg colour) to this script?

Any help would be grand

Cheers

jscheuer1
06-29-2005, 07:44 PM
Yes, change this line in the script:
write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')to:
write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')Then in the configuration part of the script where it says:
//configure background color:
slidebgcolor="#EAEAEA"you may use ordinary css syntax for the background property, ex:
//configure background color:
slidebgcolor="#EAEAEA url('some.jpg')"For more info on this syntax, check your favorite css reference or:

Blooberry's CSS - Background (http://www.blooberry.com/indexdot/css/properties/colorbg/bg.htm)