Using a variable in a HTML statement

Results 1 to 3 of 3

Thread: Using a variable in a HTML statement

  1. #1
    Jim Williams Guest

    Default Using a variable in a HTML statement

    Hello. I am trying to use a variable(TargetPage) in an HTML statement to vary the ASP page that is requested in the hover button listed below. The statement &#060;param name="url" valuetype="ref" value=TargetPage&#062; uses the value=TargetPage as a litteral and not the value I defined it as("asp/cotb.asp?band_name=big+breakfast"). Please help on how I can accomplish this. Thanks <BR><BR>&#060;%<BR>&#039Declare a variable.<BR>Dim TargetPage<BR>TargetPage = "asp/cotb.asp?band_name=big+breakfast"<BR>%&#062;<BR><B R><BR>&#060;applet code="fphover.class" codebase="./" width="120" height="24"&#062;<BR> &#060;param name="color" value="#000080"&#062;<BR> &#060;param name="hovercolor" value="#0000FF"&#062;<BR> &#060;param name="textcolor" value="#FFFFFF"&#062;<BR> &#060;param name="text" value="Big Breakfast"&#062;<BR> &#060;param name="effect" value="glow"&#062;<BR> &#060;param name="url" valuetype="ref" value=TargetPage&#062; <BR> &#060;/applet&#062;

  2. #2
    Jairo Guest

    Default RE: Using a variable in a HTML statement

    Jim,<BR>&#060;param name="url" valuetype="ref" value=&#060;% =TargetPage%&#062; &#062; <BR>Give that a shot.<BR>HTH,<BR>Jairo<BR>http://www.citywebarchitects.com

  3. #3
    Ian S Guest

    Default RE: Using a variable in a HTML statement

    try this:<BR>&#060;param name="url" valuetype="ref" value="&#060;%=TargetPage%&#062;"&#062;<BR><BR>Thi s will write the varible to the page.<BR><BR>hope this helps,<BR>ian

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •