Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

buttons as an image

Status
Not open for further replies.

help120

Technical User
Apr 15, 2001
198
US
This code will work fin..

<input type=&quot;submit&quot; name=&quot;action&quot; value=&quot;&lt;&lt;&quot;>
<input type=&quot;submit&quot; name=&quot;action&quot; value=&quot;&lt;&quot;>
1 of 2
<input type=&quot;submit&quot; name=&quot;action&quot; value=&quot;&gt;&quot;>
<input type=&quot;submit&quot; name=&quot;action&quot; value=&quot;&gt;&gt;&quot;>

Then when I try to change them to graphics they will not change over to the next page. This is the code I'm trying to use.

<input src=&quot;images/submit.gif&quot;
type=&quot;image&quot; type=&quot;submit&quot; name=&quot;action&quot; value=&quot;&lt;&lt;&quot;>
<input src=&quot;images/submit.gif&quot;
type=&quot;image&quot; type=&quot;submit&quot; name=&quot;action&quot; value=&quot;&lt;&quot;>
1 of 2
<input src=&quot;images/submit.gif&quot;
type=&quot;image&quot; type=&quot;submit&quot; name=&quot;action&quot; value=&quot;&gt;&quot;>
<input src=&quot;images/submit.gif&quot;
type=&quot;image&quot; type=&quot;submit&quot; name=&quot;action&quot; value=&quot;&gt;&gt;&quot;>

Page can be viewed at..
 
I'm a novice with forms but you have specified two &quot;types&quot;, can this be done?
type=&quot;image&quot; type=&quot;submit&quot;

Maybe try
<input src=&quot;images/submit.gif&quot; type=&quot;image&quot; name=&quot;submit&quot; value=&quot;>>&quot;>

Let me know if it works!
Great page btw!

É **new site coming soon**
 
An error is that you assign both types (image and submit) to input type=image.

Here's what it should be:

<input type=&quot;image&quot; src=&quot;images/submit.gif&quot; name=&quot;action&quot; value=&quot;>>&quot; width=&quot;100&quot; height=&quot;50&quot; border=&quot;0&quot; alt=&quot;click to submit&quot; title=&quot;click to submit&quot;>

It is also a good manner to specify image's dimentions and alt/title text.

I guess that [tt]name=&quot;action&quot; value=&quot;>>&quot;[/tt] corresponds to some server-side script? Only in this case it will work properly.
 

I went ahead and changed the code to this..

<form name=&quot;MovePage&quot; action=&quot;gy.asp&quot; method=&quot;post&quot;>
<input type=&quot;hidden&quot; name=&quot;intpage&quot; value=&quot;<%=intpage%>&quot;>
<p align=&quot;center&quot;>

<input type=&quot;image&quot; src=&quot;gy/images/blast.gif&quot; alt=&quot;Beginning&quot; name=&quot;action&quot; value=&quot;&lt;&lt;&quot;>
<input type=&quot;image&quot; src=&quot;gy/images/bnext.gif&quot; alt=&quot;Back&quot; name=&quot;action&quot; value=&quot;&lt;&quot;>
<%=Intpage & &quot; of &quot; & intpagecount%>
<input class=&quot;shade3&quot; type=&quot;submit&quot; name=&quot;action&quot; value=&quot;&gt;&quot;>
<input class=&quot;shade3&quot; type=&quot;submit&quot; name=&quot;action&quot; value=&quot;&gt;&gt;&quot;>

</p>
</form>



Now if I try to change the last 2 button the script will not work.
 
Since > is the end tag, maybe you should try this:

<input src=&quot;images/submit.gif&quot;
type=&quot;image&quot; type=&quot;submit&quot; name=&quot;action&quot; value=&quot;\>&quot;>

(put a \ before > to tell it that it's not an end tag)

I'm not sure it works here though.

Laleh
 
I just found a new problem... If you press the &quot;>>&quot; button it takes you to 5 of 5 and if you press the &quot;<&quot; button it takes you to 1 of 5. It should take you to 4 of 5.
 
Why not create images of &quot;>&quot; and &quot;>>&quot; etc, see if it solves any problems for you!

É **new site coming soon**
**don't visit just yet**
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top