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.

devx-admin

Share the Post: