kriscons
11-24-2005, 12:39 PM
Hi all,
Very new to this...
I have a div which contains an image by default when the page loads. When a user clicks a link, I need the image to change to correspond with the link.
My code is this:
<div id=imagecontainer">my image is here</div>
My LInks are:
Red
Black
Blue etc
And when the user clicks the links, the DIV changes its image to match that of the colour they clicked. I store all the paths to images in my php script, so I can sort all that out myself, its just the changing of the div code that i have no idea about.
Any advice would be gratefully received.
K.
Very new to this...
I have a div which contains an image by default when the page loads. When a user clicks a link, I need the image to change to correspond with the link.
My code is this:
<div id=imagecontainer">my image is here</div>
My LInks are:
Red
Black
Blue etc
And when the user clicks the links, the DIV changes its image to match that of the colour they clicked. I store all the paths to images in my php script, so I can sort all that out myself, its just the changing of the div code that i have no idea about.
Any advice would be gratefully received.
K.