...

View Full Version : Javascript linking



xsx43
07-08-2007, 03:21 AM
Hi,

In my navigation on a website I am working on, I have a rollover navigation.

This was a pre-made script. In the actual link, this is the code:


<a href="javascript:;" class="navText">forums</a>

How would I like that? I had that it would be like the following, but that is how it is in CSS.


<a href="javascript:url('www.google.com';" class="navText">forums</a>

Am I on the right track here?

Thank you,

xsx

Edit-

http://exiledknights.net/

If I add that, it creates unwanted space. I tested it on the first button. I also tried simply putting the link. I'm not exactly sure what to do from here.

felgall
07-08-2007, 04:01 AM
Get rid of the link and the JavaScript.

<span class="navText">forums</span>

xsx43
07-08-2007, 04:55 AM
Heh. I actually tried that, but, the thing was surrounded by <p>

I saw it at the last minute. Pshh. Thanks =]

Bill Posters
07-08-2007, 07:56 AM
Get rid of the link and the JavaScript.

<span class="navText">forums</span>

If the nav link is meant to be usable by keyboard users and AT users (why wouldn't it be?), this is not a good approach as the 'link' will not be able to receive the tab focus and will not be usable by those who aren't using a mouse or some other pointing device.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum