[ZB code] Add Search Next to Time in Footer - Thêm thanh tìm kiếm dưới footer

[Mr.P]

New member
Tác giả: Skyon Archer
Preview:
oiCMd.png

============
Đặt code tại Below The Boards
Mã:
<script type="text/javascript">
//<![CDATA[
// Add Search Next to Time in Footer
// by Skyon Archer
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
$("#foot_datetime").append(' <span style="border-left : 1px solid #e7e7e7;"> </span> <a href="'+main_url+'search/" target="_blank" title="Search"><img src="http://img19.imageshack.us/img19/9978/searchm.png" alt="Search" width="24" alt="search" /></a> <form action="'+main_url+'search/" method="get"><input type="hidden" name="c" value="1" /><input type="text" name="q" value="Enter your search..." size="40" onfocus="this.value=\'\'" /><input type="radio" name="type" value="post" checked="checked" /> Search Posts <input type="radio" name="type" value="topic" /> Search Topics <input name="sort" value="desc" type="hidden" /><input name="forum[]" value="-1" type="hidden" /><input name="s_m" tabindex="6" value="1" type="hidden" /><input name="s_d" tabindex="7" value="1" type="hidden" /><input name="s_y" tabindex="8" value="2007" type="hidden" /><input name="e_m" tabindex="6" value="'+month+'" type="hidden" /><input name="e_d" tabindex="7" value="'+day+'" type="hidden" /><input name="e_y" tabindex="8" value="'+year+'" type="hidden" /><button type="submit">Search</button></form>');
//]]>
</script>
 
Back
Top