Med lidt god vilje fra Tekniske afdeling lykkeds det. Skriver det lige her hvis en eller anden en dag får brug for hjælp med det samme.
<script language="JavaScript" type="text/JavaScript">
<!--
var ns, ns4, ns6, ie, ie4, layerObj, styleObj;
function findBrowser() {
ns = (document.layers) ? true : false;
ns4 = (navigator.appName == 'Netscape' && parseInt(navigator.appVersion) == 4);
ns6 = (document.getElementById) ? true : false;
ie = (document.all) ? true : false;
ie4 = (document.all)? true:false;
}
function hideLayer(idLayerClose) {
obj = (ns4)? document.layers[idLayerClose] : (ie4)? document.all[idLayerClose] : document.getElementById(idLayerClose);
styleObj = (ns4)? obj : obj.style;
styleObj.visibility = "hidden";
}
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body onLoad="findBrowser()">
<div id="FlashReklame" style="position:absolute; left:182px; top:20px; width:300px; height:300px; z-index:1; visibility: visible;">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="300" height="300">
<param name="movie" value="filnavn.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="filnavn.swf" quality="high" pluginspage="
http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="300"></embed>
</object>
</div>
Så i flash knappen smed vi den her ind
on (release) {
getURL("java script: hideLayer('FlashReklame')");
}
Det virker som en drøm :)