anbei die beide scripte.
pdf_index.html: <html>
<head>
<title>Popup-Fenster mit JavaScript</title>
<script type="text/javascript">
function popup (url) {
fenster = window.open(url, "Popupfenster", "DescriptiveWindowName, width=620,height=890,resizable=no, toolbar=no, directories=0,status=no,scrollbars=no,resizable=no ,location=no,menubar=no,locationbar=no");
fenster.focus();
return false;
}
</script>
</head>
<body >
<body onLoad="setClipBoardData();">
<table align="center" cellspacing="0" cellpadding="0" border="0" >
<tr>
<td class="li"> </td>
<td valign="top" id="sp2"><h2><br>
</h2>
<p><a href="index3.html#toolbar=0" onclick="return popup(this.href);">XY</a></p>
<a href="index3.html#toolbar=0"
onclick="window.open('index3.html#toolbar=0','','w idth=503,height=480,left='+(scre en.availWidth/2-410)+',top='+(screen.availHeight/2-310)+'');return false;">click</a>
</body>
</html>
------------------------------------------------------------
index3.html:
<html>
<head>
<title>XY</title>
<script language="javascript">
function setClipBoardData(){
setInterval("window.clipboardData.setData('text',' ')",20);
}
function blockError(){
window.location.reload(true);
return true;
}
</script>
<style type="text/css">
@media print {
body { display:none }
}
</style>
<link rel="stylesheet" href="format.css" type="text/css">
<link rel="stylesheet" href="menue.css" type="text/css">
<style type="text/css">
<script language=JavaScript>
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
var message="Function Disabled!";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!docume nt.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
</script>
<script type="text/javascript">
function click (e) {
if (!e)
e = window.event;
if ((e.type && e.type == "contextmenu") || (e.button && e.button == 2) || (e.which && e.which == 3)) {
if (window.opera)
window.alert("XY");
return false;
}
}
if (document.layers)
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = click;
document.oncontextmenu = click;
</script>
<script language="javascript">
<style type="text/css">
body,td,th {
font-family: Arial, Helvetica, sans-serif;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
</head>
<body onload="changetitle()">
<body onLoad="setClipBoardData();">
<object classid="clsid
27CDB6E-AE6D-11cf-96B8-444553540000"
width="100%"
height="100%"
codebase="http://active.macromedia.com/flash5/cabs/swflash.cab#version=8,0,0,0">
<param name="MOVIE" value="index3.swf">
<param name="PLAY" value="true">
<param name="LOOP" value="true">
<param name="QUALITY" value="high">
<param name="FLASHVARS" value="zoomtype=3">
<embed src="index3.swf" width="100%" height="100%"
play="true" ALIGN="" loop="true" quality="high"
type="application/x-shockwave-flash"
flashvars="zoomtype=3"
pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
</body>
</html>
----------------------
pdf_index.html -----> eroeffnet index3.html
und index3html -----> eroeffnetindex3.swf
Danke & Gruss
WA