Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2007
    Posts
    59
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Form Submit With Image Map?

    I have an image that is the background of the search bar, and then an input field is on top of it. I want to make the right side of the image where it says "go" to be the form submit button. I made a hotspot using dreamweaver, but I can't figure out the code to make it submit the form.

    http://www.foodprotect.org/CFP.php

    Anybody know how to do this?

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I would actually slice the image up into smaller parts and use the "go" part as an input type="image" but it can be done using javascript
    Code:
    onclick="document.getElementById('searchbox_013816404461231668067:7ukdsrlq2jc').submit();"
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • Users who have thanked _Aerospace_Eng_ for this post:

    t-buck (10-11-2007)


  •  

    Posting Permissions

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