go button

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
lorenzov
Regular
Posts: 5
Joined: Fri May 19, 2006 3:41 pm

go button

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: go button

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
abdussamad
Regular
Posts: 117
Joined: Fri Apr 21, 2006 10:11 pm
Location: Karachi, Pakistan
Contact:

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply