Javascript link help creating cursor
I have create some javascript links. But on hover there is no cursor.
How do I create a cursor for my javascript links? Link the cursor that appears on normal links.
My javascript:
<script type="text/ja开发者_StackOverflow社区vascript" >
var google = 'www.google.com';
<% end %>
function www(url) { window.open(url);}
</script>
Try using css.
.jsLink{cursor:pointer;}
Where jsLink is classname of your Javascript link.
I hope I got the syntax right since I have very limited ways of checking from my phone
Hope it is any use.
Try this fiddle: http://jsfiddle.net/Aa6Vc/
It contains div with link attached and cursor on it.
Use real links. Build on things that work
精彩评论