Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Image maps within <table>

Reply
Thread Tools

Image maps within <table>

 
 
helpneeded
Guest
Posts: n/a
 
      04-23-2007
Hello
I know how to create image maps using the <img> tag. However, my
problem is I want to use image maps for image inside <table> tag..
i.e. <table background=img usemap="#map1">

Is it possible? How can it be done?

Thanx

 
Reply With Quote
 
 
 
 
Adrienne Boswell
Guest
Posts: n/a
 
      04-23-2007
Gazing into my crystal ball I observed helpneeded <>
writing in news: oups.com:

> Hello
> I know how to create image maps using the <img> tag. However, my
> problem is I want to use image maps for image inside <table> tag..
> i.e. <table background=img usemap="#map1">
>
> Is it possible? How can it be done?
>
> Thanx
>
>


You are talking about apples and oranges. Tables are for tabular data, and
do not have anything to do with image maps, unless the tabular data IS
image maps. Look into the DIV element instead - as a matter of fact look
into how to stop abuse tables altogether.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

 
Reply With Quote
 
 
 
 
Andy Dingley
Guest
Posts: n/a
 
      04-23-2007
On 23 Apr, 05:44, helpneeded <yousuf.kh...@gmail.com> wrote:

> I know how to create image maps using the <img> tag.


As I'm sure you know, this involves defining a map and linking it with
the usemap attribute placed on the <img> element. This attribute is
available for <img>, <object> and <input> but not <table>.

The reasoning behind this (AFAIK) is that client-side maps are
strongly pixel-based, and so it's only appropriate and reliable to use
them with elements that also have a robust scaling onto pixel-sizes.
<img> is OK for this, <table> isn't (it depends too much on the
effects of text size) and so doesn't support usemap.

> I want to use image maps for image inside <table> tag..


Whenever someone asks "How do I <foo>?" the obvious question (as
usually posted by Jukka) is, "<foo> is crazy. You don't need to do
<foo>. What is the real requirement <bar> that you _must_ do, and
you've already assumed falsely implies that you should solve by using
<foo>?"

So what's your _real_ need here ? Maybe there's a better and simpler
route that avoids the whole issue?

You can of course place multiple <img> in a <table> and give each one
a <map>. Slightly long-winded to code, but entirely plausible.

 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      04-23-2007
In article
< .com>,
helpneeded <> wrote:

> Hello
> I know how to create image maps using the <img> tag. However, my
> problem is I want to use image maps for image inside <table> tag..
> i.e. <table background=img usemap="#map1">
>
> Is it possible? How can it be done?
>
> Thanx


I don't know what you are up to with this but it is possible to
have an image map in a table (in the following example and just
btw, only the "a" goes to an actual place on click):

<http://members.optushome.com.au/droo...pTable/table.h
tml>

The original of this is not in a table, just a simple div if I
recall, but I stuck it in a table for OP who asked question)

--
dorayme
 
Reply With Quote
 
helpneeded
Guest
Posts: n/a
 
      04-24-2007
Why I want to do that?

You see, I have an image on which I want to place some controls (like
text box, datagrid, etc). This image also contains buttons (links)
that need to be image mapped. I figured using my own "ingenuity" that
if I used <img> for image mapping, I wouldnt be able to place controls
on the image! Hence I decided to put the image as a background inside
a <table> and place the controls where I want using <tr><td>.

Please tell me a better way of doing this?

dorayme ΤΗΡί Θά:
> In article
> < .com>,
> helpneeded <> wrote:
>
> > Hello
> > I know how to create image maps using the <img> tag. However, my
> > problem is I want to use image maps for image inside <table> tag..
> > i.e. <table background=img usemap="#map1">
> >
> > Is it possible? How can it be done?
> >
> > Thanx

>
> I don't know what you are up to with this but it is possible to
> have an image map in a table (in the following example and just
> btw, only the "a" goes to an actual place on click):
>
> <http://members.optushome.com.au/droo...pTable/table.h
> tml>
>
> The original of this is not in a table, just a simple div if I
> recall, but I stuck it in a table for OP who asked question)
>
> --
> dorayme


 
Reply With Quote
 
Bergamot
Guest
Posts: n/a
 
      04-24-2007
helpneeded wrote:
>
> I have an image on which I want to place some controls (like
> text box, datagrid, etc). This image also contains buttons (links)
> that need to be image mapped.


You cannot make a background image an image map, only a foreground image.

> if I used <img> for image mapping, I wouldnt be able to place controls
> on the image!


Yes you can, with a little CSS positioning, but I don't really recommend
it. Image maps are often a bad idea in the first place and I have the
uncomfortable feeling that your case would not be one of the good uses.

> Please tell me a better way of doing this?


Please show a mockup of what you are specifically trying to achieve.
There may be another way to go about it altogether, but it's hard to say
without knowing more.

And please don't top-post.
http://web.presby.edu/~nnqadmin/nnq/nquote.html

--
Berg
 
Reply With Quote
 
Bergamot
Guest
Posts: n/a
 
      04-24-2007
dorayme wrote:
>
> <http://members.optushome.com.au/droo...pTable/table.h
> tml>


FYI, the alt text there is all wrong.

--
Berg
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      04-24-2007
In article <>,
Bergamot <> wrote:

> dorayme wrote:
> >
> > <http://members.optushome.com.au/droo...pTable/table.h
> > tml>

>
> FYI, the alt text there is all wrong.


I was lazy for the example, better would have been "small letter"
perhaps? (I was certainly not going to type the different ones in
then and there for each letter). I also had in mind Adriene's
point on another thread about spruiking in the alt text (which
what some images do) and was idly thinking about the intent of
the "letter-links" which was to go to big letters. Anyway, I was
not asking a question, so my real "korpelian" use was not so
important.

But thank you for drawing my attention to this matter as I might
go see what the heck I did in my lazy way for the real instance
of this image map.

--
dorayme
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      04-24-2007
In article
<doraymeRidThis->,
dorayme <> wrote:

> In article <>,
> Bergamot <> wrote:
>
> > dorayme wrote:
> > >
> > > <http://members.optushome.com.au/droo...pTable/table.h
> > > tml>

> >
> > FYI, the alt text there is all wrong.

>
> I was lazy for the example, better would have been "small letter"
> perhaps? (I was certainly not going to type the different ones in
> then and there for each letter). I also had in mind Adriene's
> point on another thread about spruiking in the alt text (which
> what some images do) and was idly thinking about the intent of
> the "letter-links" which was to go to big letters. Anyway, I was
> not asking a question, so my real "korpelian" use was not so
> important.
>
> But thank you for drawing my attention to this matter as I might
> go see what the heck I did in my lazy way for the real instance
> of this image map.


No... you are right, I was not thinking, it is all wrong! And I
was missing point in above.

--
dorayme
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      04-24-2007
> No... you are right, I was not thinking, it is all wrong! And I
> was missing point in above.


No, I am now confused, it is not all wrong. I don't really know
what the point was, and I am going to now give up guessing.

--
dorayme
 
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
MSN maps vs. Google maps Ralph Fox NZ Computing 0 07-30-2007 10:30 AM
STL: Map of maps possible, but no multi-map of maps? Workarounds? Marcus C++ 2 12-09-2005 06:34 AM
std::maps within std::maps -- optimisation Simon Elliott C++ 4 03-10-2005 10:11 AM
GDI+ and Image Maps Kevin Vaughn ASP .Net 0 07-11-2003 06:56 PM
Image maps and shopping carts chaos/dollheads HTML 0 07-05-2003 12:35 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57