undertaker1988
Lt. Junior Grade
- Registriert
- Nov. 2003
- Beiträge
- 465
hier ein script wo ich den fehler nicht finde......danke für jeden der mir weiter helfen kann. es geht darum einen tip des tages in ein extra fenster zu öffnen bei mausklick
<html>
<head>script>
/* Random Message by www.nightfire.ch */
var ie= (document.all); // Browserweiche
if (ie) {
var oPopup = window.createPopup();
function richDialog()
{
oPopup.document.body.innerHTML = oDialog.innerHTML;
oPopup.show(250, 250, 400, 300); //Position und Grösse des Fensters
}
}
</script>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var howMany = 10; // max Anzahl Items
var page = new Array(howMany+1);
page[0]="<p>... Ihre 1. Nachricht";
page[1]="<p>... Ihre 2. Nachricht";
page[2]="<p>... Ihre 3. Nachricht";
page[3]="<p>... Ihre 4. Nachricht";
page[4]="<p>... Ihre 5. Nachricht";
page[5]="<p>... Ihre 6. Nachricht";
page[6]="<p>... Ihre 7. Nachricht";
page[7]="<p>... Ihre 8. Nachricht";
page[8]="<p>... Ihre 9. Nachricht";
page[9]="<p>... Ihre 10. Nachricht";
page[10]="<p>... Ihre 11. Nachricht";
//page[]="<p>... "; // unbeschränkt viel weitere Nachrichten...
function rndnumber(){
var randscript = -1;
while (randscript < 0 || randscript > howMany || isNaN(randscript)){
randscript = parseInt(Math.random()*(howMany+1));
}
return randscript;
}
quo = rndnumber();
quox = page[quo];
// End -->
</SCRIPT>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>script</title>
</head>
<body onload="richDialog();">
<DIV ID="oDialog" STYLE="display:none;">
<div id="myid"
style="position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:#cccccc;
border:1px solid black;
border-top:1px solid white;
border-left:1px solid white;
padding:10px;
font:normal 10pt tahoma;
padding-left:18px ">
<b>Wussten Sie schon, dass...?</b>
<hr size="1" style="border:1px solid black;">
<div
style="position: absolute;
top:50px;
left:20px;
width:360px;
height:200px;
border:1px solid black;
border-bottom:1px solid white;
border-right:1px solid white;
font:normal 10pt tahoma;
filter
rogid
XImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=gold, EndColorStr=#FFFFFF);
padding:10px" >
<script language="javascript">
document.write(quox);
</script>
</div>
<div style="position: absolute; top:260px; left:20px">
<button tabindex="-1" onclick="parent.oPopup.hide();"
style="border:1px solid black;
border-left:1px solid white;
border-top:1px solid white;
background:#cccccc ">Message schliessen</button>
</div>
</DIV>
</DIV>
</body>
</html>
<html>
<head>script>
/* Random Message by www.nightfire.ch */
var ie= (document.all); // Browserweiche
if (ie) {
var oPopup = window.createPopup();
function richDialog()
{
oPopup.document.body.innerHTML = oDialog.innerHTML;
oPopup.show(250, 250, 400, 300); //Position und Grösse des Fensters
}
}
</script>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var howMany = 10; // max Anzahl Items
var page = new Array(howMany+1);
page[0]="<p>... Ihre 1. Nachricht";
page[1]="<p>... Ihre 2. Nachricht";
page[2]="<p>... Ihre 3. Nachricht";
page[3]="<p>... Ihre 4. Nachricht";
page[4]="<p>... Ihre 5. Nachricht";
page[5]="<p>... Ihre 6. Nachricht";
page[6]="<p>... Ihre 7. Nachricht";
page[7]="<p>... Ihre 8. Nachricht";
page[8]="<p>... Ihre 9. Nachricht";
page[9]="<p>... Ihre 10. Nachricht";
page[10]="<p>... Ihre 11. Nachricht";
//page[]="<p>... "; // unbeschränkt viel weitere Nachrichten...
function rndnumber(){
var randscript = -1;
while (randscript < 0 || randscript > howMany || isNaN(randscript)){
randscript = parseInt(Math.random()*(howMany+1));
}
return randscript;
}
quo = rndnumber();
quox = page[quo];
// End -->
</SCRIPT>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>script</title>
</head>
<body onload="richDialog();">
<DIV ID="oDialog" STYLE="display:none;">
<div id="myid"
style="position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:#cccccc;
border:1px solid black;
border-top:1px solid white;
border-left:1px solid white;
padding:10px;
font:normal 10pt tahoma;
padding-left:18px ">
<b>Wussten Sie schon, dass...?</b>
<hr size="1" style="border:1px solid black;">
<div
style="position: absolute;
top:50px;
left:20px;
width:360px;
height:200px;
border:1px solid black;
border-bottom:1px solid white;
border-right:1px solid white;
font:normal 10pt tahoma;
filter
padding:10px" >
<script language="javascript">
document.write(quox);
</script>
</div>
<div style="position: absolute; top:260px; left:20px">
<button tabindex="-1" onclick="parent.oPopup.hide();"
style="border:1px solid black;
border-left:1px solid white;
border-top:1px solid white;
background:#cccccc ">Message schliessen</button>
</div>
</DIV>
</DIV>
</body>
</html>