Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

image in a menu that swaps???

Status
Not open for further replies.

melstef

Programmer
Feb 19, 2003
69
CA
Hello, I don't know how to call this but I'll try explaining. I have an image for my vertical menu on the side.
ex:
test
subject

when I click on test I want this to happen( an other image):

test
test1
test2
test3
subject

I would like it to be in the same page not in a frame and the problem is that this is all images...I thought about a swaping image script of some kind???

How can I do this??? I hope you'll understand
thank you
 
melstef,

this can be accomplished relatively easily with Javascript. you can ask the kids in the javascript forum for advice, but if you want to just use my code, you're welcome to. (get it while it's hot, i'm about to change the layout of my website!)

check it out at:
cheers!
inger
 
You can do it in JavaScript -- but a lot of that code becomes very browser-dependent.

You can make the menu item a link with GET-method data back to the script that produced the page in the first place. It will require that the entire page be reloaded each time, though.

Want the best answers? Ask the best questions: TANSTAAFL!
 
good point about the browser/javascript thing, sleipnir. pretty much anything that does what melstef wants to do without reloading the page every time is going to require that the browser is set up to handle it (javascript, flash nav bar, etc.).

melstef, maybe you could do some sort of userbase analysis to figure out what the best route would be for your site, if image swap is mission-critical for you. worst case scenario with the javascript thing is that it doesn't swap out the 2nd image on mouseover/click.

inger
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top