Print

Using Images Elsewhere

The code below, loaded into the Javascript section of a Form can add an image to a button..

function nuLoadThis(){
    buttonPicture("#nuActionSave",nuImage("dot"));
}
 
function buttonPicture(id,pic){
    $(id).css("padding-left","25px");
    $(id).css("background-image","ur<x>l("+pic+")");
    $(id).css("background-repeat","no-repeat");
    $(id).css("background-position","5px 4px");
}








Created by: steven. Last Modification: Tuesday 07 of August, 2012 07:35:41 CST by steven.