FreePgs.com Forum

FreePgs Related => Support Requests => Topic started by: Evilsprouts on April 24, 2006, 08:17:41 PM

Title: Jacascript
Post by: Evilsprouts on April 24, 2006, 08:17:41 PM
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
Title: Re: Jacascript
Post by: dest on April 24, 2006, 11:16:44 PM
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.
Title: Re: Jacascript
Post by: brainiac744 on April 25, 2006, 02:37:34 AM
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.