Image Maps

Results 1 to 2 of 2

Thread: Image Maps

  1. #1
    SteveJ Guest

    Default Image Maps

    Is it possible to include VBScript in an image map? I have the following:<BR><BR> &#060;map name="ca-menu"&#062;<BR>&#060;area shape="rect" coords="0, 293, 270, 360" href="overview.html" alt="Overview"&#062;<BR>&#060;area shape="rect" coords="33, 246, 239, 279" href="spotlight-list.asp?state="&#060;%=state%&#062;&cat=attorney" alt="Defense Attorneys"&#062;<BR>&#060;area shape="rect" coords="33, 212, 146, 242" href="spotlight-list.asp?state="&#060;%=state%&#062;"&cat=reinsure r" alt="Reinsurers"&#062;<BR>&#060;area shape="rect" coords="33, 180, 196, 208" href="spotlight-list.asp?state="&#060;%=state%&#062;"&cat=claims" alt="Claims-TPAs"&#062;<BR>&#060;area shape="rect" coords="33, 145, 136, 175" href="spotlight-list.asp?state="&#060;%=state%&#062;"&cat=actuarie s" alt="Actuaries"&#062;<BR>&#060;area shape="rect" coords="33, 109, 210, 142" href="spotlight-list.asp?state="&#060;%=state%&#062;"&cat=risk manage" alt="Risk Managers"&#062;<BR>&#060;area shape="rect" coords="33, 76, 124, 107" href="spotlight-list.asp?state="&#060;%=state%&#062;"&cat=broker" alt="Brokers"&#062;<BR>&#060;area shape="rect" coords="33, 42, 199, 72" href="spotlight-list.asp?state="&#060;%=state%&#062;"&cat=underwri ters" alt="Underwriters"&#062;<BR> &#060;/map&#062;<BR><BR><BR>but I can not get it to read the &#060;%=state%&#062; tag, even though it is read elsewhere on the page (meaning, the data is held in the variable)<BR><BR>Please tell me if it is possible to do this, and if not, is there another way around it?<BR><BR>Thanks<BR><BR>SteveJ<BR>

  2. #2
    Chris Willey Guest

    Default RE: Image Maps

    I&#039m assuming that the variable &#039state&#039 is passed to this page from a previous page? If not, this is a client-side issue that would best be handled by Javascript.<BR><BR>Otherwise, make sure you don&#039t have quotes around the parameter. I.E.: you have the following (just the href portion of one image map area):<BR><BR>href="spotlight-list.asp?state="&#060;%=state%&#062;&cat=attorney" <BR><BR>This is a problem because you have an extra " here. It should be:<BR><BR>href="spotlight-list.asp?state=&#060;%=state%&#062;&cat=attorney"< BR><BR>See if that helps.

Posting Permissions

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