我有一个搜索框,当客户访问我的网页时,我想使其处于活动状态。访问网站时搜索框处于活动状态。
我的HTML是:
<form class="form-search top-search" action="Search.aspx" onsubmit="return validateSearch(this);" method="GET">
<input type="text" class="input-medium search-query yui-ac-input" name="ss" id="ss" placeholder="Search and find it fast" title="Search and find it fast" onblur="if (this.value == '') { this.value = 'Search and find it fast'; }" onfocus="if ((this.value == 'Search and find it fast')||(this.value == 'Search and find it fast')) { this.value = ''; }" onkeypress="if ((this.value == 'Please enter a keyword or item #')||(this.value == 'Search and find it fast')) { this.value = ''; } else{ document.getElementsByName('ss')[0].style.color='black'; }" autocomplete="off">
<input type="submit" title="Search" class="btn btn-orange SearchButton" value="Search">
</form>
我只是想给用户你默认进入该领域,怎么样亚马逊默认到他们的搜索框。
什么是积极的手段? –
如同在页面加载时默认进入搜索字段。但只限于主页。在产品页面上没有意义,因为如果用户在产品页面上,那么他们可能找到了他们想要的东西。听起来很合逻辑,我想。 –