Udviskning af /inaktivt site....
Hej...Jeg har følgende javascript til at simulere en "POPUP" box...
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 4.01//EN"
"www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<style type="text/css">
#my_popup {
border:1px solid darkgray;
padding: 10px;
background-color: #CCC;
margin-left: 550px;
margin-top: 200px;
width: 260px;
height: 180px;
}
</style>
<script type="text/javascript">
function show_popup(id) {
if (document.getElementById){
obj = document.getElementById(id);
if (obj.style.display == "none") {
obj.style.display = "";
document.getElementById("show_link").style.display = "none";
}
}
}
function hide_popup(id){
if (document.getElementById){
obj = document.getElementById(id);
if (obj.style.display == ""){
obj.style.display = "none";
document.getElementById("show_link").style.display = "";
}
}
}
</script>
</head>
<body>
<div id="my_popup" style="display:none;">
<div align="right">
<a href="java script:hide_popup('my_popup')">close</a>
</div>
</div>
<a id="show_link" href="java script:show_popup('my_popup')">Show popup</a>
</body>
</html>
"www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<style type="text/css">
#my_popup {
border:1px solid darkgray;
padding: 10px;
background-color: #CCC;
margin-left: 550px;
margin-top: 200px;
width: 260px;
height: 180px;
}
</style>
<script type="text/javascript">
function show_popup(id) {
if (document.getElementById){
obj = document.getElementById(id);
if (obj.style.display == "none") {
obj.style.display = "";
document.getElementById("show_link").style.display = "none";
}
}
}
function hide_popup(id){
if (document.getElementById){
obj = document.getElementById(id);
if (obj.style.display == ""){
obj.style.display = "none";
document.getElementById("show_link").style.display = "";
}
}
}
</script>
</head>
<body>
<div id="my_popup" style="display:none;">
<div align="right">
<a href="java script:hide_popup('my_popup')">close</a>
</div>
</div>
<a id="show_link" href="java script:show_popup('my_popup')">Show popup</a>
</body>
</html>
Det jeg så godt kunne tænke mig er at siden "POPUP" boxen popper up på..altså baggrunden bliver inaktiv så længe "POPUP" boxen er fremme... Sådan at baggrunden ligesom bliver udvisket.
Er der nogen der ved, hvorledes dette laves eller evt. hvad der skal goggles efter??
Håber der er en med lidt hjælp her.
På forhånd tak.