Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 04:12 PM
Anna
Guest
 
Posts: n/a
Default Highlighting given area in an image map

Hi all.
I hope this is the right group for my question.
If not, please tell me, where can I ask this.

I wrote a client-side image map, using <img>, <map> and <area> tags.
I want to be able, given an area tag, somehow highligh the part
in the image map that uses this area tag, e.g., put a border on
this part of an image, using CSS, etc.
This will happen in a dynamically generated content.

My question is: is this doable? Can I at all draw (with CSS) something
on the image, given the coords of the area?
And if it is possible, how can I do it?

I hope that my explanation is clear.

Thank you very much for help.

Anna
  #2  
Old July 20th, 2005, 04:13 PM
Zak McGregor
Guest
 
Posts: n/a
Default Re: Highlighting given area in an image map

On Tue, 15 Jul 2003 14:35:43 +0200, Anna <"Anna" <anna@ubaccess.com>>
wrote:
[color=blue]
> My question is: is this doable? Can I at all draw (with CSS) something
> on the image, given the coords of the area? And if it is possible, how
> can I do it?[/color]

I suspect that you could use a combination of positioned elements and the
visibility property to get this working, although as I see it you'll not
be able to do this in pure css without javascript. You'd probably have
the best shot of success if the css positioning is generated by whatever
generates the image map instead of looking to work out the areas in any
other way.

Good luck.

Ciao

Zak
--
================================================== ======================
http://www.carfolio.com/ Searchable database of 10 000+ car specs
================================================== ======================
  #3  
Old July 20th, 2005, 04:13 PM
Anna
Guest
 
Posts: n/a
Default Re: Highlighting given area in an image map

Hi Zak.
Thanks for answering.

My problem is that the image map that I work on, is not mine,
I will retrieve it dynamically from somebody elses server.

Can you say a little bit more about how can I accomplish this in CSS?
I tried positioning, but with no success.

Thank you very much for help.

Anna

Zak McGregor <zak@mighty.co.za> wrote in message news:<bf2rrl$duj$1@ctb-nnrp2.saix.net>...[color=blue]
> On Tue, 15 Jul 2003 14:35:43 +0200, Anna <"Anna" <anna@ubaccess.com>>
> wrote:
>[color=green]
> > My question is: is this doable? Can I at all draw (with CSS) something
> > on the image, given the coords of the area? And if it is possible, how
> > can I do it?[/color]
>
> I suspect that you could use a combination of positioned elements and the
> visibility property to get this working, although as I see it you'll not
> be able to do this in pure css without javascript. You'd probably have
> the best shot of success if the css positioning is generated by whatever
> generates the image map instead of looking to work out the areas in any
> other way.
>
> Good luck.
>
> Ciao
>
> Zak[/color]
 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles