Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


VBScript & Image Map Functionality

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,274
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> VBScript & Image Map Functionality
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 VBScript & Image Map Functionality - 7/16/2001 10:39:51 PM   
  svtcobra97

 

Posts: 1
Score: 0
Joined: 7/16/2001
From:
Status: offline
I have created an Image Map and wish to have functionality to add that item to a Shopping Cart type of List. Example of how this would work.... User clicks on the hotspot on the image map and in a listbox a description of that hotspot would appear. Any ideas on how to accomplish this. I need to do this in a scripting enviroment as I have many image maps to do this with.

Thanks,

John
 
 
Post #: 1
 
 Re: VBScript & Image Map Functionality - 7/18/2001 12:18:29 AM   
  adminkoe

 

Posts: 117
Score: 0
Joined: 12/23/2000
From:
Status: offline
Cobra,

I just did an expirement with VBScript. It can be done, just modify the script below to suit your need.

<HTML>
<HEAD>
<TITLE>
</TITLE>
</HEAD>
<BODY>
<form name=form1>
<textarea rows=5 cols=40 name=listbox>
</textarea>
</form>
<script language="vbs">
Sub writeTolistBox(val)
document.form1.listbox.value=val
End Sub
</script>

<img src="cover.jpg" border="0" usemap="#frontMap" alt="" title="Main Menu"><map name="frontMap"><area shape="poly" coords="235,64,235,54,246,53,251,55,257,61,258,54,271,53,286,53,297,53,307,53,322,53,335,53,346,52,346,62,344,69,330,71,298,71,277,71,266,71,260,66,253,68,242,72,235,65" onClick="vbscript:writeTolistBox('hello world')"></map>
</BODY>
</HTML>


Hope this can help,
Andy


Regards,
Andi Zain

(in reply to svtcobra97)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> VBScript & Image Map Functionality Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts