phase5 hat mir jetzt den code bereinigt, aber ich hab keine ahnung ob jetzt alle fehler raus sind.
<?xml version="1.0" encoding="utf-8"?>
<html xml:lang="en" lang="en">
<head>
<title>Imagemap</title>
<script type="text/javascript">
var dragobjekt=null;
var dragx = 0;
var dragy = 0;
var posx = 0;
var posy = 0;
function draginit() {
document.onmousemove = drag;
document.onmouseup = dragstop;
}
function dragstart(element) {
dragobjekt = element;
dragx = posx - dragobjekt.offsetLeft;
dragy = posy - dragobjekt.offsetTop;
}
function dragstop() {
dragobjekt=null;
}
function drag(ereignis) {
posx = document.all ? window.event.clientX : ereignis.pageX;
posy = document.all ? window.event.clientY : ereignis.pageY;
if(dragobjekt != null) {
dragobjekt.style.left = (posx - dragx) + "px";
dragobjekt.style.top = (posy - dragy) + "px";
}
}
function hervor(dragable){
if(document.getElementById(dragable){
Wenn es sichtbar war, unsichtbar machen und umgedreht.*/
document.getElementById(dragable).style.display =
(document.getElementById(dragable).style.display == 'none') ? 'inline' : 'none';
}
}
</script>
</head>
<body>
<div><img src="images/104.jpg" usemap="#104" style="border-style:none" border="0"></div>
<div id="dragable" onmousedown="dragstart(this)style=" border="0"><img src="images/1028"></div>
<map name="104">
<area shape="rect" coords="450,59,549,89" href="110">
<area shape="rect" coords="421,269,507,299" href="106">
<area shape="rect" coords="421,330,508,360" href="107">
<area shape="rect" coords="420,390,508,420" href="108">
<area shape="rect" coords="421,451,507,480" href="109">
<area shape="rect" coords="636,708,730,738" href="111">
<area shape="rect" coords="259,837,325,867" href="87">
<area shape="rect" coords="1504,594,1621,623" href="129">
<area shape="rect" coords="1485,422,1634,452" href="105">
<area shape="rect" coords="1499,60,1622,88" href="1">
<area shape="rect" coords="1499,117,1633,146" href="86">
<area shape="rect" coords="1305,274,1369,303" href="84">
<area shape="rect" coords="646,270,717,304" href="javascript:hervor">
<area shape="rect" coords="646,402,717,439" href="1029">
<area shape="rect" coords="645,446,719,481" href="1030">
<area shape="rect" coords="461,663,511,689" href="1021">
<area shape="rect" coords="364,666,414,692" href="1032">
<area shape="rect" coords="1156,93,1206,120" href="1033">
<area shape="rect" coords="1155,164,1207,191" href="1034">
<area shape="rect" coords="1285,138,1360,175" href="1035">
<area shape="rect" coords="1195,305,1269,341" href="1036">
<area shape="rect" coords="1347,408,1421,446" href="1037">
<area shape="rect" coords="1099,412,1150,436" href="1038">
<area shape="rect" coords="1185,413,1234,440" href="1039">
<area shape="rect" coords="1314,515,1366,540" href="1040">
<area shape="rect" coords="1390,514,1441,539" href="1041">
<area shape="rect" coords="1500,512,1548,539" href="1042">
<area shape="rect" coords="1576,515,1625,542" href="1043">
<area shape="rect" coords="1389,666,1439,690" href="1044">
<area shape="rect" coords="1314,666,1362,690" href="1045">
<area shape="rect" coords="1133,638,1203,671" href="1046">
<area shape="rect" coords="1013,711,1062,737" href="1048">
<area shape="rect" coords="917,707,965,733" href="1049">
<area shape="circle" coords="1059,597,21" href="1047">
<area shape="default" nohref></map>
</body>
</html>