开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜