08. september 1999 - 00:17
#4
Hmmm, jeg kan nu ikke helt få det til at virke!
Links på siden herunder skal føre tilbage til original vinduet, hvordan gør man?
Kode på popup-siden:
<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE="JavaScript">
window.onerror=null;
window.defaultStatus = "";
var prefix = "";
var curImg = 0;
function map() {
this.links = new Array();
}
var maps = new Array;
maps[1] = new map();
maps[1].links[1] = "link1_1.htm";
maps[1].links[2] = "link1_2.htm";
maps[2] = new map();
maps[2].links[1] = "link2_1.htm";
maps[2].links[2] = "link2_2.htm";
maps[2].links[3] = "link2_3.htm";
maps[2].links[4] = "link2_4.htm";
maps[2].links[5] = "link2_5.htm";
maps[2].links[6] = "link2_6.htm";
maps[2].links[7] = "link2_7.htm";
maps[3] = new map();
maps[3].links[1] = "link3_1.htm";
maps[3].links[2] = "link3_2.htm";
maps[3].links[3] = "link3_3.htm";
maps[4] = new map();
maps[4].links[1] = "link4_1.htm";
maps[4].links[2] = "link4_2.htm";
maps[4].links[3] = "link4_3.htm";
maps[4].links[4] = "link4_4.htm";
maps[4].links[5] = "link4_5.htm";
maps[4].links[6] = "link4_6.htm";
maps[5] = new map();
maps[5].links[1] = "link5_1.htm";
maps[5].links[2] = "link5_2.htm";
maps[6] = new map();
maps[6].links[1] = "link6_1.htm";
maps[6].links[2] = "link6_2.htm";
maps[6].links[3] = "link6_3.htm";
maps[7] = new map();
maps[7].links[1] = "link7_1.htm";
maps[7].links[2] = "link7_2.htm";
maps[7].links[3] = "link7_3.htm";
maps[7].links[4] = "link7_4.htm";
maps[7].links[5] = "link7_5.htm";
maps[7].links[6] = "link7_6.htm";
maps[7].links[7] = "link7_7.htm";
maps[7].links[8] = "link7_8.htm";
maps[7].links[9] = "link7_9.htm";
maps[8] = new map();
maps[8].links[1] = "link8_1.htm";
maps[8].links[2] = "link8_2.htm";
maps[8].links[3] = "link8_3.htm";
maps[9] = new map();
maps[9].links[1] = "link9_1.htm";
maps[9].links[2] = "link9_2.htm";
maps[9].links[3] = "link9_3.htm";
maps[9].links[4] = "link9_4.htm";
maps[9].links[5] = "link9_5.htm";
maps[9].links[6] = "link9_6.htm";
maps[9].links[7] = "link9_7.htm";
maps[9].links[8] = "link9_8.htm";
maps[9].links[9] = "link9_9.htm";
maps[10] = new map();
maps[10].links[1] = "link10_1.htm";
maps[10].links[2] = "link10_2.htm";
maps[10].links[3] = "link10_3.htm";
if (document.images) {
LinkImages = new Array();
for(N = 0; N <= 20; N++) {
LinkImages[N] = new Image();
LinkImages[N].src = prefix+"type/type" + N + ".gif";
}
for(N = 21; N <= 31; N++) {
LinkImages[N] = new Image();
LinkImages[N].src = prefix+"type/type" + N + "_pil.gif";
}
}
function RefleksShift2(N,IMG,NUM) {
if (document.images) {
curImg = NUM;
document.images[N].src = prefix+"type/" + IMG;
}
window.status='Drake Denmark';
return true;
}
function mapClick(num) {
if (curImg != 0) {
if (maps.length > curImg) {
if (maps[curImg].links.length > num) {
document.location = maps[curImg].links[num];
}
}
}
window.focus();
}
function noMes() {
window.status='Drake Denmark';
return true;
}
// End of Script -->
</SCRIPT>
</HEAD>
<BODY bgcolor="#FFFFD7" background="baggrund.gif">
<table align="center" cellspacing="0" cellpadding="0" border="0" width="601" height="215">
<tr>
<td><a href="#" OnMouseOver="RefleksShift2(1,'type1.gif',1)" OnMouseOut="RefleksShift2(1,'type1.gif',1)" OnClick="window.opener.location.href = 'index.html';"><img src="select_type1.gif" width=264 height=29 border=0 alt=""></a></td>
<td rowspan="10"><img src="type/type_blank.gif" width=337 height=215 border=0 alt="" usemap="#linkmap"></td>
</tr>
<tr>
<td><a href="#" OnMouseOver="RefleksShift2(1,'type2.gif',2)" OnMouseOut="RefleksShift2(1,'type2.gif',2)"><img src="select_type2.gif" width=264 height=21 border=0 alt=""></a></td>
</tr>
<tr>
<td><a href="#" OnMouseOver="RefleksShift2(1,'type3.gif',3)" OnMouseOut="RefleksShift2(1,'type3.gif',3)"><img src="select_type3.gif" width=264 height=18 border=0 alt=""></a></td>
</tr>
<tr>
<td><a href="#" OnMouseOver="RefleksShift2(1,'type4.gif',4)" OnMouseOut="RefleksShift2(1,'type4.gif',4)"><img src="select_type4.gif" width=264 height=20 border=0 alt=""></a></td>
</tr>
<tr>
<td><a href="#" OnMouseOver="RefleksShift2(1,'type5.gif',5)" OnMouseOut="RefleksShift2(1,'type5.gif',5)"><img src="select_type5.gif" width=264 height=21 border=0 alt=""></a></td>
</tr>
<tr>
<td><a href="#" OnMouseOver="RefleksShift2(1,'type6.gif',6)" OnMouseOut="RefleksShift2(1,'type6.gif',6)"><img src="select_type6.gif" width=264 height=20 border=0 alt=""></a></td>
</tr>
<tr>
<td><a href="#" OnMouseOver="RefleksShift2(1,'type7.gif',7)" OnMouseOut="RefleksShift2(1,'type7.gif',7)"><img src="select_type7.gif" width=264 height=21 border=0 alt=""></a></td>
</tr>
<tr>
<td><a href="#" OnMouseOver="RefleksShift2(1,'type8.gif',8)" OnMouseOut="RefleksShift2(1,'type8.gif',8)"><img src="select_type8.gif" width=264 height=19 border=0 alt=""></a></td>
</tr>
<tr>
<td><a href="#" OnMouseOver="RefleksShift2(1,'type9.gif',9)" OnMouseOut="RefleksShift2(1,'type9.gif',9)"><img src="select_type9.gif" width=264 height=23 border=0 alt=""></a></td>
</tr>
<tr>
<td><a href="#" OnMouseOver="RefleksShift2(1,'type10.gif',10)" OnMouseOut="RefleksShift2(1,'type10.gif',10)"><img src="select_type10.gif" width=264 height=23 border=0 alt=""></a></td>
</tr>
</table>
<map name="linkmap">
<area shape="rect" coords="27,170,326,184" href="java script:mapClick(9);" onMouseOver="noMes();">
<area shape="rect" coords="28,152,329,164" href="java script:mapClick(8);" onMouseOver="noMes();">
<area shape="rect" coords="29,130,327,145" href="java script:mapClick(7);" onMouseOver="noMes();">
<area shape="rect" coords="29,110,327,125" href="java script:mapClick(6);" onMouseOver="noMes();">
<area shape="rect" coords="28,90,328,105" href="java script:mapClick(5);" onMouseOver="noMes();">
<area shape="rect" coords="26,71,326,86" href="java script:mapClick(4);" onMouseOver="noMes();">
<area shape="rect" coords="30,51,330,65" href="java script:mapClick(3);" onMouseOver="noMes();">
<area shape="rect" coords="30,31,328,46" href="java script:mapClick(2);" onMouseOver="noMes();">
<area shape="rect" coords="29,10,327,25" href="java script:mapClick(1);" onMouseOver="noMes();">
</map>
</BODY>
</HTML>