Shoutbox

HTML Help - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: HTML Help (/showthread.php?tid=52587)

HTML Help by Dan0208 on 11-04-2005 at 12:49 AM

Hey,
A Friend has been trying to get me into myspace cos she thinks i would like it but i really didnt have the time to set it all up. She took it upon herself to create  an account for me for my website so that people that are interested in photography, bodyboarding, surfing etc would visit my site.
Anyway i decided to have a look and i wanted to put an image in with various links on it. Myspace allows html so I have tried to get it working with image mapping however i am having some difficulty. Would someone be able to have a look at my code and work out whats going wrong or does myspace just not allow this in the first place?

Thanks

code:
<img src="http://www.wetpix.ceejaycee.net/myspace/Mainnavcopy.png" usemap="..mymap" width="470" height="516" alt="WetPix Navigation" border="0">
<map name="mymap">
<area shape="rect" coords="43,47 424,120" href="http://www.WetPix.tk" alt="Click Here To View WetPix">
<area shape="rect" coords="103,135 367,160" href="http://www.wetpix.ceejaycee.net/Riders.htm" alt="Click Here To View Rider Profiles">
<area shape="rect" coords="83,181 390,206" href="http://www.wetpix.ceejaycee.net/OldPhotos.htm" alt="Click Here To View The Old Photo Gallery">
<area shape="rect" coords="82,226 387,254" href="http://www.wetpix.ceejaycee.net/galleryfiles2/" alt="Click Here To View The New Photo Gallery">
</map>


When i preview it, it displays the image and recognises it as a link in firefox because the link cursor hand appears over it however the whole image is a link yet it doesnt lead anywhere. Down the bottom in the status bar it doesnt show that the link points to anywhere and clicking doesnt do anything. Also in IE it doesnt recognise as a link at all.

EDIT: sorry left some code out one sec...

EDIT2: Nevermind when i was pasting my code correction into this post i noticed this bit --> "..mymap" when it should be "mymap" stupid mistake

On another note can someone tell me where about I put the target _blank code in for each link

RE: HTML Help by thc2010 on 11-04-2005 at 01:20 AM

lol ill ask my webdev teacher when no body answers within 11 hrs


RE: HTML Help by ShawnZ on 11-04-2005 at 01:22 AM

quote:
Originally posted by Dan0208
When i preview it, it displays the image and recognises it as a link in firefox because the link cursor hand appears over it however the whole image is a link yet it doesnt lead anywhere. Down the bottom in the status bar it doesnt show that the link points to anywhere and clicking doesnt do anything. Also in IE it doesnt recognise as a link at all.

I'm not fully sure if href works there. try onclick="window.location.href='http://wherever'" instead.
RE: HTML Help by Dan0208 on 11-04-2005 at 03:59 AM

I have got it working fine in Firefox using the code in my original post however internet explorer still doesnt even detect there to be a link there at all.


RE: HTML Help by Ash_ on 11-04-2005 at 04:08 AM

target="_blank" anywhere inside your <a> tag.
dont know if it works with areas but it would go like thise.

<area shape="rect" coords="83,181 390,206" href="http://www.wetpix.ceejaycee.net/OldPhotos.htm" alt="Click Here To View The Old Photo Gallery" target="_blank">


RE: HTML Help by Dan0208 on 11-04-2005 at 04:17 AM

Thanks for your help Ash.
Any idea why this works fine in Firefox but doesnt even show up as a link in IE.
Its really annoying because the majority of people that are looking at it are using IE so its not working for them.