Sent by Nik Schramm on 31 January 2002 12:12
Come to think of it, this is better:
<html>
<head>
<script language="javascript" type="text/javascript">
<!--
function showWindow(id) {
var text = document.getElementById(id).innerHTML;
var header = "<html><head></head><body>" + text +
"</body></html>";
var newWin = window.open('','','width=400,height=400');
newWin.document.write(header);
newWin.focus();
}
//-->
</script>
</head>
<body>
<a href="#" onclick="showWindow('l1'); return false;">Clickclick</a>
<div id="l1">
<p>Help me with my logic ... I'm using an experimental page (so as not
to screw up the main site)... I moved my inline positioning styles to an
external CSS file (separate from the main one)... I was thinking that I
could just have a link on each scroller layer (at the bottom) that said
"print this page"... then I could use javascript to pop open a box with
that "layer" in it.</p></div>
</body>
</html>
Adjust to suit...
N i k S c h r a m m
nae | interactive | graphic | arts
iNet: www.nae.de | eMail: [EMAIL-REMOVED]