This ImageMap is annoying me!

This is a discussion on "This ImageMap is annoying me!" within the JavaScript Forum section. This forum, and the thread "This ImageMap is annoying me! are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Nov 14th, 2006, 20:01
Reputable Member
Join Date: Nov 2006
Location: London, England
Age: 15
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy This ImageMap is annoying me!

This only has a little javascript - i think thats the problem though.
I'm starting a template business and i was making my site but the ImageMap for the menu refuses to work - i am completely puzzled ( ) because all previous ImageMaps of mine have been perfect - someone help please (THE IMAGEMAP IS MEANT TO ROLLOVER TO LOOK LIKE THE TABS ARE HIGHLIGHTED RED).

here's how it's going

Thanks,
Dapandyman.


Code for my menu:

Code: Select all
 
<SCRIPT LANGUAGE="javascript">
Image1 = new Image(700,300) border="0"
Image1.src = "menu[tt].jpg"
 
Image2 = new Image(700,300) border="0"
Image2.src = "menu[tt][2].jpg"
 
Image3 = new Image(700,300) border="0"
Image3.src = "menu[tt][3].jpg" 
 
Image4 = new Image(700,300) border="0"
Image4.src = "menu[tt][4].jpg" 
 
Image5 = new Image(700,300) border="0"
Image5.src = "menu[tt][5].jpg" 
 
Image6 = new Image(700,300) border="0"
Image6.src = "menu[tt][6].jpg" 
 
Image7 = new Image(700,300) border="0"
Image7.src = "menu[tt][7].jpg" 
 
 
</SCRIPT> 
 
 
 
 
 
<IMG NAME="menu" src="menu[tt].jpg" usemap="#menu" width="700" height="300" border="0" />
 
 
 
 
 
 
<SCRIPT LANGUAGE="javascript">
 
function help() {
document.menu.src = Image7.src; return true;
}
 
function extras() {
document.menu.src = Image6.src; return true;
}
 
function quality() {
document.menu.src = Image5.src; return true;
}
 
function cheap() {
document.menu.src = Image4.src; return true;
}
 
function free() {
document.menu.src = Image3.src; return true;
}
 
function home() {
document.menu.src = Image2.src; return true;
}
 
function original() {
document.menu.src = Image1.src; return true; 
}
 
 
 
</SCRIPT> 
 
 
 
 
 
 
<map name="menu">
 
 
 
<area shape="poly" alt="Go Home!" coords="12,228,119,228,129,219,133,210,134,200,134,177,12,173" href="index.html" onMouseOver="home()" onMouseOut="original()"/>
 
 
<area shape="poly" coords="134,176,236,177,236,206,229,221,213,227,117,227,128,218,133,209,133,200" alt="Free Templates!" href="free.html" onMouseOver="free()" onMouseOut="original()" />
 
 
<area shape="poly" coords="214,228,229,220,230,220,235,211,234,176,338,176,339,208,333,222,314,228" alt="Low-Budget Templates!" href="cheap.html" onMouseOver="free()" onMouseOut="original()"/>
 
 
<area shape="poly" coords="318,228,337,217,340,206,340,195,339,176,445,176,447,203,443,215,436,222,426,227,422,228" alt="High-Quality Templates" href="quality.html" onMouseOver="free()" onMouseOut="original()"/>
 
 
<area shape="poly" coords="426,228,437,220,443,214,447,202,446,175,545,175,545,204,544,212,538,218,534,222,517,228" alt="Get MORE!" href="extras.html" onMouseOver="free()" onMouseOut="original()"/>
 
 
<area shape="poly" coords="517,228,534,222,539,219,546,204,546,174,640,174,644,204,637,220,624,229,621,228" alt="Help!" href="help.html" onMouseOver="free()" onMouseOut="original()"/>
 
 
<AREA SHAPE="default" nohref>
 
 
</map>



Last edited by Dapandyman; Nov 14th, 2006 at 20:19. Reason: forgot to say that its meant to rollover.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Nov 14th, 2006, 20:38
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: This ImageMap is annoying me!

Your link shows an empty page.

More to the point, this is not the way to produce menus for modern web sites.

There is a tutorial available via the sticky in the css forum on producing css driven menu systems. I suggest you have a look at this and rethink your approach.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Nov 14th, 2006, 21:02
Reputable Member
Join Date: Nov 2006
Location: London, England
Age: 15
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Re: This ImageMap is annoying me!

Ok,
Thanks,
Dapandyman.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
imagemap, image map, help, code

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 On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Imagemap Link 20YearsInTheDakota Web Page Design 2 Jan 6th, 2008 10:24
Isn't it SOOOOO annoying when... VanessaJW Webforumz Cafe 27 May 22nd, 2007 00:18
Simple but so annoying Sean J Web Page Design 11 Mar 11th, 2007 01:34
CSS imagemap with text rollover geoffmuskett Web Page Design 32 Aug 9th, 2006 15:42
very annoying DATES benbacardi Classic ASP 15 May 26th, 2005 12:51


All times are GMT. The time now is 14:08.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved