Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 166 167 168 169 170 ... 552
Enhanced cross-browser event handling
0 2218 posted 15 years ago by wizard04
Returns an object with the `event.button` values of both the W3C and Microsoft models.
0 2112 posted 15 years ago by wizard04
These functions allow you to set a handler for a mouseleave/enter event.
0 1854 posted 15 years ago by wizard04
0 1807 posted 15 years ago by Savio
0 1399 posted 15 years ago by kylewu
1 1735 posted 15 years ago by kylewu
1 1851 posted 15 years ago by clark-kim
if you need ecmascript 5 functions then use underscore.js
0 1961 posted 15 years ago by root_hacker
0 1810 posted 15 years ago by dsoms
0 1815 posted 15 years ago by takel
when need to created a dom element repeatedly , use string concatenation to avoid for loop you can use repeat function from below.
0 2271 posted 15 years ago by root_hacker
this is the way for toggling something on mouse hover in and out
0 2459 posted 15 years ago by root_hacker
3rd argument of 'add_action' function is priority, by default set to 10. This is a much simpler way of reorder posts exactly as you want them to appear.
1 1595 posted 15 years ago by mrgurner
No need to create a seperate function for this one. Just one line to clear the default value on click and leave the value when it has been altered.
1 1931 posted 15 years ago by dyteq
Safely loads a javascript file asynchronously Example: (function() { __safeLoadScript("http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js", function() { alert(jQuery); }); })();
0 1725 posted 15 years ago by jasonseney
Use as follow : .example{ .insetShadow(0, 1px, 5px, rgba(0,0,0, .5)); }
0 1666 posted 15 years ago by kanouf
1 1859 posted 15 years ago by fatihturan
0 1423 posted 15 years ago by remitbri
0 1524 posted 15 years ago by remitbri
FadeIn and FadeOut cycle through some images in a div
0 1501 posted 15 years ago by marzsman
0 1641 posted 15 years ago by linkmoises
Activation: con Scope: source.js, source.js.jquery
0 1787 posted 15 years ago by divtagged
1 ... 166 167 168 169 170 ... 552