Results 1 to 2 of 2

Thread: new to scripting and tring to apply a hover option

  1. #1
    Join Date
    Jul 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default new to scripting and tring to apply a hover option

    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,

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    HTML Code:
    <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:

    Code:
    <style type="text/css">
    a:hover {
    font-weight:bold;
    }
    </style>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •