aboutsummaryrefslogtreecommitdiff
path: root/s/masterscript.js
blob: ce849bcfde7daa8c2d37112440aee967e074827f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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';
        }
    };
}