Page 1 of 1

go button

Posted: Thu May 25, 2006 4:58 pm
by lorenzov
hello everyone,
after browsing the many variations of themes available i've noticed that none of them managed to get rid of the blocky grey 'go' buttons.

does anyone know if it is possible to substitute them with an image?

lorenzo

Re: go button

Posted: Fri May 26, 2006 2:09 pm
by garvinhicking
Hi!

AFAIK it is not possible to use CSS to overlay submit buttons with a graphic. One would need to alter the HTML code and change the "submit" type into a "image" type. But then, the variables submitted will no longer match and when a submit button was called "serendipity[go]" it will be submitted as "serendipity[go_x]" and "serendipity[go_y]" which will then no longer allow PHP checks for $serendipity['GET']['go'] to report true.

Short answer: No way. :)

But you can of course use different colors and smaller sizes via CSS to change the look of it.

Regards,
Garvin

Posted: Fri May 26, 2006 3:43 pm
by abdussamad
Just a suggestion but can't this be done with javascript? I mean the submit button with the image could run a javascript function which would submit using the real submit button.

Posted: Fri May 26, 2006 5:34 pm
by garvinhicking
We do not rely on Javascript, so even though you can code that into your own template, we will not offer a template that relies on JS by default.

Best Regards,
Garvin