<script type="text/javascript">
// JavaScript Document
function showHideDiv(objid,state){
var obj;
try {
if(objid.parentNode){
//it's an object. we needn't do anything
obj = objid;
} else {
//it's not an object
obj = document.getElementById(objid);
}
} catch(e) {
//it's not an object and the browser errors on undefined properties
obj = document.getElementById(objid);
}
state = (state == "hidden" || state == "hide") ? 0 : 1;
vista = (state) ? 'block' : 'none';
obj.style.display = vista;
return true;
}
</script><div id="postit">
<a href="index.php"><img src="layer.gif" alt="" width="380" height="322" border="0" /></a>
<div id="postitClose"><a href="#" onclick="showHideDiv('postit','hide');"><img src="close.png" border="0" alt="Schliessen" /></a></div>#postit{
width:380px;
height:322px;
position:absolute;
top:15px;
left:70%;
margin-left:-175px;
text-align:center;
z-index:100;
}
#postitClose{
position:absolute;
top:7px;
right:102px;
z-index:102;
border:0;
}
JavaScript Layer (visible, hide)
Nicki232 27.03.2007 - 91 Hits - 7 Antworten
Besucher online ?
MikeDM 13.07.2007 - 17 Hits - 1 Antwort
error with this layer
rocknblues 05.02.2008 - 96 Hits - 1 Antwort