Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
157
rated 0 times [  163] [ 6]  / answers: 1 / hits: 79916  / 11 Years ago, thu, february 28, 2013, 12:00:00

I'm working with a voting button.



The button was a simple link, but the search engine spiders were crawling the pages and triggering false votes. So, I changed it to an onclick to make that stop.



However, after doing that, the buttons still work fine, but the mouse cursor no longer has the 'hand' pointer. It remains the arrow pointer when you mouse-over, so it's hard to tell that it's an actual functioning link.



To attempt to fix this, I added a style=cursor:default;, I also tried style=cursor:crosshair; to try and change the cursor behavior, but it's not working. The cursor remains the pointer the whole time.



Here's my code:



<map id=vote_buttons name=vote_buttons>
<area shape=rect alt= coords=5,3,78,43 onClick=window.location='http://www.site.com/page.php?vote=Y' style=cursor:default; title= />
<area shape=rect alt= coords=83,3,160,44 onClick=window.location='http://www.site.com/page.php?vote=N' style=cursor:pointer; title= />
<area shape=default nohref=nohref alt= />
</map>


What am I missing here to make this mouse-over look like a hand?



Thanks in advance as always.


More From » html

 Answers
17

So I discovered a work around. I'm not entirely happy with it, but it seems to be doing the job. Basically, I just added a href=# to the tag. This makes the hand appear and most of the time the click works like it should.



<map id=vote_buttons name=vote_buttons>
<area href=# shape=rect alt= coords=5,3,78,43 onClick=window.location='http://www.site.com/page.php?vote=Y' style=cursor:default; title= />
<area href=# shape=rect alt= coords=83,3,160,44 onClick=window.location='http://www.site.com/page.php?vote=N' style=cursor:pointer; title= />
</map>

[#79918] Thursday, February 28, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gordonrockym

Total Points: 95
Total Questions: 115
Total Answers: 95

Location: Iraq
Member since Sat, Apr 16, 2022
2 Years ago
;