[PopupFunction]
JavaScript Source
Script Search
Web Reference

Use this JavaScript function to call as many popup windows on a page as you need. It uses the CSS class attribute. It also allows for browsers that have JavaScript turned-off.

[Code]

[zwischen <HEAD> und </HEAD>]

<script type="text/javascript">
<!-- Begin
/* This script and many more are available free online at
The JavaScript Source!! http://www.nightfire.ch/java/
Created by: Jeremy Keith :: http://www.adactio.com/ */


function doPopups() {
if (!document.getElementsByTagName) return false;
var links=document.getElementsByTagName("a");
for (var i=0; i < links.length; i++) {
if (links[i].className.match("popup")) {
links[i].onclick=function() {
// Below - to open a full-sized window, just use: window.open(this.href);
window.open(this.href, "", "top=40,left=40,width=600,height=400,scrollbars");
return false;
}
}
}
}
window.onload=doPopups;
// End -->
</script>

[zwischen <BODY> und </BODY>]

<div align="center">
<!-- Add the class attribute to your links as below -->
<a href="http://www.nightfire.ch/" class="popup">Nightfire</a><br>
<a href="http://www.nightfire.ch/java/" class="popup">Webworker Archiv</a><br>
<a href="http://www.oasys-board.de/wbb2" class="popup">Oasys</a>
</div>

[Autor]

Jeremy Keith

[Download]

Kopieren Sie bitte den Code

Copyright © 1998- Nightfire Webworker Archiv Script No: 659