var control = $('#control').bendGauge(); control.bendGauge('set', [1,3,5,6]); $('a').click(function (e) { e.preventDefault(); }); $('.start').click(function () { control.bendGauge('flash'); }); $('.stop').click(function () { control.bendGauge('stop'); });
<div id="control"></div> <a href="#" class="start">start flashing</a> :: <a href="#" class="stop">stop</a>
body { background: #333; } a { color:#FFF } #control { width: 200px; height: 200px; }