Groups | Blog | Home
all groups > inetserver asp general > august 2005 >

inetserver asp general : images and buttons HTML question


abcd
8/31/2005 4:03:15 PM
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

Pauly T
8/31/2005 10:11:20 PM
<a href="#" onclick="SomeAction()">
<img src="./pix/someGif.GIF" border=0 name="imgWhatever">
</a>

Pauly T
www.eMembersOnline.com

AddThis Social Bookmark Button