SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2001
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    want to click on a image and run a script

    Hello,

    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.

    Troy

  2. #2
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,108
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)
    Hi Troy,

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

  3. #3
    SitePoint Enthusiast
    Join Date
    May 2001
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is the link to the widget:

    http://maps.google.com/help/maps/gadgets/directions/

    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.

    http://www.dakaosparty.com/

  4. #4
    SitePoint Enthusiast
    Join Date
    May 2001
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

    Thanks

  5. #5
    SitePoint Enthusiast
    Join Date
    May 2001
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    figured it out using javascript and css.

  6. #6
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,696
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by tdsilk View Post
    I've searched the forum and didn't see anything that answers this question. I will try to look else where.
    Quote Originally Posted by tdsilk View Post
    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?
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •