Popup - virker ikke - Hvorfor?
Jeg har ved hjælp af builder.dk lavet det her popup vindue - men det virker ikke.Den er lagt på nettet...
http://www.ack-lan.dk
Det er afstemningen i bunden af menuen der skulle poppe op i et nyt vindue.
Her er koden som builder.dk gav mig:
--I HEAD--
<script language=\"JavaScript\">
<!-- Gem koden for gamle browsere
function PopWin(url,h,w) { var ww = 480, wh = 340, leftPos = null, topPos = null;
if (top.screen){
if (screen.width){
leftPos = Math.round((screen.width-h-10)/2);
topPos = Math.round((screen.height-w-29)/2);
} else { leftPos = 50
topPos = 50
}
}
popupWin = window.open(url, \'Afstemning\', \'height=\' + h + \',width=\' + w + \',top=\' + topPos + \',left=\' + leftPos + \'\')
}
// -->
</script>
----- HEAD SLUT-----
----I LINK------
<a href=\"java script:PopWin(http://www.ack-lan.dk/poll/pollmentor.asp\',395,680);\">Din linktekst</a>
--------------------------------------
Koden når jeg har sat den ind ser sådanne ude:
-------------------------------------
<html>
<head>
<script language=\"JavaScript\">
<!-- Gem koden for gamle browsere
function PopWin(url,h,w) { var ww = 480, wh = 340, leftPos = null, topPos = null;
if (top.screen){
if (screen.width){
leftPos = Math.round((screen.width-h-10)/2);
topPos = Math.round((screen.height-w-29)/2);
} else { leftPos = 50
topPos = 50
}
}
popupWin = window.open(url, \'Afstemning\', \'height=\' + h + \',width=\' + w + \',top=\' + topPos + \',left=\' + leftPos + \'\')
}
// -->
</script>
<title>Menu</title>
<base target=\"hovedramme\">
<style type=\"text/css\">
<!--
A:link { text-decoration:none; font-weight: ;font-size: 10pt; color: #FFFFFF; }
A:visited { text-decoration: none;font-weight: ;font-size: 10pt; color: #FFFFFF;}
A:active { text-decoration: none;font-weight: ;font-size: 10pt; color: #FFFFFF;}
A:hover { text-decoration:none;font-weight: ;font-size: 10pt; color: #333333;}
//-->
</style>
</head>
<body topmargin=\"0\" leftmargin=\"0\" bgcolor=\"#817E86\">
<table border=\"0\" width=\"25%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"100%\">
<table border=\"0\" width=\"40%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"100%\">
<table border=\"0\" width=\"43%\" cellspacing=\"0\" cellpadding=\"0\" height=\"749\">
<tr>
<td width=\"56%\" valign=\"top\" height=\"749\">
<table border=\"0\" width=\"141\" cellspacing=\"0\" cellpadding=\"0\" height=\"58\">
<tr>
<td width=\"153\" height=\"21\" background=\"images/gif1.gif\"><br>
<br>
<br>
-
</td>
</tr>
<tr>
<td width=\"153\" bgcolor=\"#344151\" height=\"17\">
<p align=\"center\"><font face=\"Arial\" size=\"2\" color=\"#FFFFFF\"><b>KLUBBEN</b></font></td>
</tr>
<tr>
<td width=\"153\" height=\"5\" bgcolor=\"#817E86\"><img border=\"0\" src=\"images/bjal.jpg\" width=\"153\" height=\"2\"><br>
<font color=\"#FFFFFF\" face=\"Century Gothic\" size=\"2\"><a href=\"klub/historien.htm\">-
Historie</a><br>
<a href=\"klub/bestyrelsen.htm\">- Bestyrelsen</a><br>
- <a href=\"klub/beliggenhed.htm\"> Beliggenhed</a><br>
<a href=\"klub/fremtiden.htm\">- Fremtiden<br>
</a> <a href=\"klub/regler.htm\">- Regler<br>
</a> - <a href=\"guestbook/default.asp\">Gæstebog<br>
</a> - <a href=\"klub/nytlook.htm\">NYT UDSEENDE !</a></font>
</td>
</tr>
<tr>
<td width=\"153\" height=\"15\" bgcolor=\"#344151\">
<p align=\"center\"><font face=\"Arial\" size=\"2\" color=\"#FFFFFF\"><b>ACK-TRÆF</b></font></td>
</tr>
<tr>
<td width=\"153\" height=\"21\" bgcolor=\"#817E86\"><img border=\"0\" src=\"images/bjal.jpg\" width=\"153\" height=\"2\"><br>
<font face=\"Century Gothic\" color=\"#FFFFFF\" size=\"2\"> -
<a href=\"calendar/Calendar.asp\">
Kalender</a><br>
- <a href=\"traef/ntraef.htm\">Næste Træf</a><br>
- <a href=\"traef/countdown.htm\"> Tilmelding</a><br>
- <a href=\"traef/nyttig.htm\"> Nyttige Oplysninger<br>
</a> - <a href=\"traef/billeder.htm\">Billeder fra sidste
træf</a></font></td>
</tr>
</table>
<table border=\"0\" width=\"3%\" cellspacing=\"0\" cellpadding=\"0\" height=\"56\">
<tr>
<td width=\"100%\" bgcolor=\"#344151\" height=\"18\">
<p align=\"center\"><font face=\"Arial\" size=\"2\" color=\"#FFFFFF\"><b>MEDLEMMER</b></font></td>
</tr>
<tr>
<td width=\"100%\" bgcolor=\"#817E86\" height=\"2\"><img border=\"0\" src=\"images/bjal.jpg\" width=\"153\" height=\"2\"></td>
</tr>
<tr>
<td width=\"100%\" bgcolor=\"#817E86\" height=\"18\"><font face=\"Century Gothic\" size=\"1\" color=\"#FFFFFF\"> </font><font face=\"Century Gothic\" color=\"#FFFFFF\" size=\"2\">-
<a href=\"medlem/amedlem.htm\">
A-medlemmer</a><br>
- <a href=\"medlem/medlemskab.htm\">Medlemskab</a><br>
- <a href=\"medlem/indmeld.htm\"> Indmelding</a></font></td>
</tr>
<tr>
<td width=\"100%\" bgcolor=\"#344151\" height=\"18\">
<p align=\"center\"><font face=\"Arial\" size=\"2\" color=\"#FFFFFF\"><b>LINKS</b></font></td>
</tr>
</table>
<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" height=\"140\">
<tr>
<td width=\"100%\" bgcolor=\"#817E86\" height=\"4\"><img border=\"0\" src=\"images/bjal.jpg\" width=\"153\" height=\"2\"><br>
<font face=\"Century Gothic\" color=\"#FFFFFF\" size=\"2\"> -
<a href=\"http://www.spcom.dk\" alt=\"Sp-Computer Systems I/s\">
Sponsorer</a><br>
- Andre Pc-klubber<br>
- <a href=\"chat.htm\">Ack Chat !!<br>
</a><a href=\"java script:PopWin(\'http://www.ack-lan.dk/poll/pollmentor.asp\',395,680);\"> - AFSTEMNING</a></font>
</td>
</tr>
<tr>
<td width=\"100%\" bgcolor=\"#817E86\" height=\"114\"> </td>
</tr>
<tr>
<td width=\"100%\" height=\"21\" bgcolor=\"#817E86\"> </td>
</tr>
<tr>
<td width=\"100%\" height=\"1\"></td>
</tr>
<tr>
<td width=\"100%\" bgcolor=\"#817E86\" height=\"114\"> </td>
</tr>
<tr>
<td width=\"100%\" height=\"21\"></td>
</tr>
<tr>
<td width=\"100%\" height=\"1\"></td>
</tr>
</table>
</td>
<td width=\"56%\" bgcolor=\"#000000\" height=\"749\"> </td>
</tr>
</table>
</td>
</tr>
</table>
<p> </td>
</tr>
</table>
</body>
</html>
-------------------------------------
Please hjælp mig - jeg har dog ikke flere point... så jeg håber i vil hjælpe mig alligevel! :-(
