Month: June 2013

Tag Making Javascript Utility Function

Want to make tags dynamically with Javascript? makeTag ======= Tag making Javascript function Usage: makeTag(tag,tContent,tID,tClass,tValue,tAlt,tOther); // JQuery dom insert var tag1 = makeTag(‘button’,’Test’,’testBtn’,’TestBtnClass’,”,’Test Alt’,’title=”Test Title”‘); var tag2 = makeTag(‘input’,”,’testInput’,’testInputClass’,”,”,’title=”test title”‘); $(document).ready(function() { $(‘#node-9-tagArea’).append(tag1); $(‘#node-9-tagArea’).append(tag2); }); The result:

Pulsing box-shadow Blur JQuery CSS Animation

A css attribute animation I put together for an app: Pulsing Box Shadow Blur pulseBoxShadowBlur ================== Dependency: JQuery Usage: pulseBoxShadowBlur([pulseElement],[max blur],[blur color],[delay time between loops]); e.g. pulseBoxShadowBlur($(‘#getData-btn’),14,’#fff’,100); // start the process See it in action: (the “Get Trajectory”