Closed Thread Icon

Topic awaiting preservation: javascript image popup with parameters (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8963" title="Pages that link to Topic awaiting preservation: javascript image popup with parameters (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: javascript image popup with parameters <span class="small">(Page 1 of 1)</span>\

 
ninmonkey
Nervous Wreck (II) Inmate

From:
Insane since: Nov 2003

posted posted 12-06-2003 18:30

I tried modifing the guru'snetwork popup generated code to allow a variable for width and height. It's expecting ) where I'm trying to insert my height and width variables. What's wrong?

code:
<script language="JavaScript" type="text/JavaScript">
<!-- Enable Stealth Mode to hide from really old browsers
// code courtesy of GurusNetwork.com

function openWindow(url,w,h) {
popupWin = window.open(url,'remote','menubar=yes,toolbar=yes,titlebar=yes,status=yes,scrollbars=yes,resizable=yes,width='w',height='h);
}
// Disable Stealth Mode -->
</script>



Wes
Paranoid (IV) Mad Scientist

From: Inside THE BOX
Insane since: May 2000

posted posted 12-06-2003 18:57

Try this ...

popupWin = window.open(url,'remote','menubar=yes,toolbar=yes,titlebar=yes,status=yes,scrollbars=yes,resizable=yes,width=' + w + 'height=' + h);

Wow, get me ... helping someone else with JS for a change.


« BackwardsOnwards »

Show Forum Drop Down Menu