Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Images

Show text when hover over an image

images php coding issues or problems here.

Moderators: macek, egami, gesf

Show text when hover over an image

Postby hinkeltje » Fri Sep 02, 2011 6:04 am

Hi everybody,

I have a simple page that is showing some images (nothing more, nothing less).
Now, I want to create a hover over but not with an image, but with some text.
I am really lost in finding the solution and would really appreciate any help here.

Oh, and I don't mean the simple text you can see with alt and title.
I mean a nice image where I can put some text in.

Thanks
Hinke
User avatar
hinkeltje
New php-forum User
New php-forum User
 
Posts: 15
Joined: Thu Aug 25, 2011 10:51 pm

Re: Show text when hover over an image

Postby hinkeltje » Tue Sep 06, 2011 3:16 am

Is there really no one who can help me out with this problem/question?

I found this http://www.dynamicdrive.com/dynamicinde ... ooltip.htm
Tried it and now I'm half way my solution.
I now want the tooltips that are in the js in this solution have them loaded from the database table.

How do I do that?
User avatar
hinkeltje
New php-forum User
New php-forum User
 
Posts: 15
Joined: Thu Aug 25, 2011 10:51 pm

Re: Show text when hover over an image

Postby Nullsig » Tue Sep 06, 2011 7:48 am

AJAX.

You would have make the hover action trigger an AJAX call that calls a separate page with arguments.

That page will talk to the database and return html that can be put into the tooltip division.

Here is the W3Schools link that talks about AJAX. It is a concept that takes some people a little while to wrap their head around. If you get stuck let me know and I will try to walk you through it.
http://www.w3schools.com/ajax/default.asp
User avatar
Nullsig
php-forum Fan User
php-forum Fan User
 
Posts: 981
Joined: Thu Feb 17, 2011 6:52 am
Location: Racine, WI


Return to PHP coding => Images

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.