...

View Full Version : Disabling links



rose21
03-17-2009, 04:19 PM
I'm doing a website that has a basic JavaScript menu, my question is how to disable the link for the page you are on with it out disappearing. Can it be down in the CSS or in the javascript file?

Here's the code
<div id"menua" style="top: 5; left: 5; visibablitly: visable; position: absloute; z-index: 5;">

<p class=SWITCH>
<a href="http://geocities.com/nicola.cowan87/home.html"
onMouseOver="Highlight (0)"
onMouseOut="UnHighlight (0) ">Home</a>
<a href="http://geocities.com/nicola.cowan87/heathly-eating.html"
onMouseOver="Highlight (1)"
onMouseOut="UnHighlight (1) ">Healthy Eating</a>
<a href="http://geocities.com/nicola.cowan87/cooking.html" onclick="return false"
onMouseOver="Highlight (2)"
onMouseOut="UnHighlight (2) ">Cooking</a>
<a href="http://geocities.com/nicola.cowan87/futher-information.html"
onMouseOver="Highlight (3)"
onMouseOut="UnHighlight (3) ">Further Information</a>
<a href="http://geocities.com/nicola.cowan87/disclaimer.html"
onMouseOver="Highlight (4)"
onMouseOut="UnHighlight (4) ">Disclaimer</a>
</div>



Thanks for your help - if i have put it the wrong place mods please move it :)

freedom_razor
03-17-2009, 04:41 PM
Add onlick="return false;" to the link, for example:

<a href="http://geocities.com/nicola.cowan87/disclaimer.html"
onMouseOver="Highlight (4)" onMouseOut="UnHighlight (4) "
onclick="return false;" >Disclaimer</a>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum