« Return to the blog entry
@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;}
}
@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;}
}