Click to See Complete Forum and Search --> : null link in html


mandreko
11-18-2000, 12:11 PM
hi there, i'm building a website, and unfortunately it has frames... i have a link, that i want someone to be able to click, but not do anything. it's not for a prank or anything like that. i really have a reason. if you don't believe me, we can talk one on one, and i'll show you what i mean... but just if you're wondering

ok.. well, i need this range of text to act like a link. i have css, so when the mouse goes over it, it's underlined. But if i try anything else, without it being a link, i can't get the rollover effect.

I don't want the link to go anywhere, because it opens a menu.

Like i said, if you need to know more, just ask, and i can show you the site, but i'd prefer not to post it here... it's for an isp, and it's in development...

ICQ# 13220604
AIM mbandreko
email mandreko@home.com

Unruly
11-18-2000, 12:55 PM
have you tried just inserting an anchor tag with nothing in the href?

like so:

<a href="">salkdl;askd</a>

------------------
Nathan
Q: How many existentialists does it take to screw in a lightbulb?
A: Two. One to screw it in and one to observe how the lightbulb itself symbolizes a single incandescent beacon of subjective reality in a netherworld of endless absurdity reaching out toward a maudlin cosmos of nothingness.

[This message has been edited by Unruly (edited 18 November 2000).]

mandreko
11-18-2000, 01:16 PM
yeah, that didn't work

klamath
11-18-2000, 01:27 PM
Put a single hash ('#') in the href attribute. So: <a href=#>foo</a> should work (IIRC).

------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
Looking for an open source project to contribute to? Check out the BBB (http://bbb.sourceforge.net)

mandreko
11-18-2000, 01:31 PM
well, that made it look like a link, but then the left frame showed up in the main frame...

Sweede
11-18-2000, 03:24 PM
<a nohref>
<a href="javascript:return false;"> should work also.

you can also use (in css),
.fakelink {
cursor: hand;
}

ph34r
11-18-2000, 04:26 PM
You prolly want to use <a href="#" name="foo" onclick=funcfoo()>click here</a> if you want to use the link to fire a js function or something.