images and buttons HTML question

Discussion in 'ASP General' started by abcd, Sep 1, 2005.

  1. abcd

    abcd Guest

    Very basic HTML question

    1. I have image I want to display that to a button how can I do that. I
    want to fire the on click event too
    2. if 1 is not possible then how can I set image to have oncclick event,
    currently I get object nbot found error

    code is like this

    <button ID ="Sel" name="Sel" OnClick="moveOptions(this.form.AvailableInd,
    this.form.SelectedInd);" ><img src = "/images/movedown.gif" alt="Remove"
    title="Remove"></button>

    <button ID ="Del" name="Del" OnClick="moveOptions(this.form.SelectedInd,
    this.form.AvailableInd);" ><img src= "/images/moveup.gif" alt="Add"
    title="Add"></button>

    above code shows me the button which I dont want and just want to display
    image when I tried following code, moveoptions doesnt work

    <img src = "/images/movedown.gif" alt="Remove" title="Remove"
    OnClick="moveOptions(this.form.AvailableInd, this.form.SelectedInd);">

    <img src= "/images/moveup.gif" alt="Add" title="Add"
    OnClick="moveOptions(this.form.SelectedInd, this.form.AvailableInd);" >


    any clues
     
    abcd, Sep 1, 2005
    #1
    1. Advertising

  2. abcd

    Pauly T Guest

    <a href="#" onclick="SomeAction()">
    <img src="./pix/someGif.GIF" border=0 name="imgWhatever">
    </a>

    Pauly T
    www.eMembersOnline.com
     
    Pauly T, Sep 1, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Roger
    Replies:
    1
    Views:
    664
    GreggTB
    May 20, 2005
  2. =?Utf-8?B?QmVu?=

    Image Buttons/Buttons not responding

    =?Utf-8?B?QmVu?=, Jul 6, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    477
    Teemu Keiski
    Jul 6, 2005
  3. Jeremy Jones

    Datagrid Nav buttons and numeric buttons

    Jeremy Jones, Mar 21, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    643
    Masudur
    Mar 22, 2007
  4. Jonathan N. Little
    Replies:
    3
    Views:
    547
    Andy Dingley
    Apr 2, 2007
  5. Dr. Leff
    Replies:
    3
    Views:
    332
    David Mark
    Oct 15, 2007
Loading...

Share This Page