Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Change Search Button > Image  (Read 14406 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.018 seconds with 20 queries.