aboutsummaryrefslogtreecommitdiff
path: root/s/masterscript.js
diff options
context:
space:
mode:
Diffstat (limited to 's/masterscript.js')
-rwxr-xr-xs/masterscript.js37
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';
+ }
+ };
+}