|
<html>
<head>
<title>Javascript example</title>
<script>
function OpenNewWindow(bigurl, width, height)
{
var newWindow = window.open("", "pictureViewer", "location=no, directories=no, fullscreen=no, menubar=no, status=no, toolbar=no, width=" + width + ", height=" + height + ", scrollbars=no");
newWindow.document.writeln("<html>");
newWindow.document.writeln("<body style='margins: 0 0 0 0;'>");
newWindow.document.writeln("<a href='javascript:window.close();'>");
newWindow.document.writeln("<img src='" + bigurl + "' alt='Click to close' id='bigImage' border='0'/>");
newWindow.document.writeln("</a>");
newWindow.document.writeln("</body></html>");
newWindow.document.close();
}
</script>
</head>
<body>
<a href="#" onclick="OpenNewWindow('http://www.nowan.hu/Images/nowan_logo_keretes_06.gif', 577, 410); return true;">
<img src="http://www.nowan.hu/Images/nowan_logo_mini.gif" alt="Click..." border="0"/>
</a>
</body>
</html>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.