- 09 Abr 2012, 01:25
#19418
Teria como? Tipo americanas, submarino, etc, além do botão na header, tem como add outro no footer? Se sim, como? Abraços!
Por um e-commerce livre, confiável e profissional
#footer #search {
position: relative;
z-index: 15;
}
#footer .button-search {
background: url('../image/button-search.png') center center no-repeat;
width: 28px;
height: 24px;
border-right: 1px solid #CCCCCC;
cursor: pointer;
float:left;
position:relative;
left:30px;
}
#footer #search input {
background: #FFF;
padding: 1px 1px 1px 33px;
width: 262px;
height: 21px;
border: 1px solid #CCCCCC;
-webkit-border-radius: 3px 3px 3px 3px;
-moz-border-radius: 3px 3px 3px 3px;
-khtml-border-radius: 3px 3px 3px 3px;
border-radius: 3px 3px 3px 3px;
-webkit-box-shadow: 0px 2px 0px #F0F0F0;
-moz-box-shadow: 0px 2px 0px #F0F0F0;
box-shadow: 0px 2px 0px #F0F0F0;
}
$('#header input[name=\'filter_name\']').bind('keydown', function(e) {$('input[name=\'filter_name\']').bind('keydown', function(e) {
<div id="search">
<div class="button-search"></div>
<?php if ($filter_name) { ?>
<input type="text" name="filter_name" value="<?php echo $filter_name; ?>" />
<?php } else { ?>
<input type="text" name="filter_name" value="<?php echo $text_search; ?>" onclick="this.value = '';" onkeydown="this.style.color = '#000000';" />
<?php } ?>
</div>
$this->language->load('common/header');
$this->data['text_search'] = $this->language->get('text_search');
if (isset($this->request->get['filter_name'])) {
$this->data['filter_name'] = $this->request->get['filter_name'];
} else {
$this->data['filter_name'] = '';
}