RE: PopUp Recall

by beno <lists(at)TheWebsons.com>

 Date:  Thu, 19 Dec 2002 12:35:41 -0400
 To:  hwg-techniques(at)hwg.org
 References:  thewebsons
  todo: View Thread, Original
At 12:08 AM 12/20/2002 +0800, you wrote:
>Yes in the name of the popup window just set a counter or something on
>the end (e.g. "MyWindow1", "MyWindow2", "MyWindowX") and you should end
>up with multiple windows instead. I think this is what you were after
>but I'm not quite sure. Perhaps you can post your code :)

<?php  // display the products
$j=0;
while( $fcp->next_record() ){
  $flag1=(int)$fcp->f('prodflag1');
?>

<tr><td align=left valign=top colspan=1>

  <table width="100%" cellpadding=0 cellspacing=0 border=0>
  <tr><td align=left valign=top colspan=3>

<?php
if($fcp->f("prodpic")){ // show the product picture (if defined)
/*
  width="<?php echo $fcp->f("prodpicw")?>"
   height="<?php echo $fcp->f("prodpich")?>"
   */
   ?>

  <script language="javascript">
var photo = new String();
photo.src = "Jewelry.php?photo=<? echo 
ereg_replace('\.','%2E',htmlentities(urlencode($fcp->f("prodpic"))))?>&height=<? 
echo
  $fcp->f("prodpich")?>";
function popUp(here) {
         larimar = eval( here + ".src");
         newWindow = 
window.open(larimar,"","toolbar=0,menubar=0,width=500,height=450, 
scrollbars=1 ,status=0,location=0,dire
ctories=0,left=100,top=0");
}
</script>
<table border=0><tr><td align=center>
  <a href="#" onClick="popUp('photo')"><img src="<? echo $fcp->f("prodtpic")?>"
  width="<?php echo $fcp->f("prodtpicw")?>"
  height="<?php echo $fcp->f("prodtpich")?>"
  border=0 align=left></a><br clear=all>
<i>Click image for enlargement.</i>
</td></tr></table>

So, how do I set an incrementor on popUp(here)?
TIA,
beno

>"Ooooh..... they have the Internet on computers now"

Somebody didn't really say that, did they?

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA