Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Change Search Button > Image  (Read 14405 times)

0 Members and 1 Guest are viewing this topic.

Super Noodles

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Change Search Button > Image
« 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 ???
Logged

Nibbler

  • Guest
Re: Change Search Button > Image
« Reply #1 on: September 19, 2008, 03:49:59 pm »

You need to set 'type' to 'image' and remove the random 'img'.
Logged

Super Noodles

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Re: Change Search Button > Image
« Reply #2 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Change Search Button > Image
« Reply #3 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 19 queries.