Click to See Complete Forum and Search --> : How to change to an image button


sailorB
12-09-2004, 09:01 AM
Hello there,
Can some one helpp me to make changes in this code, so i can display the buttons as an images:
----------------------------------------------------
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><form method="post" action="" name="nscapeview">
<%response.write(dictLanguage.Item(Session("language")&"_listproductsbysupplier_4") & curPage & dictLanguage.Item(Session("language")&"_listproductsbysupplier_5") & TotalPages & "<P>")%>
<%
if curPage > 1 then
response.write("<INPUT TYPE=BUTTON VALUE='<' ONCLICK=""document.location.href='comersus_listCategoriesAnd Products.asp?idCategory="& pIdCategory& "&curPage="& curPage - 1 & "';"">")
end if
if cInt(curPage) <> cInt(TotalPages) then
response.write("<INPUT TYPE=BUTTON VALUE='>' ONCLICK=""document.location.href='comersus_listCategoriesAnd Products.asp?idCategory="& pIdCategory& "&curPage="& curPage + 1 & "';"">")
end if
%>
</form></td>
</tr>
</table>

lmf232s
12-09-2004, 09:46 AM
<img src="../Images/Continue.gif" onclick="document.location.href='comersus_listCategoriesAnd Products.asp';">

Just put your onclick event in your image tag.

sailorB
12-12-2004, 05:27 AM
i tried to do this but i failed,

i changed the type to be an image and added the onclick on this image

but i got an error on page

??!!!

buntine
12-12-2004, 05:55 AM
Here you go:

<input type="image" name="buttonName" src="images/fileName.gif" />

Regards.