Kaktus: absolute position messen

Beitrag lesen

hm nun weiß ich grnicht mehr weiter kannst du mal das script verändern?
Ich hab die tagbereiche angedeutet.

Css

#Impressum { position: relative; left:50%; top:50%; width:54px; height:11px; margin-left:-323px; margin-top:-117px;
  text-align:left; background-color:#FFFFFF;border:px solid #000000; overflow: hidden;}

/Css

javascript

function rein(a){
  ax = document.getElementById(a).offsetLeft
  ay = document.getElementById(a).offsetTop
  ah = document.getElementById(a).offsetHeight
  ab = document.getElementById(a).offsetWidth

ax = ax - 2;  //Pixel pro Aufruf
 document.getElementById(a).style.left = ax + "px";
 ay = ay - 1;  //Pixel pro Aufruf
 document.getElementById(a).style.top = ay + "px";
  ah = ah + 2;  //Pixel pro Aufruf
 document.getElementById(a).style.height = ah + "px";
 ab = ab + 2;  //Pixel pro Aufruf
 document.getElementById(a).style.width = ab + "px";

}

/javascript

body

<div align='center' id='Impressum' width='100%' height='100%' >
 <img src="Bilder/Impressum_gruen_1024x768.gif" width="100%" height="100%" onmouseover=rein("Impressum")>
 </div>

/body

DANKE