473,385 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
Jul 20 '05 #1
2 5941
On Tue, 15 Jul 2003 14:35:43 +0200, Anna <"Anna" <an**@ubaccess.com>>
wrote:
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 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
================================================== ======================
Jul 20 '05 #2
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 <za*@mighty.co.za> wrote in message news:<bf**********@ctb-nnrp2.saix.net>...
On Tue, 15 Jul 2003 14:35:43 +0200, Anna <"Anna" <an**@ubaccess.com>>
wrote:
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 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

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ms Yaqian Fang | last post by:
Hello, I want to highlight the clicked area on an image by placing another image on it. But it replaced the whole image, not the clicked area. My code is as following, can anyone please help me?...
0
by: Brian Scott | last post by:
I am currently trying to control the syntax highlighting of a richtextbox control whilst the user types. At the moment I have implemented a thread which calls the richTextBox.Invoke on a method...
1
by: mikename | last post by:
Hi, I'm currently working on a project which is essentially a clickable world map. I have successfully mapped the image and using a OnMouseOver = "Continent()" OnMouseOut = "World()" command in...
1
by: alamodgal | last post by:
hiiiiiii I have a problem in highlighting searching keyword.Actually im using this function for searching Public Function HighLight(ByVal Keyword As String, ByVal ContentFor As String) Dim...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.