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 ****************** 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)">
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)">
> 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.
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.
I'm unsure as to why you're declaring the cursor twice.
try this...
style="cursor: pointer, hand"
<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>
"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).
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).
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)
"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] This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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,...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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);
|
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
|
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...
|
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...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
| |