Forum Moderators: open

Message Too Old, No Replies

anyway to have a href that stays in place

         

lli2k5

10:49 pm on Sep 5, 2006 (gmt 0)

10+ Year Member



I use the following code to create a show/hide button, but there is no cursor:hand once hovering on the text.

<a onclick="showhide('a','b');" id="b">More</a>.

So, I need to use a href to generate the cursor:hand since onmouseover="this.style.cursor='hand'" is not working to generate the onhover hand icon.

What href should I use? href="",or "#" or"/" sends it to the top of the page, but I want to keep the browser window in place without launching an external link.

kaled

11:33 pm on Sep 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try this...

<a href = "#" onclick="showhide('a','b'); return false;" id="b">More</a>

Kaled.

lli2k5

11:44 pm on Sep 5, 2006 (gmt 0)

10+ Year Member



thanks man, it works great

penders

10:31 am on Sep 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi lli2k5, just to note, the CSS style for a 'hand' is actually 'pointer' ('hand' is IE only). So, onmouseover="this.style.cursor='pointer'" really should work, although kaled's solution is perhaps best.