There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
javascript on imagemap


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
malice's Avatar
Member with 56 posts.
 
Join Date: Jun 2003
23-Dec-2003, 04:45 PM #1
javascript on imagemap
hi

its been awhile since ive done some javascript anyway
i have this imagemap and each time i hover over a certain part
you should get a different image each part is also a different link

ive attached the relevant coding in a text file
Attached Files
File Type: txt new text document.txt (1,014 Bytes, 61 views)
Shadow2531's Avatar
Distinguished Member with 2,629 posts.
 
Join Date: Apr 2001
23-Dec-2003, 09:20 PM #2
You defined the undo function 3 times. Only define it once.

You are also missing a quotation mark on your usemap attribute.

If that doesn't work, try putting the script inside the body instead of the head.

Also, it's usually not necessary, but for your mouse events, you can use

onmouseover="javascript:function()" instead of just onmouseover="function()".

The only reason I say that is because there are situations where opera won't load the function unless you specify javascript: first.
__________________
10 ? "a line as the unending horizon"
20 ? "a curve as the rolling hillside"
30 ? "a point as a distant bird"
40 ? "a ray as the rising sun"
run

Last edited by Shadow2531 : 23-Dec-2003 09:26 PM.
malice's Avatar
Member with 56 posts.
 
Join Date: Jun 2003
24-Dec-2003, 10:25 AM #3
aye that would explain some other things thx ill get on it
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 02:25 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.