I am trying to place a search field on a new website I’m building. Really I want it to be similar to that on this forum, in that text already populates in the html ‘search field’:
in my instance ‘Search our site’
I have placed this in the Output Settings Value field - This works, but I want this text to disappear once the html field is clicked on.
Looking back at old posts I have got thus far:
Selected the html text field - Item>Extended>Input and placed the following… using text wrangler to place this script rather than copy & paste.
onblur: this.value = (this.value = = ") ? ‘Search…’ : this.value;
onfocus: this.value = (this.value = = ‘Search…’) ?" : this.value;
The field decoration changes to rounded end, but the text remains once the field is clicked on! What am I doing wrong???
Also is there a way to custom the TEXT style in the html field. Currently mine is black, I would prefer a tinted grey look. The action form element styler does not enable me to do this??? Any ideas guys?
Any suggestions would be great! Cheers
freewaytalk mailing list
Update your subscriptions at: