News:

Click here for Toll-Free Service for your business starting at $2.00 per month

Main Menu

Jacascript

Started by Evilsprouts, April 24, 2006, 08:17:41 PM

Previous topic - Next topic

Evilsprouts

Ok I have a script where when a link is hovered over an image is displayed but now I want an image to be displayed and text to be displayed underneath but I can't work out how to do this without using text boxes.

Please help me?

;D

dest

I hate using javascript to rewrite portions of a page.  Could be due to the fact I don't remember how.

If each picture always displays the same text, just make a png or gif image with the same width as the picture and a bit more height.  Just put the picture on top, and the text on the bottom.

If the picture and text are not always the same together, a php script could work.
meh :P

brainiac744

I'd put each bit of text into a seperate <div> and then set them all to display: none; Then in the JS when you wanted to make them show up just change it to display:block; or whatever.