madref
Gebruiker
- Lid geworden
- 17 feb 2005
- Berichten
- 220
Het volgende heb ik gevonden op een website
En opent een plaatje in een nieuw scherm.
Hoe kan je dit wijzigen zodat hij het opent in een frame (bijv FrameMain)?
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script courtesy of Jim Stiles) -->
<!-- Web Site: www.jdstiles.com -->
<!-- Begin
timeout =0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds
function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=50,top=50,width=" + (WIDTH+50) + ",height=" + (HEIGHT+50);
text = "<html><head><title>Preview</title></head><body bgcolor='BLACK'";
if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";
text += "><center><img src='" + URL + "'>";
if (timeout != 0) text +="<br><font face='arial, helvetica' size='-1'>Preview closes after " + timeout + " seconds.</font>";
text += "</center></body></html>";
preview = window.open("", "preview", windowprops);
preview.document.open();
preview.document.write(text);
preview.document.close();
}
// End -->
</script>
<body>
<a href="javascript:Start('http://test.vanloononline.nl/Images/Roxane_1.gif', 213, 133)";>SEE MY PICTURE</a>
</body>
</html>
Hoe kan je dit wijzigen zodat hij het opent in een frame (bijv FrameMain)?