Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Active Server Pages (ASP)
Expertise: Beginner
Feb 27, 1997

Sensitive maps

Question:
I would like to change SRC picture of the sensitive map, onClick on some area of same picture. With JavaScript it works that if instead of HREF ="some.URL" on imagespot you just put HREF="javascript:Function()" Under IE3.0 I got reasonable message that javascript is not supported protocol. How to do that in VBScript ?

Answer:
I'm surprised that your Javascript did not work in IE 3.0. However, you can do it in VBScript by using an Image control and checking the MouseDown event. It is easiest to do this with the ActiveX Control Pad and use the Script Wizard to help you write the code. The MouseDown event will provide you X and Y coordinates which you can check against your imagemap.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date