JS show/hide-funktion skal gøres NS 6-kombatibelt. :o)
Har dette dejlige script, fundet på www.dansteinman.com, men tiden er åbenbart løbet fra guruen. Scriptet virker ihvertfald ikke i NS 6. Nogen der kan hjælpe med dette \'lille\' problem? :o)<html>
<head>
<title>The Dynamic Duo - Hiding and Showing</title>
<script language=\"JavaScript\">
<!--
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
function init() {
if (ns4) block = document.blockDiv
if (ie4) block = blockDiv.style
}
// Show/Hide functions for pointer objects
function showObject(obj) {
if (ns4) obj.visibility = \"show\"
else if (ie4) obj.visibility = \"visible\"
}
function hideObject(obj) {
if (ns4) obj.visibility = \"hide\"
else if (ie4) obj.visibility = \"hidden\"
}
//-->
</SCRIPT>
</HEAD>
<BODY BGCOLOR=\"#FFFFFF\" onLoad=\"init()\">
<A HREF=\"java script:showObject(block)\">show</A> - <A HREF=\"java script:hideObject(block)\">hide</A>
<DIV ID=\"blockDiv\" STYLE=\"position:absolute; left:50px; top:100px; width:30px; height:30px; clip:rect(0px 30px 30px 0px); background-color:red; layer-background-color:red;\">
</DIV>
</BODY>
</HTML>
- Parazite
