Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show Cursor with an ONclick link

Status
Not open for further replies.

Extreme43

Programmer
Dec 21, 2004
23
AU
hey
i have made a menubut instead of the links being <a href='location'>text</a>

i have made <a onclick='location'>text</a>
how would i make the curson appear so it shows as a normal link

i tried having href='#' but it didnt work
i was thinking it would be the style so i added
Code:
	a:hover {
		text-decoration:			none;
		color:					#CC0000
		cursor: 				crosshair;
	}
but doesnt work either
can anyone help here?
 
try this

a:hover {
text-decoration: none;
color: #CC0000;
cursor: crosshair;
}

i just tried this and it works

 
Hello Extreme43,

Though I do not get what you mean by having href="#" do not work, you can get it underline after onclick by doing this.
[tt]
<a onclick="this.style.textDecoration='underline';" style="color:#cc0000;cursor:hand">click me to see the change</a>
[/tt]
regards - tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top