logo

New Response

« Return to the blog entry

You are replying to:

    • avatar
    • Jonathan
    • Posted on Mon 5 Jun 2006 11:41 AM

    @Jeff Try this..

    Of course requires Prototype.js... or re-code for non protype.js

    //FUNCTION setSPAN(spnid, innerMSG, cName, x, y) - Sets a spans inner html & class to what ever is passed to it.

    function setSPAN(spnid, innerMSG, cName, x ,y){

    if(spnid!=""){

    $(spnid).innerHTML=innerMSG;

    $(spnid).className=cName;

    if(x!=''){$(spnid).width=x;}

    if(y!=''){$(spnid).height=y;}

    }

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: