$(function(){ var textcolor; var shapesee; $('#ulseepbu').each(function(){ textcolor = $(this).data('color') ? $(this).data('color'):$("body").css('color'); shapesee=$(this).data('shape') ? $(this).data('shape'):'sphere'; }); if( ! $('#myCanvas').tagcanvas({ shape: shapesee, textColour: textcolor, outlineColour: textcolor, outlineThickness : 1, textHeight: 16, maxSpeed : 0.05, depth : 0.75 //dragControl:true, })) { // TagCanvas failed to load $('#myCanvasContainer').hide(); } $("input[name=insspbu6]").each(function(){ if($(this).attr("value")==2){ $('.optionseecolor').show(); }else{ $('.optionseecolor').hide(); } }); });