Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ONMOUSEOVER

Status
Not open for further replies.

jessc

Programmer
Jul 18, 2005
11
US
Hi,

I'm trying to incorporate javascript onmouseover in a coldfusion (.cfm) file. I don't think coldfusion supports onmouseover, so I was wondering if I could incorporate javascript. BUt how?

When a user mouses' over a text, I want a popup of the definition of that text.

Any help is greatly appreciated.

Thanks,
Jessica
 
If the definitions are short enough, you can wrap the defined words in SPAN tags and make the TITLE parameters the definition. The titles popup when you mouseover the spans.

Then, to let the user know there is a definition, you can use STYLEs and CLASSes to color the text blue (for example) and make the mouse turn into a question mark when you mouse over it.

Example:

Code:
<html>
<head>
<style>
.defined{
 cursor:help;
 color:blue;
}
</style>
</head>
<body>
<span class='defined' title='Short definition'>Defined-word</span> and un-defined words.
</body>
</html>

'hope this helps!

--Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top