View Full Version : new to scripting and tring to apply a hover option
Scotty Who
07-31-2006, 04:52 AM
I'm very new to script work and I am tring to add a hover option to all of my links on a page that I'm working on, the script is a custom script, is there someone that can help with this problem,
jscheuer1
07-31-2006, 06:27 AM
You will need to be more specific about the problem and provide example code, preferably a link to the problem page.
However, HTML already has a built in method for a 'hover option' for links. It is the title attribute, ex:
<a href="neat.htm" title="Check out this Neat Page">Neat Page</a>
If what you are looking for is an effect rather than a tool tip type thing, there is the css :hover pseudo class. The way this works is to put the effect in a stylesheet section in the head of your page, there are many effects you can use. This example makes the text bold when a link is hovered:
<style type="text/css">
a:hover {
font-weight:bold;
}
</style>
Powered by vBulletin® Version 4.2.2 Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.