display a picture when you roll over text

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ellicoga
Forum Newbie
Posts: 4
Joined: Tue Mar 11, 2008 7:21 pm

display a picture when you roll over text

Post by ellicoga »

I have been trying to create some code which will display a picture when you roll over some text and I am having some difficulty.

Does anyone know any php code which I could use

Thanks in advance,

Graham
User avatar
andym01480
Forum Contributor
Posts: 390
Joined: Wed Apr 19, 2006 5:01 pm

Re: display a picture when you roll over text

Post by andym01480 »

Getting an image to appear on a mouseover event is a Javascript or if you are really clever a CSS type thing! It is a client side deal rather than server side where php does its thing.

Google "mouseover image appear" http://www.hypergurl.com/rolloverimage.html is an example
User avatar
bokehman
Forum Regular
Posts: 509
Joined: Wed May 11, 2005 2:33 am
Location: Alicante (Spain)

Re: display a picture when you roll over text

Post by bokehman »

User avatar
andym01480
Forum Contributor
Posts: 390
Joined: Wed Apr 19, 2006 5:01 pm

Re: display a picture when you roll over text

Post by andym01480 »

Nice one - I'd seen your site before and forgotten about it. CSS is the best way!
ellicoga
Forum Newbie
Posts: 4
Joined: Tue Mar 11, 2008 7:21 pm

Re: display a picture when you roll over text

Post by ellicoga »

Thanks for your help
Post Reply