View Full Version : EXPANDO script mod
http://www.dynamicdrive.com/dynamicindex4/expandoimage.htm
I'm wondering if it might be possible to make a slight mod to the new EXPANDO script.
I'd like to be able to add to the js file so that when the image expands, a line of text appears under the image. The line of text would be the same for every image that expands. Any ideas?
Thanks
jscheuer1
12-19-2008, 04:41 PM
The script itself doesn't necessarily need modification for this. That sort of thing may be done with ordinary style and simple javascript events. See the cat here:
http://home.comcast.net/~jscheuer1/side/expando/
That's almost PERFECT! Just what I'm looking to do. But, for complicated reasons, I need to be able to do that by altering only the js file.
jscheuer1
12-19-2008, 05:16 PM
That would be more than a simple modification. When I get some time, I'll look into it. But let's set at least one parameter first. Could we have markup like:
<div>
<img class="expando" src="cat.png" alt="" width=250 height=137>
<span class="line"><br> </span>
</div>
for each image that you want to receive this treatment? The span and container division could have other class and/or id names and/or style if you wanted them to, but the above is the bare bones markup required to make this relatively easy.
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.