All I've got to do is display a large png centered in a large popup window with a selected background color. In my ignorance, I'm using two scripts to accomplish this: s_sendPreview.html (a javascript)
<script type="text/javascript" language="javascript">
window.open ("s_sendPrvw.php","mywindow","width=750,height=970");
history.back();
</script>
and s_sendPrvw.php
<!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=utf-8" />
<title>preview</title>
<?
session_start();
$tcID = $_SESSION['thColID']; //thColor_ID
$fitm= $_SESSION['filra'];
$path= "<img src=\"../".$fitm."\" style=\"width: 640px; height: 960px\"><br/><br/>";
switch ($tcID){
case 3: $thC = "718cb7";
break;
case 4: $thC= "84a9b2";
break;
case 5: $thC = "d7d4c1";
break;
}
?>
</head>
<body bgcolor="<?php print $thC;?>" style="margin: 0px;">
<table width="100%" align="center" valign="top">
<tr><td align="center" valign="top">
<div align="center" ><?php print $path ?></div><br>
</td></tr></table>
</body>
</head>
</html>
Everything works but:
- In FireFox, the bgcolor is not rendered.
- in IE, the main window obscures the popup window because of the "back()" function in s_sendPreview.html.
I post this in the Newbie forum because I presume these are Newbie issues, and I humbly request correction of my ways.
Thanks,
Paul
"Any statement that begins with 'All you have to do' is a lie. The only thing that's true about it is that you're going to have to do it. Whoever's talking is going home."