473,395 Members | 1,608 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,395 software developers and data experts.

border around areas in the image map with onmouseover event each area

hi

i have an image map with a few area (areas are polygan shape) i want to show to the user shape of the area when mouseover event occur i use the following code but,unforunately it does'nt work correctly

Expand|Select|Wrap|Line Numbers
  1. <html>
  2.  
  3. <head>
  4. <style type="text/css">
  5. area[shape="poly"]:hover {border:1px solid red; }
  6. </style>
  7. </head>
  8. <body>
  9. <map name="planet">
  10. <area shape="poly" coords="0,0,100,50,10,20,30,40" href="http://www.moon.com" />
  11. </map>
  12. <body>
  13.  
  14. </html>

would you please help me or suggest other solution
in advance, thanks
May 23 '11 #1
1 13756
Dormilich
8,658 Expert Mod 8TB
border is a property of the CSS Box Model, which does not apply to polygons.

depending on the overall shape distribution, you may use Image Sprites.
May 23 '11 #2

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

Similar topics

15
by: Oliver | last post by:
Hello i want to get a nice border around images, but not just with the simple <img src"....." border="1"> tag. I tried it in CSS. I did the following: <div class="img_class"> <img...
5
by: Mel | last post by:
is it possible to draw a border around a row of a table ? example please... thanks
5
by: Sjaakie Helderhorst | last post by:
Hi all, I wrote a simple .net app which resizes all images in a directory to a preset imagesize. I want to take this a step further and add a 10px white border around the image. I can't figure out...
5
by: DiGEnig | last post by:
ok here's my problem my markup is Xhtml strict so i am unable to place border="0" in my img tag. I want to be able to get rid of this border but have been un able to figure out how to do thi with...
2
by: MrCode2k | last post by:
Hello, Trying to do: I just want a table that I can scroll and that has fixed headers. Problem: I got it to work but when I added the onmouseover event it didn't work anymore....
7
by: MrCode2k | last post by:
Hello, Trying to do: I just want a table that I can scroll and that has fixed headers. Problem: I got it to work but when I added the onmouseover event it didn't work anymore....
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...
6
by: ravis64 | last post by:
Hi, I basicaly have a form of 9 images, spread in a 3 x 3 grid. What i need to do is give each image a border and on some of the borders they need to over lap the image a bit in the bottom corner...
5
by: JWest46088 | last post by:
I cannot figure out how to get rid of the border around my button image. I got rid of the blue border by setting border=0, but I am still getting a purple border around them after I click them until...
1
by: jay123 | last post by:
Hi, I have ListView and in that ListView their are some Imagebuttons 1) Edit 2) Update 3) Cancel I want to add 'onmouseover' event to all of these buttons for some user. i am trying this...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.