![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#21 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
This is your function:
function enlarge (wURL, sp)
{
var curImage = wURL.split ('/');
var target = "img/popup/" + curImage;
var specs = "width=400,height=400,top=50,left=50," +
"screenx=50,screeny=50," +
"resizable=yes,scrollbars=yes";
if (sp) specs = sp;
popWin = open ( target="POPpagePOPTEMP6.html", "popWindow", specs);
popWin.focus ();
return popWin;
}
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#22 | ||
|
Newbie
Join Date: Jan 2006
Posts: 12
Rep Power: 0
![]() |
Oops, didn't catch that. I assumed that target was specifically for defining a location. I'd like to use your function, but it is critical that I use the popup window template that I created as opposed to opening in just a blank window.
Quote:
Quote:
|
||
|
|
|
|
|
#23 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
popWin = open ( "POPpagePOPTEMP6.php?image=" + target, "popWindow", specs); Then, in "POPpagePOPTEMP6.php" <?php ... if ($_GET ['image']) $image = $_GET ['image']; ... ?> <html> ... <img src="<?php echo $image;?>"/> ... </html> You have a lot of studying to do and things to catch up on if you're going to produce these things professionally.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#24 |
|
Newbie
Join Date: Jan 2006
Posts: 12
Rep Power: 0
![]() |
Thanks for all your help. I realize I have a lot to learn and knew that would be the case when I got this project. I don't plan to do this professionally, but I do hope to gain a better understanding of the languages. Thanks again!
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|