473,385 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

mose pointer change

Jay
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 ******************
Jul 23 '05 #1
10 5020
"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" border="0" width="100" height="100" alt=""
style="cursor:pointer; cursor:hand" onclick="runJS(event)">
Jul 23 '05 #2
Jay
Thanks but it does not work on firefox

"McKirahan" <Ne**@McKirahan.com> wrote in message
news:zK********************@comcast.com...
"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" border="0" width="100" height="100" alt=""
style="cursor:pointer; cursor:hand" onclick="runJS(event)">

Jul 23 '05 #3
VK
> 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.

Jul 23 '05 #4
Jay
well Maybe I'm missing something.

here it is.

<img src="image.gif" border="0" usemap="#map" style="cursor:pointer;
cursor:hand" id="navMap" alt="map">

<map name="map">

<area shape="default" coords="0,0,1000,1000" onclick="runJS(event)"
alt="Search in this location">
</map>


"VK" <sc**********@yahoo.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
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.

Jul 23 '05 #5
I'm unsure as to why you're declaring the cursor twice.
try this...

style="cursor: pointer, hand"

Jul 23 '05 #6
<tw********@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
I'm unsure as to why you're declaring the cursor twice.
try this...

style="cursor: pointer, hand"


Because:

<html>
<head>
<title>hands.htm</title>
</head>
<body>
<span style="cursor:pointer, hand">cursor:pointer, hand</span>
<br><br>
<span style="cursor:pointer; cursor:hand">cursor:pointer; cursor:hand</span>
</body>
</html>
Jul 23 '05 #7
"McKirahan" <Ne**@McKirahan.com> wrote in message
news:RK********************@comcast.com...
<tw********@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
I'm unsure as to why you're declaring the cursor twice.
try this...

style="cursor: pointer, hand"

Because:

<html>
<head>
<title>hands.htm</title>
</head>
<body>
<span style="cursor:pointer, hand">cursor:pointer, hand</span>
<br><br>
<span style="cursor:pointer; cursor:hand">cursor:pointer;

cursor:hand</span> </body>
</html>


Only the second one works under IE; (IE5.5 anyway).
Jul 23 '05 #8
VK
Is it a functional map (means areas marked on the image) or you just
added map to make the cursor "pointer" style?
If it's just a single image then:
(you don't need to dublicate "hand" and "pointer", IE understands
standard "pointer" as well)
<img border="0" style="cursor:pointer" onmouseup="runJS(event)">

If it's a real map with different areas marked on it,
then nothing you can do untill Mozilla will fix this CSS bug (it's
already registered).

Jul 23 '05 #9
McKirahan wrote on 08 jun 2005 in comp.lang.javascript:
<tw********@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
I'm unsure as to why you're declaring the cursor twice.
try this...

style="cursor: pointer, hand"


Because:

<body>
<span style="cursor:pointer, hand">cursor:pointer, hand</span>
<br><br>
<span style="cursor:pointer; cursor:hand">cursor:pointer;
cursor:hand</span> </body>
</html>


You have a point[er]

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #10
"VK" <sc**********@yahoo.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...

[snip]
If it's just a single image then:
(you don't need to dublicate "hand" and "pointer", IE understands
standard "pointer" as well)


No it doesn't! (At least IE5.5 doesn't.)
http://www.w3schools.com/css/pr_class_cursor.asp

Browser Notes -- Notes in IE 5.x:

To display a hand, you may use the non-standard value hand. Like this:
{cursor: hand}
[snip]
Jul 23 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: xuatla | last post by:
I encountered "segmentation fault" and I checked my code, found the following problem: I want to reallocate memory for an array. I defined the following function: int reallocateMemory( double...
16
by: fix | last post by:
Hi all, I am new to C and I just started to program for a homework. I included my code down there. It is a fraction "class". I declared the Fraction struct, tried to create some invalid fraction,...
16
by: junky_fellow | last post by:
According to Section A6.6 Pointers and Integers (k & R) " A pointer to one type may be converted to a pointer to another type. The resulting pointer may cause addressing exceptions if the...
17
by: Charles Sullivan | last post by:
The library function 'qsort' is declared thus: void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *)); If in my code I write: int cmp_fcn(...); int...
23
by: bluejack | last post by:
Ahoy... before I go off scouring particular platforms for specialized answers, I thought I would see if there is a portable C answer to this question: I want a function pointer that, when...
10
by: lovecreatesbeauty | last post by:
Why (type*)pointer isn't equal to *(type**)pointer, In the code snippet, it shows that: (int *) == (int **) , (int *) != (*(int **)) . Does type-casting change the address? or...
7
by: Marcelo | last post by:
Hi everybody, I don't understand why I am having a problem in this code. The problem is that my pointer *phist in main method, it is declared. Then I send the pointer to my method, and this...
6
by: Eric Kaplan | last post by:
what are the difference between the following 4 variables? const int * start int* const start int const& start Request(int const& start);
9
by: Taras_96 | last post by:
Hi everyone, I was experimenting with static_cast and reinterpret cast #include <iostream> struct A1 { int a; }; struct A2 { double d; }; struct B : public A1, A2
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.