diff options
author | Yorhel <git@yorhel.nl> | 2008-11-30 15:00:41 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2008-11-30 15:00:41 +0100 |
commit | 3f747b5fce24fad0635be727c431e1fb234c3fa6 (patch) | |
tree | 0e9e9baf1af0daa103a3b83e82c9113831976865 /static | |
parent | 29a452e94a5b5a2aabf7d3502c8423deb786dbcb (diff) |
Searchbox
It's not the nicest placing for a search box, but I couldn't think
of anything else...
Diffstat (limited to 'static')
-rw-r--r-- | static/f/script.js | 14 | ||||
-rw-r--r-- | static/f/style.css | 8 |
2 files changed, 22 insertions, 0 deletions
diff --git a/static/f/script.js b/static/f/script.js index 29533005..5b8e4e04 100644 --- a/static/f/script.js +++ b/static/f/script.js @@ -163,6 +163,20 @@ function jtSel(which, nolink) { /* O N L O A D E V E N T */ DOMLoad(function() { + var i = x('sq'); + i.onfocus = function () { + if(this.value == 'search') { + this.value = ''; + this.style.fontStyle = 'normal' + } + }; + i.onblur = function () { + if(this.value.length < 1) { + this.value = 'search'; + this.style.fontStyle = 'italic' + } + }; + // show/hide NSFW VN image cl('nsfw_show', function() { diff --git a/static/f/style.css b/static/f/style.css index f129e982..2d961d69 100644 --- a/static/f/style.css +++ b/static/f/style.css @@ -234,6 +234,14 @@ b.future { width: 40px; margin-left: 45px; } +#menulist #search input.text { + width: 133px; + margin: 0 0 3px 7px; + font-style: italic; +} +#menulist #search input.submit { + display: none; +} |