mose指针改变 [英] mose pointer change
问题描述
我通过点击图片来调用脚本。
为了将图像显示为可点击我喜欢鼠标指针更改
当指针是指针时在图像上。
所以我把
< area shape =" default" COORDS = QUOT; 0,0,1000,1000" href ="#"
onclick =" javascript :runJS(event)" alt ="运行JS">
但是,这适用于IE但不适用于Safari
所以我把
< ; area shape =" default" COORDS = QUOT; 0,0,1000,1000" href =" javascript :void(0)"
onclick =" runJS(event)" alt =" run JS">
但这适用于所有的broswers但不适用于IE
有什么建议吗?
-
******************消息结束********* *********
I have a script being called by clicking image.
In order to present image as clickable I like to have mouse pointer changes
to a hand when the pointer is over the image.
So I put
<area shape="default" coords="0,0,1000,1000" href="#"
onclick="javascript:runJS(event)" alt="run JS">
but, this is working well with IE but not with Safari
and so I put
<area shape="default" coords="0,0,1000,1000" href="javascript:void(0)"
onclick="runJS(event)" alt="run JS">
But this is working well with all broswers but not with IE
Any suggestions?
--
****************** End of Message ******************
推荐答案
" Jay" < no@spam.com>在消息新闻中写道:d8 ********** @ news.msu.edu ...
"Jay" <no@spam.com> wrote in message news:d8**********@news.msu.edu...
我通过点击图片调用脚本。
为了将图像显示为可点击我喜欢鼠标指针
当指针位于图像上时更改为手。
I have a script being called by clicking image.
In order to present image as clickable I like to have mouse pointer changes to a hand when the pointer is over the image.
[snip]
< img src =" image.gif"边界=" 0"宽度= QUOT; 100"高度= QUOT; 100" alt =""
style =" cursor:pointer;光标:手" onclick =" runJS(event)>
[snip]
<img src="image.gif" border="0" width="100" height="100" alt=""
style="cursor:pointer; cursor:hand" onclick="runJS(event)">
谢谢,但它不适用于firefox
" McKirahan" ; <氖** @ McKirahan.com>在留言中写道
news:zK ******************** @ comcast.com ...
Thanks but it does not work on firefox
"McKirahan" <Ne**@McKirahan.com> wrote in message
news:zK********************@comcast.com...
" ;周杰伦" < no@spam.com>在消息新闻中写道:d8 ********** @ news.msu.edu ...
"Jay" <no@spam.com> wrote in message news:d8**********@news.msu.edu...
我通过点击图片调用脚本。
为了将图像显示为可点击我喜欢鼠标指针
I have a script being called by clicking image.
In order to present image as clickable I like to have mouse pointer
当指针位于图像上时,将
changes
更改为一只手。
[snip]
< img src =" image.gif"边界=" 0"宽度= QUOT; 100"高度= QUOT; 100" alt =""
style =" cursor:pointer;光标:手" onclick =" runJS(event)"
[snip]
<img src="image.gif" border="0" width="100" height="100" alt=""
style="cursor:pointer; cursor:hand" onclick="runJS(event)">
>谢谢,但它在firefox上不起作用
当然可以! (以它发布的形式)
如果它对您不起作用*然后发布整个< img ...>因为它现在是块b $ b。必须留下一些东西来清理。
> Thanks but it does not work on firefox
Of course it does! (in the form it''s posted)
If it does not work *for you* then post the entire <img...> block as it
is right now. There must be some stuff left to clean up.
这篇关于mose指针改变的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!