Results 1 to 2 of 2

Thread: Mouse Over on a Web Link

  1. #1
    Join Date
    Jul 2008
    Location
    USA
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Mouse Over on a Web Link

    Hi,

    I am working on a web page. It has 2 navigation links. The web link is only working on Internet Explorer. It doesn't work on Firefox or Opera.

    The link is inside the table. When I click on the mouse over box, the link goes to a web site. I want to make all the cells are clickable.

    <table border="0" width="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
    <tr align="left">
    <a href="http://www.google.com" target=_blank><td width="135" height="21" align="left" valign="middle" colspan="2" bgcolor="#f0f0f0" class="moutBtn" onmouseover="this.className='moverBtn';" onmouseout="this.className='moutBtn';"> <FONT COLOR=RED>Google</FONT>
    </td></a>
    </tr>

    <tr align="left">
    <a href="http://www.yahoo.com" target=_blank><td width="135" height="21" align="left" valign="middle" colspan="2" bgcolor="#f0f0f0" class="moutBtn" onmouseover="this.className='moverBtn';" onmouseout="this.className='moutBtn';"> Yahoo
    </td></a>
    </tr>
    </table>
    Here is the testing web page at:

    http://www.uswebcity.com/temp/testing/

    Can someone tell me how to change the code and fix it? So it can work on IE, Firefox and Opera. Thank you.

    Andy
    www.USWebCity.com
    Last edited by andy8828; 08-11-2008 at 09:41 PM.

  2. #2
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default

    There is a MUCH easier way of doing what you're trying to accomplish by using CSS and plain HTML...

    Try this...
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
     <HEAD>
      <TITLE> New Document </TITLE>
      <META NAME="Generator" CONTENT="EditPlus">
      <META NAME="Author" CONTENT="">
      <META NAME="Keywords" CONTENT="">
      <META NAME="Description" CONTENT="">
      <style type="text/css">
    .links ul li{
    list-style-type:none;
    display:block;
    }
    .links a, .links a:link, .links a:active, .links a:visited {
    color:#858585;
    background:transparent;
    width:135px;
    height:20px;
    font-size:13px;
    font-family:arial;
    font-weight:normal;
    text-decoration:none;
    padding-left:5px;
    }
    .links a:hover {
    border:1px solid #999999;
    color:#fff00;
    background:#f0f0f0;
    }
    </style>
     </HEAD>
    
     <BODY>
     <div class="links">
    <ul>
    <li><a href="#">Google</a></li>
    <li><a href="#">Yahoo</a></li>
    </ul>
    </div>
     </BODY>
    </HTML>
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

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
  •