473,804 Members | 3,174 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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,100 0,1000" href="#"
onclick="javasc ript:runJS(even t)" alt="run JS">
but, this is working well with IE but not with Safari
and so I put
<area shape="default" coords="0,0,100 0,1000" href="javascrip t: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 5071
"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:p ointer; 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******** ************@co mcast.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:p ointer; 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:p ointer;
cursor:hand" id="navMap" alt="map">

<map name="map">

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


"VK" <sc**********@y ahoo.com> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.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********@gma il.com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. .
I'm unsure as to why you're declaring the cursor twice.
try this...

style="cursor: pointer, hand"


Because:

<html>
<head>
<title>hands.ht m</title>
</head>
<body>
<span style="cursor:p ointer, hand">cursor:po inter, hand</span>
<br><br>
<span style="cursor:p ointer; cursor:hand">cu rsor:pointer; cursor:hand</span>
</body>
</html>
Jul 23 '05 #7
"McKirahan" <Ne**@McKirahan .com> wrote in message
news:RK******** ************@co mcast.com...
<tw********@gma il.com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. .
I'm unsure as to why you're declaring the cursor twice.
try this...

style="cursor: pointer, hand"

Because:

<html>
<head>
<title>hands.ht m</title>
</head>
<body>
<span style="cursor:p ointer, hand">cursor:po inter, hand</span>
<br><br>
<span style="cursor:p ointer; cursor:hand">cu rsor: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:p ointer" onmouseup="runJ S(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.javas cript:
<tw********@gma il.com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. .
I'm unsure as to why you're declaring the cursor twice.
try this...

style="cursor: pointer, hand"


Because:

<body>
<span style="cursor:p ointer, hand">cursor:po inter, hand</span>
<br><br>
<span style="cursor:p ointer; cursor:hand">cu rsor: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

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

Similar topics

13
2505
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 *array, int newsize ) { if (array) delete array;
16
1930
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, with denominator zero. A Fraction is created by the newFraction() function, and which in turns call normalize() function to simplify it, but before, the normalize() function will do a check, if the denominator is zero, it will give a error by...
16
2316
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 subject pointer does not refer to an object suitably aligned in storage. It is guaranteed that a pointer to an object may be converted to a pointer to an object whose type requires less or equally strict storage alignment and back again without change;...
17
3607
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 (*fcmp)() = &cmp_fcn; qsort(..., fcmp); then everything works. But if instead I code qsort as:
23
7823
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 called, can be a genuine no-op. Consider: typedef int(*polymorphic_func)(int param);
10
2288
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 doesn't type-casting do anything? 1 int main(void)
7
2049
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 method creates a new object (a Matrix) for it. I suppose that after the new operator, my pointer is pointing to an object, so when the method has finished, the very first pointer is still poitint to the created method; however this is not working,...
6
1642
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
3468
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
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10577
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10077
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5521
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4299
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.