473,385 Members | 1,647 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.

how do i scale dynamic image maps (hot spots - rectangle)

I have an image with several rectangular image-maps, but the image is dynamic depending on the size of the broswer and i need image-maps to scale to suit the changes. Any ideas?

Expand|Select|Wrap|Line Numbers
  1. <map id="_Image-Maps_homepage" name="Image-Maps_homepage">
  2.     <area shape="rect" coords="548, 13, 588, 31" 
  3.         href="http://www.facebook.com/Sculboidesign" target="_Self" 
  4.         alt="Captain Sculboi on Facebook" title="Captain Sculboi on Facebook"    />
  5.     <area shape="rect" coords="277, 138, 357, 156" href="ContactUs.aspx" 
  6.         alt="Contact the Sculboi Crew" title="Contact the Sculboi Crew"    />
  7.     <area shape="rect" coords="368, 135, 425, 155" href="SculboiCrew.aspx" 
  8.         alt="Check out the Sculboi Crew" title="Check out the Sculboi Crew"    />
  9.     <area shape="rect" coords="385, 650, 482, 699" href="http://SculboiHomePage.aspx" 
  10.         alt="Sculboi limited edition clothing line." 
  11.         title="Sculboi limited edition clothing line."    />
  12.     <area shape="rect" 
  13.             coords="467, 782, 569, 836" href="SkuteHomePage.aspx" 
  14.         alt="Skute limited edition clothing line" 
  15.         title="Skute limited edition clothing line"    />
  16. </map>
  17. <img id="Image-Maps_homepage" src="Content/themes/base/images/largehomepage.jpg" usemap="#Image-Maps_homepage" border="0" width="50%" alt="Sculboi home page" align="middle" />
  18. </div>
Nov 7 '12 #1

✓ answered by Dormilich

you’re not bound to use an image map. a couple of <a> elements on top of an image probably does the same and would scale.

1 2937
Dormilich
8,658 Expert Mod 8TB
you’re not bound to use an image map. a couple of <a> elements on top of an image probably does the same and would scale.
Nov 7 '12 #2

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

Similar topics

1
by: scott | last post by:
Anyone else seen a deal in Internet Explorer with an image map where, when the map is clicked on, an outline of the maparea is highlighted? It's kind of odd. If so, please email me at:...
1
by: Steve Bishop | last post by:
I don't know if there is such a thing, but when an image swaps, can you have different image maps on it dynamically? I have product pictures with several part numbers also wihin the picture. I...
5
by: Tompa | last post by:
Hi, I would like to create images on the fly as a response to an http request. I can do this with PIL like this (file create_gif.py): from PIL import Image, ImageDraw print 'Status: 200 OK'...
0
by: Kevin Vaughn | last post by:
Is it possible to use image maps to divide up a picture acting as an image button? I have created a map of a building, and now I want to have some sort of pop-up messages when certain parts of...
11
by: BobAchgill | last post by:
The needed capability: I guess there are two possibilities for making "hot spots" on a Windows Form: The Scenario: I have a world map as the form background. I need clickable hotspots over...
1
by: Help needed | last post by:
Hello I know how to create image maps using the <imgtag. However, my problem is I want to use image maps for image inside <tabletag.. i.e. <table background=img usemap="#map1"> Is it possible?...
6
by: David Stone | last post by:
I have a simple question about the alt content of area elements within an image map: is it redundant to include phrases such as "link to..." or "jump to..."? My initial thought is 'yes', since...
13
by: seegoon | last post by:
Hi all. So: I've put together a page, in which I want several clickable image maps. I've put those together already. The problem with image maps is that they're not very intuitive, so users don't...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.