Team:Queens Canada/sandbox

From 2012.igem.org

(Difference between revisions)
Line 4: Line 4:
   <script src="http://code.jquery.com/jquery-latest.js"></script>
   <script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
<script type="text/javascript">
-
/**
 
-
* jQuery mousehold plugin - fires an event while the mouse is clicked down.
 
-
* Additionally, the function, when executed, is passed a single
 
-
* argument representing the count of times the event has been fired during
 
-
* this session of the mouse hold.
 
-
*
 
-
* @author Remy Sharp (leftlogic.com)
 
-
* @date 2006-12-15
 
-
* @example $("img").mousehold(200, function(i){  })
 
-
* @desc Repeats firing the passed function while the mouse is clicked down
 
-
*
 
-
* @name mousehold
 
-
* @type jQuery
 
-
* @param Number timeout The frequency to repeat the event in milliseconds
 
-
* @param Function fn A function to execute
 
-
* @cat Plugin
 
-
*/
 
jQuery.fn.mousehold = function(timeout, f) {
jQuery.fn.mousehold = function(timeout, f) {

Revision as of 13:53, 7 June 2012












































up