From 3470e2605595bf52b3ba07bf0b3886e5a61d3e06 Mon Sep 17 00:00:00 2001 From: Darkelarious Date: Sun, 5 Sep 2021 20:35:44 +0200 Subject: first version of masterinterface --- s/masterscript.js | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 s/masterscript.js (limited to 's/masterscript.js') 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'; + } + }; +} -- cgit v1.2.3