开发者

Javascript link help creating cursor

开发者 https://www.devze.com 2023-03-19 03:56 出处:网络
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.

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

精彩评论

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