| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
image in search box form field | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() How can i put a magnifying glass image into the search box form field, so that it is either:
fixed permanently to the left; or disappears when you put the mouse curser in the box to start typing Cheers
__________________
X-Cart Pro 4.1.8 |
|||||||
#2
|
|||||||
|
|||||||
![]() can you show an example of how another site does this? I've never seen an image embedded into a text field. ever. is this even possible?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#3
|
|||||||
|
|||||||
![]() If you are talking about something like apple.com, that is done by using a background image.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#4
|
|||||||
|
|||||||
![]() Quote:
That's cool! How do they do that? How do they make the left side of the input box have a text margin? CSS is your friend, I guess...
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#5
|
|||||||
|
|||||||
![]() I'm guessing they just tuck an image up next to the search box, as I don't think that is part of the actual search box.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#6
|
|||||||||
|
|||||||||
![]() Quote:
For the text of this is done so (open file skin1/customer/search.tpl): Find this line and change it: PHP Code:
On this line: PHP Code:
|
|||||||||
#7
|
|||||||
|
|||||||
![]() Quote:
Apple is tricky. They are using a transparent image with an "onFocus" to CHANGE the image from normal to highlighted, and the search field is within it. Very smart designer and programmer there. It's a VERY functional user interface. Uh, Duh. It's Apple. ![]()
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#8
|
|||||||||
|
|||||||||
![]() That is pretty cool. I'd like to see how to do that one too.
Jason |
|||||||||
#9
|
|||||||||
|
|||||||||
![]() Here's one variation. It's called prettysearch, this ones uses the mootools framework...
http://www.conviodesign.com/2007/08/26/pretty-search/
__________________
Doms kube v4.1.9 |
|||||||||
#10
|
|||||||
|
|||||||
![]() Thanks Yurij, that worked great. I found this in relation to the background image but haven't tried it out yet:
http://blog.reindel.com/2007/08/13/howto-spruce-up-your-search-box-with-css-and-a-background-image/
__________________
X-Cart Pro 4.1.8 |
|||||||
|
|||
X-Cart forums © 2001-2020
|