Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > why doesn't my image map work?

Reply
Thread Tools

why doesn't my image map work?

 
 
John Salerno
Guest
Posts: n/a
 
      02-05-2006
I'm doing a test with an image map. Don't worry, it's not supposed to
look good right now. Anyway, here's the markup, with the links:

-----------------

http://www.johnjsal.com/test.php

<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link type="text/css" rel="stylesheet" href="">
<title></title>
</head>

<body>
<p><?php include("navbar.html") ?></p>
</body>
</html>

------------------

http://www.johnjsal.com/navbar.html

<img src="navbar.png" alt="Navigation Bar" usemap="#navbar">

<map id="navbar" name="navbar">
<area shape="rect" coords="0,0,3,1" href="index.html" alt="Home Page">
</map>



The problem is that there doesn't seem to be any clickable area at all.
I did the PHP as a test, but I also tried it normally and that still
didn't work.
 
Reply With Quote
 
 
 
 
W˙rm
Guest
Posts: n/a
 
      02-05-2006

"John Salerno" <(E-Mail Removed)> kirjoitti
viestissä:(E-Mail Removed) ...
> I'm doing a test with an image map. Don't worry, it's not supposed to look
> good right now. Anyway, here's the markup, with the links:


<snip>

> http://www.johnjsal.com/navbar.html


<snip>

> The problem is that there doesn't seem to be any clickable area at all. I
> did the PHP as a test, but I also tried it normally and that still didn't
> work.


It works, try TAB key in that page, your problem lies in coords="0,0,3,1"
where you specify horrible SMALL rect area...


 
Reply With Quote
 
 
 
 
John Salerno
Guest
Posts: n/a
 
      02-05-2006
W˙rm wrote:
> "John Salerno" <(E-Mail Removed)> kirjoitti
> viestissä:(E-Mail Removed) ...
>> I'm doing a test with an image map. Don't worry, it's not supposed to look
>> good right now. Anyway, here's the markup, with the links:

>
> <snip>
>
>> http://www.johnjsal.com/navbar.html

>
> <snip>
>
>> The problem is that there doesn't seem to be any clickable area at all. I
>> did the PHP as a test, but I also tried it normally and that still didn't
>> work.

>
> It works, try TAB key in that page, your problem lies in coords="0,0,3,1"
> where you specify horrible SMALL rect area...
>
>


LOL. My god I'm an idiot. I think the reason I did that was because I
had the image zoomed up real close in Photoshop, so it somehow made me
feel like it was a huge area!
 
Reply With Quote
 
John Salerno
Guest
Posts: n/a
 
      02-05-2006
W˙rm wrote:
> "John Salerno" <(E-Mail Removed)> kirjoitti
> viestissä:(E-Mail Removed) ...
>> I'm doing a test with an image map. Don't worry, it's not supposed to look
>> good right now. Anyway, here's the markup, with the links:

>
> <snip>
>
>> http://www.johnjsal.com/navbar.html

>
> <snip>
>
>> The problem is that there doesn't seem to be any clickable area at all. I
>> did the PHP as a test, but I also tried it normally and that still didn't
>> work.

>
> It works, try TAB key in that page, your problem lies in coords="0,0,3,1"
> where you specify horrible SMALL rect area...
>
>


LOL. My god I'm an idiot! I had the coordinates window set on inches
instead of pixels!
 
Reply With Quote
 
 
 
Reply

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why why why why why Mr. SweatyFinger ASP .Net 4 12-21-2006 01:15 PM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
Javascript Image Viewer from Image Map Ryan Sullivan Javascript 3 11-24-2005 09:09 AM
I can map all files (.*) to asp.net worker.How do I map NO FILE to asp.net worker? alex ASP .Net 1 02-04-2005 03:18 AM
image map link to show image underneath? Joe HTML 0 08-01-2003 05:18 PM



Advertisments