forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Super Noodles on September 19, 2008, 03:44:41 pm

Title: Change Search Button > Image
Post by: Super Noodles on September 19, 2008, 03:44:41 pm
Hi guys

I'm currently trying to change the basic search button to an image, what am I doing wrong

Code: [Select]
<input type="submit" value="Go" class="image" img src="images/go.gif" />
The image won't show ???
Title: Re: Change Search Button > Image
Post by: Nibbler on September 19, 2008, 03:49:59 pm
You need to set 'type' to 'image' and remove the random 'img'.
Title: Re: Change Search Button > Image
Post by: Super Noodles on September 19, 2008, 03:58:00 pm
Thanks nibbler I've changed it to

Code: [Select]
<input type="image" value="Go" src="images/go.gif" align="top" />
Works a treat ;D
Title: Re: Change Search Button > Image
Post by: Joachim Müller on September 19, 2008, 06:05:55 pm
Alternatively, you can use the syntax for the HTML tag <button>, which will allow you to use an image together with text. Refer to http://www.w3schools.com/tags/tag_button.asp or other pages. In fact, the web is full of good resources to learn HTML. Your question is somehow unrelated to coppermine, but just plain HTML skills.