hi guys
i want to display a message on the text means when i move mouse iver that text it display a message so kindly send me the code how can i do this
thanks in advance
tool tip
Moderator: General Moderators
- markusn00b
- Forum Contributor
- Posts: 298
- Joined: Sat Oct 20, 2007 2:16 pm
- Location: York, England
Re: tool tip
Do you understand the difference between PHP and Javascript? Server-side and Client-side? If not, give it a quick google; PHP will not does not interact with the browser in the sense you are looking for. Javascript, however, will.
Code: Select all
<script>
window.onload = function() {
document.getElementById('letmegooglethatforyou').attachEventListener(
'mouseover',
function() {
location.href = "http://lmgtfy.com/mouseover+javascript"
}, false
);
}
</script>
<p id="letmegooglethatforyou">Click here for the answers to life's secrets!</p>
Re: tool tip
thx dear i used this code but it only display first 8 characters in the tip but i wnat to display all the characters i have given so how is that possible??
- turbolemon
- Forum Commoner
- Posts: 70
- Joined: Tue Jul 14, 2009 6:45 am
- Location: Preston, UK
Re: tool tip
The tool-tips on this site are awesome, and CSS based too: http://matthewjamestaylor.com/.
Re: tool tip
can u plz tell me simple code for that
Re: tool tip
Sometimes things just aren't simple. There isn't a 'cheat' or a quick and easy way to do things like CSS tooltips. They're complicated.myasirm wrote:can u plz tell me simple code for that
- turbolemon
- Forum Commoner
- Posts: 70
- Joined: Tue Jul 14, 2009 6:45 am
- Location: Preston, UK
Re: tool tip
The guy hasn't posted the code, i'm sure if you Google "CSS tool-tips" you will find something similar.