PHP Pop-up attribute question

Reply

Join Date: Mar 2005
Posts: 15
Reputation: venetian_jigsaw is an unknown quantity at this point 
Solved Threads: 0
venetian_jigsaw venetian_jigsaw is offline Offline
Newbie Poster

PHP Pop-up attribute question

 
0
  #1
Nov 11th, 2005
I am unable to get my pop-up to resize or hide the toolbar when I select a thumbnail. I entered the width & height in my onclick event, bu that did not seem to work. I am guessing that I probably need to enter the attributes in the function and if so, where do they go?

Thanks for any assistance that you can provide!

[php]<script type="text/javascript">
function openWindow(modelnum)
{
prodWindow=window.open("lgImg.php?modelnum="+modelnum+"","null");
prodWindow.focus();
}
</script>

<?php
while ($myrow = mysql_fetch_array($myresult))
{
?>
<tr>
<td><a href='#' onclick='openWindow("<?php echo $myrow['modelnum']; ?>")'><img src='../images/products/<?php echo $myrow ["imgsm"]; ?>' border='0' /></td>
<?php
}
?>[/php]
Last edited by Gary King; Nov 13th, 2005 at 3:46 pm.
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 166
Reputation: Lafinboy is an unknown quantity at this point 
Solved Threads: 7
Lafinboy's Avatar
Lafinboy Lafinboy is offline Offline
Junior Poster

Re: PHP Pop-up attribute question

 
0
  #2
Nov 16th, 2005
You can build all of the window chrome variables into the window.open call, like:
[PHP]prodWindow=window.open("lgImg.php?modelnum="+modelnum+"","windowname", 'directories=no, status=no, config=top=100, screenY=150, left=50, screenX=50, location=no, toolbar=no, menubar=no, resizable=yes, scrollbars=yes, width=550, height=350');[/PHP]

Have a play with some of the variables and see what they do.
If I've been a help please confirm by clicking the Add to Lafinboy's Reputation link in the header of this reply.

Lafinboy Productions
:: Website Design :: Website Development ::

Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 2092 | Replies: 1
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC