Ich habe folgendes Script für einen Adventskalender.
Dieses Script funtkioniert auch - bis auf eines:
Die "Türchen" also die einzelnen Seiten werden immer in einem neuen Fenster geöffnet.
Ich möchte aber, dass sie im selben Fenster geöffnet werden.
Wer kann mir sagen, WO ich da WAS eingeben muss????
Für Eure Hilfe schon mal vielen Dank im voraus!
Liebe Grüße
Petra
Hier das Script:
Code
<script language=JavaScript>
var now = new Date();
var month = now.getMonth() + 1;
var date = now.getDate();
function RO(tag){
var url=tag+'.htm'
if (month==12 && date >= tag){
msg=window.open (url, "msg",)
msg.focus()}
else
msg=window.open("nochnicht.htm", "msg", 'scrollbars=no,width=400,height=200,left=40,top=280')
msg.focus()
}
</script>
<script Language="JavaScript"><!--
function changeIt(ImageToChange, ImageToShow) {
if (document.images) { document[ImageToChange].src = ImageToShow; } }
if (document.images) {
o1 = new Image;
o1.src = "kirch_0a.jpg";
o2 = new Image;
o2.src = "kirch_1a.jpg";
o3 = new Image;
o3.src = "kirch_2a.jpg";
o4 = new Image;
o4.src = "kirch_3a.jpg";
o5 = new Image;
o5.src = "kirch_4a.jpg";
o6 = new Image;
o6.src = "kirch_5a.jpg";
o7 = new Image;
o7.src = "kirch_6a.jpg";
o8 = new Image;
o8.src = "kirch_7a.jpg";
o9 = new Image;
o9.src = "kirch_8a.jpg";
o10 = new Image;
o10.src = "kirch_9a.jpg";
o11 = new Image;
o11.src = "kirch_10a.jpg";
o12 = new Image;
o12.src = "kirch_11a.jpg";
o13 = new Image;
o13.src = "kirch_12a.jpg";
o14 = new Image;
o14.src = "kirch_13a.jpg";
o15 = new Image;
o15.src = "kirch_14a.jpg";
o16 = new Image;
o16.src = "kirch_15a.jpg";
o17 = new Image;
o17.src = "kirch_16a.jpg";
o18 = new Image;
o18.src = "kirch_17a.jpg";
o19 = new Image;
o19.src = "kirch_18a.jpg";
o20 = new Image;
o20.src = "kirch_19a.jpg";
o21 = new Image;
o21.src = "kirch_20a.jpg";
o22 = new Image;
o22.src = "kirch_21a.jpg";
o23 = new Image;
o23.src = "kirch_22a.jpg";
o24 = new Image;
o24.src = "kirch_23a.jpg";
}
// -->
</script>
</head>
<body text="#FFFFCC" bgcolor="#FFFFFF" link="#FFCC00" vlink="#CC6600" alink="#FF6600" background="seitenhint.JPG">
<center><table BORDER=0 CELLSPACING=10 COLS=1 WIDTH="98%" HEIGHT="1150" BACKGROUND="tabellenhint.JPG" >
<tr>
<td>
<center><table BORDER=0 CELLSPACING=6 COLS=1 WIDTH="100%" HEIGHT="1140" BACKGROUND="rand.JPG" >
<tr>
<td>
<center><table BORDER=0 CELLSPACING=6 COLS=1 WIDTH="100%" HEIGHT="1130" BACKGROUND="tabellenhint.JPG" >
<tr>
<td>
<center><table BORDER=0 CELLSPACING=2 COLS=1 WIDTH="100%" HEIGHT="1120" BACKGROUND="tabellenhint.JPG" >
<tr>
<td>
<center><table BORDER=0 CELLSPACING=6 COLS=1 WIDTH="100%" HEIGHT="1110" BACKGROUND="rand.JPG" >
<tr>
<td>
<center><table BORDER=0 CELLSPACING=10 COLS=1 WIDTH="100%" HEIGHT="1100" BACKGROUND="tabellenhint.JPG" >
<tr VALIGN=TOP>
<td>
<center><table BORDER=0 WIDTH="90%" >
<tr>
<td>[url='javascript:RO(8)'][img]kirch_0.jpg[/img][/url]</td>
<td>[url='javascript:RO(6)'][img]kirch_1.jpg[/img][/url]</td>
<td>[url='javascript:RO(17)'][img]kirch_2.jpg[/img][/url]</td>
<td>[url='javascript:RO(11)'][img]kirch_3.jpg[/img][/url]</td>
<td>[url='javascript:RO(3)'][img]kirch_4.jpg[/img][/url]</td>
</tr>
<tr>
<td>[url='javascript:RO(14)'][img]kirch_5.jpg[/img][/url]</td>
<td>[url='javascript:RO(1)'][img]kirch_6.jpg[/img][/url]</td>
<td>[url='javascript:RO(16)'][img]kirch_7.jpg[/img][/url]</td>
<td>[url='javascript:RO(2)'][img]kirch_8.jpg[/img][/url]</td>
<td>[url='javascript:RO(12)'][img]kirch_9.jpg[/img][/url]</td>
</tr>
<tr>
<td>[url='javascript:RO(4)'][img]kirch_10.jpg[/img][/url]</td>
<td>[url='javascript:RO(10)'][img]kirch_11.jpg[/img][/url]</td>
<td>[img]kirch_12.jpg[/img]</td>
<td>[url='javascript:RO(5)'][img]kirch_13.jpg[/img][/url]</td>
<td>[url='javascript:RO(23)'][img]kirch_14.jpg[/img][/url]</td>
</tr>
<tr>
<td>[url='javascript:RO(18)'][img]kirch_15.jpg[/img][/url]</td>
<td>[url='javascript:RO(13)'][img]kirch_16.jpg[/img][/url]</td>
<td>[url='javascript:RO(15)'][img]kirch_17.jpg[/img][/url]</td>
<td>[url='javascript:RO(20)'][img]kirch_18.jpg[/img][/url]</td>
<td>[url='javascript:RO(7)'][img]kirch_19.jpg[/img][/url]</td>
</tr>
<tr>
<td>[url='javascript:RO(21)'][img]kirch_20.jpg[/img][/url]</td>
<td>[url='javascript:RO(24)'][img]kirch_21.jpg[/img][/url]</td>
<td>[url='javascript:RO(9)'][img]kirch_22.jpg[/img][/url]</td>
<td>[url='javascript:RO(19)'][img]kirch_23.jpg[/img][/url]</td>
<td>[url='javascript:RO(22)'][img]kirch_24.jpg[/img][/url]</td>
</tr>
<tr>
<td COLSPAN="5"></td>
</tr>
</table></center>
</td>
</tr>
</table></center>
</td>
</tr>
</table></center>
</td>
</tr>
</table></center>
</td>
</tr>
</table></center>
</td>
</tr>
</table></center>
</td>
</tr>
</table></center>
</body>
Alles anzeigen