I have used this map to start me off with the right code, but wanted to use a world map that was coloured until you hover over the continent which then shows as coloured whilst the rest is greyed out.
I have separate images for each rollover which work, but it seems to work well when you hover over, then out of the area and cannot just move from one continent to the other, it seems to get stuck!!!
Can anyone explain, or provide a fix / upgrade my code?
Thanks
Paula
Images:
I have uploaded a couple of the images so you can see, but can only upload 3.
The html:
HTML Code:<ul id="world"> <li id="eu"><a href="#europe">Europe</a></li> <li id="nam"><a href="#north_smerica">North America</a></li> <li id="sam"><a href="#south_america">South America</a></li> <li id="afr"><a href="#africa">Africa</a></li> <li id="asi"><a href="#asia">Asia</a></li> <li id="aus"><a href="#australia">Australia</a></li> </ul>
The css:
Code:#world { width: 170px; height: 100px; background: url(../images/nav/map_world.jpg) no-repeat; margin: 10px auto; padding: 0; position: relative; border: 2px solid #999; z-index:100px;} #world li {margin: 0; padding: 0; list-style: none; display: block; position: absolute;} #world a {display: block; text-indent: -999px; text-decoration: none;} #eu, #eu a { left: 68px; top: 0px; width: 39px; height: 33px; } #nam, #nam a { left: 13px; top: 0px; width: 52px; height: 46px; } #sam, #sam a { left: 4px; top: 48px; width: 47px; height: 40px; } #afr, #afr a { left: 70px; top: 38px; width: 31px; height: 40px; } #asi, #asi a { left: 114px; top: 1px; width: 27px; height: 38px; } #aus, #aus a { left: 139px; top: 51px; width: 30px; height: 40px; } #eu a:hover {position:relative; left: -68px; top: -0px; background: url(../images/nav/map_world_eu.jpg) no-repeat; width: 170px; height: 100px;} #nam a:hover {position:relative; left: -13px; top: -0px; background: url(../images/nav/map_world_nam.jpg) no-repeat; width: 170px; height: 100px;} #sam a:hover {position:relative; left: -4px; top: -48px; background: url(../images/nav/map_world_sam.jpg) no-repeat; width: 170px; height: 100px;} #afr a:hover {position:relative; left: -70px; top: -38px; background: url(../images/nav/map_world_afr.jpg) no-repeat; width: 170px; height: 100px;} #asi a:hover {position:relative; left: -114px; top: -1px; background: url(../images/nav/map_world_asi.jpg) no-repeat; width: 170px; height: 100px; } #aus a:hover {position:relative; left: -139px; top: -51px; background: url(../images/nav/map_world_aus.jpg) no-repeat; width: 170px; height: 100px; }



Reply With Quote

Bookmarks