lammy
Posts: 49
|
| Posted: 04/22/2005, 1:39 PM |
|
hello all
I was wondering if it was possible to change the search button graphic once I have built my search using the search builder.
cheers
Lammy
|
 |
 |
Martin K.
|
| Posted: 04/22/2005, 10:59 PM |
|
Hello.
You can change this directly in the html Code.
Your Button Code is like this:
<input class="CobaltButton" type="submit" value="search" name="{Button_Name}">
with a picture as Button:
<input type="image" src= "images/button.gif" name="{Button_Name}">
greets martin
|
|
|
 |
DonB
|
| Posted: 04/25/2005, 6:16 PM |
|
To implement this consistently throughout your application, I'd suggest
defining the <input> with a css class and assign that class a background
image:
In the html:
<INPUT class="searchbutton">
in the CSS:
INPUT.searchbutton {
BACKGROUND-IMAGE: url(img/open.gif); BACKGROUND-REPEAT: no-repeat;
BACKGROUND-POSITION: center center; COLOR: Transparent; BACKGROUND-COLOR:
transparent; BORDER:0px;
}
(this assumes the graphic appears in the "img" folder of your website)
It produces a button using the graphic specified, instead of the plain gray
ones you are used to seeing.
You can also experiment with adding "height" and "width" to the CSS, if
needed, to get just the right size buttons for you needs.
--
DonB
http://www.gotodon.com/ccbth
<MartinK.@forum.codecharge (Martin K.)> wrote in message
news:54269e44357e1a@news.codecharge.com...
> Hello.
> You can change this directly in the html Code.
>
> Your Button Code is like this:
> <input class="CobaltButton" type="submit" value="search"
name="{Button_Name}">
>
> with a picture as Button:
> <input type="image" src= "images/button.gif" name="{Button_Name}">
>
> greets martin
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|