By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,317 Members | 1,312 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,317 IT Pros & Developers. It's quick & easy.

hot regions on image maps

P: 18
is it possible to make hot regions on an image map change colours and if so how can i do it
Jul 30 '07 #1
Share this Question
Share on Google+
10 Replies


P: 48
try gd or image magic
Jul 30 '07 #2

kovik
Expert 100+
P: 1,044
You could abandon the old ways of the image map and do it with links. For example, you have a large <div> (or another block element) with a 'position: relative' attribute. Then, you put the <img> into it regularly. Then, create all of the links and put them into the <div> that's holding the <img>, and give all of the links a 'position: absolute' attribute as well as a 'display: block' attribute.

From there, you can position and size all of the links, and you could make them partially transparent and change color if you wanted to. Or, if you're adventurous, give them a background image that would display on :hover, or put an <img> into the link and have that display on :hover.

Image maps are outdated.
Jul 30 '07 #3

P: 18
how can i make hot regions on image maps change colour when there is a change in the database
Aug 2 '07 #4

code green
Expert 100+
P: 1,726
how can i make hot regions on image maps change colour when there is a change in the database
This doesn't make sense.
Who is changing the database?
What is your design?
Aug 2 '07 #5

kovik
Expert 100+
P: 1,044
how can i make hot regions on image maps change colour when there is a change in the database
You'd have to save the date of the change and check against it, I guess.
Aug 2 '07 #6

P: 18
my question is how can i make hot regions of a map change colour. such that when i click on them a pop up form will enable me to enter data into the database after the data is entered the hot region should change colour to indicate that some data concerning that region has been entered in the database
This doesn't make sense.
Who is changing the database?
What is your design?
Aug 3 '07 #7

code green
Expert 100+
P: 1,726
The current colour of the region could be saved in the database along with the data.
Then when new data is added, UPDATE the region colour.
Then when the web page is displayed it will have to dynamically access the database to read the current colour.
The colour could be stored in RR,GG,BB format then the text could be dropped straight into a placeholder on the web page.
Does this fit in with your plan?
This seems the simplest way to go.
Aug 3 '07 #8

P: 18
by this do you me i can assign each region a colour using the RR GG BB format without the colour being assigned to all regions on the map just as i am making the divisions of the map
Aug 4 '07 #9

P: 18
what do you mean by a 'position: relative' attribute, a 'position: absolute' attribute as well as a 'display: block' attribute.
Aug 4 '07 #10

kovik
Expert 100+
P: 1,044
what do you mean by a 'position: relative' attribute, a 'position: absolute' attribute as well as a 'display: block' attribute.
That suggestion was made under the assumption that you were at least familiar with a little bit of advanced CSS. If you are not, you should look into it.
Aug 4 '07 #11

Post your reply

Sign in to post your reply or Sign up for a free account.