You are here: Variable Replacement in HTML « HTML « IT news, forums, messages
Variable Replacement in HTML

Posted by Bill Burke on 11/27/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;">&gt; click here for a larger view &lt;</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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация