Log in

View Full Version : OnMouseOver problems



ExodusNZ
12-16-2008, 09:22 AM
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!

rangana
12-16-2008, 10:29 AM
I'm not getting any error. Could you show the complete code or better a link to your page.

ExodusNZ
12-16-2008, 10:45 AM
Hi there. The link is http://pradip.orconhosting.net.nz/

rangana
12-16-2008, 10:48 AM
What does the error say? What tool are you using btw?

I'm using Firebug, but I'm not receiving any error.

ExodusNZ
12-16-2008, 10:49 AM
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"

rangana
12-16-2008, 10:52 AM
That's not an error, that's normal for IE when you're running a script offline. It's Mark of the Web (http://msdn.microsoft.com/en-us/library/ms537628(VS.85).aspx).

Hope that helps.