I have a php script with a javascript popup embedded.
here's the source for the included file:
here's the javascript as it appears in the file embeded within php tags
here's the code how it appears when source is viewed from a web page:
why doesn't my popup work?
thanks
here's the source for the included file:
PHP Code:
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
PHP Code:
<?
for ($i=0; $i<$data; $i++)
{
echo "<td width='60'><a href='javascript:;' onClick='MM_openBrWindow('e".($i+1).".php','','width=347,height=525')'><img src='uploads/$SI_result[$i]' width='54' height='76' border=\"0\"></a></td>";}
?>
PHP Code:
<td width='60'><a href='javascript:;' onClick='MM_openBrWindow('e1.php','','width=347,height=525')'><img src='uploads/etruria01_sm.jpg' width='54' height='76' border="0"></a></td>

thanks
Comment