Want to click on a image and run a script


I want to add a button to my website that when clicked will popup the google map direction form. I have the script code from googles website, but don’t know how to assign it to a button image. Help please. By the way, I have Dreamweaver CS4.


Hi Troy,

Please provide an example.
See the stickied thread - Important: Read before you post …

Here is the link to the widget:

I want to add a button image to my web page that calls this script.

A similar button is on this site. It’s the button that says “directions”
located at the bottom right.


I’m surprised there is still no response on this. I’ve searched the forum and didn’t see anything that answers this question. I will try to look else where.


figured it out using javascript and css.

Would you care to share your solution, for when other people are looking for a similar type of answer?