473,396 Members | 1,879 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,396 software developers and data experts.

OnMouseDown in NN4.7

Hi,

I am having trouble implemeting the OnMouseDown event in NN4.7 when
used on a Input of type image.

It works in Mozilla and N6.2

Is this a limitation or is there a workaround

Thanks,
Jerry

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">

<script language="JavaScript" type="text/JavaScript">

function SetPointCoordsForNetscape(omdEvent) {

alert('Rising Sun');

}
-->
</script>
</head>
<body>
ClickHere:
<form>
<input TYPE="IMAGE" SRC="towns.GIF" HEIGHT="18" WIDTH="18" BORDER=0
ONMOUSEDOWN="SetPointCoordsForNetscape(event)"
OnKeydown="SetPointCoordsForNetscape(event)" >
</form>

</body>

</html>
Jul 20 '05 #1
1 2245
<form onSubmit="SetPointCoordsForNetscape(event)">
<input TYPE="IMAGE" SRC="towns.GIF" HEIGHT="18" WIDTH="18" BORDER=0
ONMOUSEDOWN="this.submit";
OnKeydown="this.submit" >
</form>

Try this.
Have put your function in the onsubmit of the form and it seems to work for
me in ns 4.75, whether there is a difference in 4.7 and 4.75 i don't know.

Hope that helps

Stu

"Jerry O" <je*************@esbi.ie> wrote in message
news:cf*************************@posting.google.co m...
Hi,

I am having trouble implemeting the OnMouseDown event in NN4.7 when
used on a Input of type image.

It works in Mozilla and N6.2

Is this a limitation or is there a workaround

Thanks,
Jerry

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">

<script language="JavaScript" type="text/JavaScript">

function SetPointCoordsForNetscape(omdEvent) {

alert('Rising Sun');

}
-->
</script>
</head>
<body>
ClickHere:
<form>
<input TYPE="IMAGE" SRC="towns.GIF" HEIGHT="18" WIDTH="18" BORDER=0
ONMOUSEDOWN="SetPointCoordsForNetscape(event)"
OnKeydown="SetPointCoordsForNetscape(event)" >
</form>

</body>

</html>

Jul 20 '05 #2

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

Similar topics

3
by: Csaba2000 | last post by:
I have set onmousedown to change the cursor, but this setting is ignored (IE 5.5; NN 6.1 on Win 2K Pro) until the mouse is either moved or the mouse button is released. On Opera 7.01, the setting...
2
by: Bender | last post by:
Hi, I am wanting to capture an onmousedown event without firing the body tags onload event. Also, if anyone could explain why this happens that would be excellent. I can't see how an...
1
by: Weston C | last post by:
I'm trying to use onMouseDown to build a certain behavior into a javascript application (see...
6
by: Gary Mayor | last post by:
Hi, I'm trying to make it so when I click a image it prints out the image again and a load of other stuff. So far i've got this far. <html> <head> <script language="JavaScript" type="">...
1
by: sameth | last post by:
I wrote a script that uses onmousedown and onmouseup in javascript that works great in ie and firefox on windows2000. It looks as if the pocketpc 2003 ie browser dosn't support onmousedown or...
6
by: RC | last post by:
<a href="#" onmousedown="callMyFunction()">Press the mouse button</a> What I expect is when I or an user move mouse pointer over that link, and press the mouse button. Then will...
3
by: walkerfx | last post by:
Hi All, Is there a way to access the value assigned to onmousedown for an object? I've been searching online but can only seem to find how it is assigned via html. What I need to do is access...
9
by: jon | last post by:
Hello, I'm trying to experiment with some javascript to do some custom dragdrop handling. I wish to use the onMouseDown event to trigger the start of my drag, and onMouseup for a potentential...
1
by: NeilCarmichael | last post by:
I am flummoxed, I'm relatively new to javascript and I can't get my onmousedown onmouseup script to work. simply, I want to fire one function when I click down on a graphic and a second when I...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
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,...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.