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

Home Posts Topics Members FAQ

where user clicked on image map?

Hello,

Anyone know how I can use javascript with an image map?

I do not want to use the image map areas to link to different files.

I wish to know where the user has clicked on the map.

Say the image is that of a house I want to know if the user has
clicked on the roof, the front door, a window etc etc.

Can this be done?!

Cheers

Geoff
Mar 27 '08 #1
1 1177
Geoff Cox wrote on 27 mrt 2008 in comp.lang.javas cript:
Anyone know how I can use javascript with an image map?

I do not want to use the image map areas to link to different files.

I wish to know where the user has clicked on the map.

Say the image is that of a house I want to know if the user has
clicked on the roof, the front door, a window etc etc.
Search for tutorials of
serverside maps
and
clientside maps.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Mar 27 '08 #2

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

Similar topics

4
1730
by: Dynamo | last post by:
Not sure if this is a php or an html question but I'll post it anyway. I have multiple thumbnail images on my catalogue page catalogue.php and they are all hyperlinked to a single page called desc.php that will give an enhanced description of the product selected. I want the desc.php page to print the contents of a text file named ?.txt based on which image was clicked on in my catalogue page. example: if I click on 1.jpg in my...
5
3561
by: SPEAKIT | last post by:
I'm sorry to ask what must be a very simple question, but I just can't seem to get this to work. Right now I am using the javascript 'prompt' to enter a photoid and the script that I am using uses document.write to put the proper image on the page ....i.e. PHOTOID =".jpg" What I want is a simple user input text area and when submit is clicked a placeholder image beneath is exchanged for the proper image based on the user's input....
1
1278
by: Lisa | last post by:
I have a Perl script that's called as a CGI to handle the form submission from a browser, thru which a user from the web can up load an image file. I would like, when the user clicks the "Send Image" button, to pop up a small window containing an animated (working - please be patient) .gif while the image is uploaded from thier computer to the server, once the transfer is complete, I would like to close the pop up window and then load the...
5
1513
by: Ted | last post by:
Hi... I've created a form via front page 2000 that includes an UPLOAD FILE field for users to upload a .jpg as part of the form. The problem I'm running into is that one user submits a file named, let's say, ABC.jpg...fine...that file is stored in a folder on the hosting space. Then, if a second person comes along and submits a file with the same name "ABC.jpg", the original file is replaced with the new one.
1
4030
by: Rhy Mednick | last post by:
I'm creating a custom control (inherited from UserControl) that is displayed by other controls on the form. I would like for the control to disappear when the user clicks outside my control the same way a menu does. To do this my control needs to get notified when the user tried to click off of it. The Leave and LostFocus events of the UserControl work most of the time but not always. For example, if they click on a part of the form...
1
1672
by: Josema | last post by:
Hi to all, I have a textbox and a button... When the button its clicked i show a label that has the text "Hello World"... I would like to make that, when the button its clicked, first show an animated image (loading...), and some seconds after, show the Hello World label How could i make that the current thread Sleep for some seconds?
2
4230
by: Michael Ramey | last post by:
Howdy, I think I have a good question! I'm creating a usercontrol, and within this usercontrol, I'm dynamically creating controls (imagebuttons to be exact), that the user can click on which will cause a postback to occur. My problem is, I can't seem to be able to get the handlers to work within the user control, to determine which control has been clicked, and what to do with it from there.
9
2893
by: TCORDON | last post by:
I have a user control that contains 2 image buttons, when you click one of them, both must change the image source, the thing is that the first time you click any one of them the page appears to do a postbak, but the image source or the image displayed does not change until I click one of the images a second time, why dows it take 2 clicks for the user to "refresh"? TIA!
1
1320
by: Geoff Cox | last post by:
Hello, I have an image map of a house and when the user clicks on part of the building a number is given to the area, e.g. <area shape="rect" coords="65,8,78,16" href="javascript:Get1(2);"> Is it possible to mark where the user has clicked? Can the area be made to change colour for example? Or can a cross appear where the mouse was clicked?
0
9710
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
9589
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
10593
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
10340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10085
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...
0
9163
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6858
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
5527
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...
3
3000
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.