Hi,
I have a page with list of articles (with link) which is populated from a MySQL database - so clicking on thr name(link) take the user to the full article.
This works fine, but I want to include short summary description for each article which 'drops down' only when the user places mouse over the Article name(link) and the summary description row for each article remains hidden until mouseover on link (then dissapears onmouseout).
Do i have to use JQuery and AJAX to accomplish the same. Can any one point me to few examples ?
(Moving to PHP from .NET isn't the bestest thing. I am learning how to write bad code until i start PHP in object oriented style.)
mouseover on link
Moderator: General Moderators
Re: mouseover on link
Are you talking about "tooltips" or something fancier?
Re: mouseover on link
yeh exactly ... tooltips - do you have any resource which gives a demo code how to implement this in php .. I will try googling as well but am not feeling lucky today.
Thanks
Thanks
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: mouseover on link
An easier way is to use the title attribute. Then you just get a basic, native tootip.
http://www.w3schools.com/tags/att_standard_title.asp
Con: you can't have newlines.
http://www.w3schools.com/tags/att_standard_title.asp
Con: you can't have newlines.
Re: mouseover on link
Yap i know that - but that's not what i am looking for..
I couldn't find any step by step example as of now... search is On..
Thanks..
I couldn't find any step by step example as of now... search is On..
Thanks..
Re: mouseover on link
tonchilly i tried -
But it's not working - i installed jquery.js and hovertip.js but i can't get it to work when called from webpage..
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: mouseover on link
Did you remember to put <script type="text/javascript" src="jquery.js"></script> in your <head>?