popup vindue
Hvordan kan jeg bruge dette script til at åbne 2 forskellige sider, link1 og link2:<SCRIPT LANGUAGE="JavaScript">
closetime = 0;
function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=50,top=50,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", "scrollbars=yes", windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}
function doPopup() {
url = "show_selection.php";
width = 600;
height = 400;
delay = 0;
timer = setTimeout("Start(url, width, height)", delay*1000);
}
</script>
Kim
