Signin  Pricing  Examples  Support

Libraries > functions.js

functions.js - Search Live Website Code
It's like doing CTRL+F on millions of websites' source code



NerdyData is a search engine for source code. Search the source code of 200 million websites.


JAVASCRIPT FILE http://e-bey.org/dir/tpl/phplb/functions.js

Function Explorer








Libraries on e-bey.org


__utm.js



Explore More


mbPlayer-jPlayer.js

p4.js

jquery.carouFredSel-6.0.4-packed.js

jquery.easing.1.3.js

functions.js
				
function checkAll(field)
{
    for (i = 0; i < field.length; i++)
	field[i].checked = true ;
}

function uncheckAll(field)
{
    for (i = 0; i < field.length; i++)
	field[i].checked = false ;
}

function chHtml(oId, oHtml)
{
    if (document.getElementById || document.all)
    {
        var obj = document.getElementById? document.getElementById(oId): document.all[oId];
        if (obj && typeof obj.innerHTML != "undefined") obj.innerHTML = oHtml;
    }
}

function chForm(oId, oHtml)
{
    if (document.getElementById || document.all)
    {
        var obj = document.getElementById? document.getElementById(oId): document.all[oId];
        if (obj && typeof obj.value != "undefined") obj.value = oHtml;
    }
}

function fCounter(fldId, ctId, fMax)
{
    if (document.getElementById || document.all)
    {
        var fldObj = document.getElementById? document.getElementById(fldId): document.all[fldId];
        var ctObj = document.getElementById? document.getElementById(ctId): document.all[ctId];
        
        ctObj.value = fldObj.value.length
        
        if(fldObj.value.length >= fMax)
        {
            fldObj.value = fldObj.value.substring(0,fMax-1);
        }

        if (ctObj && typeof ctObj.value == "undefined") ctObj.value = fldObj.value.length;

    }    
}

function switchVis(obj) {
        
    myId = document.getElementById(obj).id;
    
    if (document.getElementById) { // DOM3 = IE5, NS6

        if(document.getElementById(obj).style.visibility == 'visible')
        {
            document.getElementById(obj).style.visibility = 'hidden';
            document.getElementById(obj).style.display = 'none';
        }
        else if(document.getElementById(obj).style.visibility == 'hidden')
        {
            document.getElementById(obj).style.visibility = 'visible';
            document.getElementById(obj).style.display = 'block';
        }
         else {
            document.getElementById(obj).style.visibility = 'visible';
            document.getElementById(obj).style.display = 'block';
        }
    } else {
        if (document.layers) { // Netscape 4
            if(document.obj.visibility == 'visible') {
                document.obj.visibility = 'hidden';
                document.obj.display = 'none';                
            } else if(document.obj.visibility == 'hidden') {
                document.obj.visibility = 'visible';
                document.obj.display = 'block';                
            } else {
                document.obj.visibility = 'hidden';
                document.obj.display = 'none';           
            }
        } else { // IE 4
            if(document.all.obj.style.visibility == 'visible') {
                document.all.obj.style.visibility = 'hidden';
                document.all.obj.style.display = 'none';                
            } else if(document.all.obj.style.visibility == 'hidden') {
                document.all.obj.style.visibility = 'visible';
                document.all.obj.style.display = 'block';                

            } else {
                document.all.obj.style.visibility = 'hidden';
                document.all.obj.style.display = 'none';                

            }
        }
    }
}


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z