PDA

View Full Version : Featured Content Slider v2.4 add dynamic background image?



ajmartinga
09-10-2009, 05:33 PM
1) Script Title: Featured Content Slider v2.4

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.htm

3) Describe problem:
I would like to be able to load a background image that is defined in the

<div class="contentdiv">
<div><a href="url link">url link</a></div>
<img src="regular small image link goes here " border="1" style="float: right; margin: 0 0 1px 5px" />
Text goes here
</div>

how can i add a background image for the box - it would need to be dyamic and defined in the contentdiv


Thanks so much

ddadmin
09-11-2009, 05:02 AM
Why not just use CSS and add the background directly to each content div, ie:


<div class="contentdiv" style="background:top left url(grass.gif) no-repeat">
<div><a href="url link">url link</a></div>
<img src="regular small image link goes here " border="1" style="float: right; margin: 0 0 1px 5px" />
Text goes here
</div>