|
Posted by Bill Burke on 01/04/79 11:58
Hello,
I am trying to use variable replacement to define the size of a web page. I have
pasted the single line of code below - variable $bigPIC works, but $bigWIDTH and
$bigHEIGHT don't.
<td height="19" width="338"><a href="#" onClick="MyWindow=window.open($bigPIC
,'MyWindow',$bigWIDTH,$bigHEIGHT,'toolbar=no,location=no,directories=no,
status=no,menubar=no,scrollbars=no,resizable=no,left=100,top=100'); return
false;">> click here for a larger view <</a></td>
I am setting the value for the three variables in the javascript portion of the
HMTL page:
var $bigPIC="images/big_bock.jpg"
var $bigWIDTH="width=530px"
var $bigHEIGHT="height=435px"
-then-
if(cImg==1)
{
var bTextMode=false
$bigPIC="images/big_bock.jpg"
$bigWIDTH="width=530px"
$bigHEIGHT="height=435px"
....more stuff}
-then_
if(cImg==2)
{
$bigPIC="images/big_bock_2.jpg"
$bigWIDTH="width=380px"
$bigHEIGHT="height=738px"
....more stuff}
etc....
Any help and suggestions will be greatly appreciated.
Thanks in advance,
Bill Burke
bill@2burkes.com
[Back to original message]
|