[GoBehindPopup]

Ein Popupfenster, in dem Sie Werbebanner o.ä. anzeigen lassen können geht 'hinter' der Seite auf.

[Kompatibilität]

[zwischen <HEAD> und </HEAD> der aufrufenden Seite]

<script language="JavaScript">

<!-- Begin
// ====================================
// Copyright 2001 by www.CodeLifter.com
// Do *not* remove this notice.
// ====================================

// Set the url of the banner popup window page
var theURL = "gbp_small.htm";

// Set the title of the popup window
var title = "Popup Page"

// Set the size of the popup window
var windowWidth  = 478; // cannot be less than 100
var windowHeight = 100; // cannot be less than 100

// Set the position of the popup window
var windowX = 100;
var windowY = 100;

// Set true to auto-center (positions will be ignored)
var autocenter = false;

// Set true for popup to close when launch page does
var autoclose = true;

// Do not edit below this line.
// ============================

var s="width="+windowWidth+",height="+windowHeight;
var beIE=document.all?true:false;
var done=new Object("no");

if(autocenter){
windowX = (window.screen.width-windowWidth)/2;
windowY = (window.screen.height-windowHeight)/2;
}

function doAgilePopup(){

if (beIE){

agilePopper = window.open("","popAgile","fullscreen,"+s);

agilePopper.blur();

window.focus();

agilePopper.resizeTo(windowWidth,windowHeight);

agilePopper.moveTo(windowX,windowY);

var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+theURL+"' scrolling=no>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"

agilePopper.document.open();

agilePopper.document.write(frameString);

agilePopper.document.close();

}else{

agilePopper=window.open(theURL,"popAgile","scrollbars=no,"+s);

agilePopper.blur();

window.focus();

agilePopper.resizeTo(windowWidth,windowHeight);

agilePopper.moveTo(windowX,windowY);

}

agilePopper.blur();

if (autoclose){

window.onunload = function(){agilePopper.close();}

}

done="okay";
}

//  End -->
</script>

[in den <BODY> Tag]

onLoad="doAgilePopup()"

[zwischen <HEAD> und </HEAD> der aufgerufenen Seite]

<script language="JavaScript">
<!-- Begin
// ====================================
// Copyright 2001 by www.CodeLifter.com
// Do *not* remove this notice.
// ====================================

// Place this script in the head of the page you launch.
// Call the closeMe function to reliably close the window.
// In IE (only), this can be attached to an image (see
// below) or to a table, etc. For a regular link, use:
// <a href="javascript:closeMe()">Close Window</a>

var Message = "Click the banner, Bozo!";

// Do not edit below this line.
// ============================

self.blur();
bV  = parseInt(navigator.appVersion);
bNS = navigator.appName=="Netscape";
bIE = navigator.appName=="Microsoft Internet Explorer";
function closeMe() {
if (bIE) {
if(top.opener.closed) {
top.window.close();
}
else {
if(top.opener.done=="okay") {
top.window.close();
         }
      }
   }
}
function nrc(e) {
if (bNS && e.which > 1) {
alert(Message);
return false;
}
else if (bIE && (event.button >1)) {
alert(Message);
return false;
   }
}
document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;
//  End -->
</script>

[IN den <BODY> Tag der aufgerufenen Seite]

bgcolor="#000000" scroll="no"

[zwischen <BODY> und </BODY> der aufgerufenen Seite] Hier steht der Inhalt dieses Fensters, bspw. in der unten aufgeführten Form...
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td valign="middle" align="center" width="100%" height="100%">
<a href="http://www.eineSeite.com" target="_blank"><img onClick="closeMe()" src="http://www.eineSeite.com" alt="einText" border="0"></a>
</td>
</tr>
</table>
</center>
</div>

[Autor]

CodeLifter

[Download]

Kopieren Sie bitte den Code

Copyright © 1998- Nightfire Webworker Archiv Script No: 0152