default text in search box
how can i add default text such as "Enter number or keyword" to the site search box?
and then have the text disappear on mouseclick. and where can i add to code to?
Please help, thanks very much.
how can i add default text such as "Enter number or keyword" to the site search box?
and then have the text disappear on mouseclick. and where can i add to code to?
Please help, thanks very much.
You would need to do this via javascript, you can find instructions on how to achieve this here
i have try the code you have refer me to, but its not work, text keep stay there
i have attach my pic for you to see . thanks
It does not work because you have modified the javascript, change your script block back to this
<script type="text/javascript">
function clickclear(thisfield, defaulttext) {
if (thisfield.value == defaulttext) {
thisfield.value = "";
}
}
function clickrecall(thisfield, defaulttext) {
if (thisfield.value == "") {
thisfield.value = defaulttext;
}
}
</script>
and it will work.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.