Vsns V3.1 > Vsns3 / Javascript.js

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Vsns V3.1

Download:
vsns-v3.1.zip

Category:
News Publishing

Archive Content:

Vsns3

Vsns3 > Functions

Vsns3 > Images

Vsns3 > Images > Smilies

Vsns3

Vsns3 > Templates

Vsns3 > Upgrade

Vsns3

Javascript.js:


function SetAllCheckBoxes(FormName,  FieldName,  CheckValue)
{
    if(!document.forms[FormName])
        return;
    var objCheckBoxes = document.forms[FormName].elements[FieldName];
    if(!objCheckBoxes)
        return;
    var countCheckBoxes = objCheckBoxes.length;
    if(!countCheckBoxes)
        objCheckBoxes.checked = CheckValue;
    else
        // set the check value for all check boxes
        for(var i = 0; i < countCheckBoxes; i++)
            objCheckBoxes[i].checked = CheckValue;
}

function hyperlink(FormName,  FieldName)
{
    var link = prompt("Enter your link URI below.  Remember the http:// part of the address!",  "");
    var linkname = prompt("Enter your link name below.",  "");
    var link = "<a href=\"" + link + "\">" + linkname + "</a>";
    insert(FormName,  FieldName,  link);
}

function insert(FormName,  FieldName,  toInsert)
{
    document.forms[FormName].elements[FieldName].value = document.forms[FormName].elements[FieldName].value + toInsert;
}


Other News Publishing Scripts:

WebMaster Resources Home

©RingsWorld.com