Click to See Complete Forum and Search --> : Need to dynamically define "off" state for image swap?


MrBungle
11-26-2003, 10:06 AM
Hi everybody,... my first post here. Nice to meet you all in advance. :)

I have an issue that im not sure how to solve. I have a page im developing that is utilizing a number of iframes:
http://www.symbiantmedia.com/dev/gallery/3d/

and a simple image rollover/swap script.

My Question:
I'd like to be able to somehow define the Off state of the image swap, depending on which item they have selected. So that the image (bigger one) cooresponds with the item they have selected.

If it helps, here is a chunk of the rollover script:



function rollem(x)
{
document.images['roll' + x].src=eval('on' + x + '.src')
parent.document.images['BUILD'].src=eval('cut' + x + '.src')
}
function hidem(x)
{
document.images['roll' + x].src=eval('off' + x + '.src')
}


Thanks much!

MrBungle
11-26-2003, 05:17 PM
buMp!

one more try ey.