No replies
cherry2000
cherry2000's picture
Offline
Regular
Last seen: 9 years 36 weeks ago
Timezone: GMT-6
Joined: 2011-01-14
Posts: 29
Points: 45

how do i add padding for the image only and how do i make it a link?

this is what i got:

<script type="text/javascript">
// Google Internal Site Search script- By JavaScriptKit.com (<a href="http://www.javascriptkit.com" rel="nofollow">http://www.javascriptkit.com</a>)
// For this and over 400+ free scripts, visit JavaScript Kit- <a href="http://www.javascriptkit.com/
//" rel="nofollow">http://www.javascriptkit.com/
//</a> This notice must stay intact for use
// Enter domain of site to search.
var domainroot="www.tiskita-lodge.co.cr"
function Gsitesearch(curobj){
curobj.q.value="site:"+domainroot+" "+curobj.qfront.value
}
</script>
 
<form action="http://www.google.com/search" method="get" onSubmit="gsitesearch(this)">
<input name="q" type="hidden" />
<input name="qfront" style="border:none;background-image:url('./img/search_icon.png');background-position:right;background-repeat:no-repeat;color:#171B15;height:25px;padding-left:15px;width:130px;" type="text" value="search" onfocus="if(this.value=='search') this.value = ''" onblur="if(this.value=='') this.value = 'search'" />
</form>

thanks Smile