devxlogo

Sensitive maps

Sensitive maps

Question:
I would like to change SRC picture of thesensitive map, onClick on some area of same picture.With JavaScript it works that if instead ofHREF =”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, youcan do it in VBScript by using an Image control and checking the MouseDown event. It is easiest to do thiswith the ActiveX Control Pad anduse the Script Wizard to help you write the code. The MouseDown event willprovide you X and Y coordinateswhich you can check against your imagemap.

See also  Professionalism Starts in Your Inbox: Keys to Presenting Your Best Self in Email
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist