Results 1 to 6 of 6

Thread: OnMouseOver problems

  1. #1
    Join Date
    Dec 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default OnMouseOver problems

    Hi all

    My OnMouseOver is giving me a script error. Could someone please have a quick look at it and let me know what im doing wrong.

    Thanks




    <td width="107" class="on" align="center" valign="middle"><a href="index.html" class="menu_link" style="text-decoration:none;">Home</a></td>
    <td width="0.5" align="center" valign="middle"><img src="images/menu_bar.gif" alt="" width="2" height="25" /></td>



    <!--script error problem start-->

    <td width="107" class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" align="center" valign="middle"><a href="index.html" class="menu_link">About</a> </td>
    <td width="0.5" align="center" valign="middle"><img src="images/menu_bar.gif" alt="" width="2" height="25" /></td>



    <td width="107" class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" align="center" valign="middle"><a href="index.html" class="menu_link">Unlocking</a></td>
    <td width="0.5" align="center" valign="middle"><img src="images/menu_bar.gif" alt="" width="2" height="25" /></td>
    <td width="107" class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" align="center" valign="middle"><a href="index.html" class="menu_link">Accessories</a></td>
    <td width="0.5" align="center" valign="middle"><img src="images/menu_bar.gif" alt="" width="2" height="25" /></td>
    <td width="107" class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" align="center" valign="middle"><a href="index.html" class="menu_link">Contact</a></td>


    And the CSS


    .menu_link {
    font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-style: normal;
    line-height: 25px;
    font-weight: bold;
    font-variant: normal;
    text-transform: none;
    color: #000000;
    text-decoration: none;
    background-color:inherit;
    }
    .menu_link:hover
    {
    text-decoration:underline;
    color:#FFFFFF;
    background-color:inherit;
    }




    Thanks in advance!

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    I'm not getting any error. Could you show the complete code or better a link to your page.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. #3
    Join Date
    Dec 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Hi there. The link is http://pradip.orconhosting.net.nz/

  4. #4
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    What does the error say? What tool are you using btw?

    I'm using Firebug, but I'm not receiving any error.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  5. #5
    Join Date
    Dec 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Ok, that is very strange - Now that the files are on a server the error message has gone - But when im running the website from my hard drive IE is giving the "To help protect your security, IE has restricted this file from showing active content that could access your computer. Click here for options"

  6. #6
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    That's not an error, that's normal for IE when you're running a script offline. It's Mark of the Web.

    Hope that helps.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  7. The Following User Says Thank You to rangana For This Useful Post:

    ExodusNZ (12-16-2008)

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
  •