diff options
| author | Darkelarious <darkelarious@333networks.com> | 2021-09-05 20:35:44 +0200 |
|---|---|---|
| committer | Darkelarious <darkelarious@333networks.com> | 2021-09-05 20:35:44 +0200 |
| commit | 3470e2605595bf52b3ba07bf0b3886e5a61d3e06 (patch) | |
| tree | 36e7fcf008183b464aca47b7eeba0953dd36feef /s/masterscript.js | |
| download | WebInterface-Perl-3470e2605595bf52b3ba07bf0b3886e5a61d3e06.tar.gz WebInterface-Perl-3470e2605595bf52b3ba07bf0b3886e5a61d3e06.zip | |
first version of masterinterface
Diffstat (limited to 's/masterscript.js')
| -rwxr-xr-x | s/masterscript.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/s/masterscript.js b/s/masterscript.js new file mode 100755 index 0000000..ce849bc --- /dev/null +++ b/s/masterscript.js @@ -0,0 +1,37 @@ +//============================================================================== +// 333networks & subs +// Written by Darkelarious. +// +// This script belongs to 333networks. See +// 333networks.com for license and copyright. +// +//============================================================================== + +// advanced search box +function toggleAdvanced () +{ + var box = document.getElementById("advancedsearch"); + box.style.display = (box.style.display == "block" ? "none" : "block" ); +} + +// search box +{ + var qbox = document.getElementById('q'); + qbox.onclick = function () + { + if ( this.value == 'search...' ) + { + this.value = ''; + this.style.fontStyle = 'normal' + } + }; + + qbox.onblur = function () + { + if ( this.value.length < 1 ) + { + this.value = 'search...'; + this.style.fontStyle = 'italic'; + } + }; +} |
