Welcome To Snipplr


Everyone's Recent Snippets Tagged js



Generate random number between two integers
0 1140 posted 13 years ago by aperazzi
If not have access to edit json, setting url possible is: url: 'http://graph.facebook.com/4/?callback=getDatosUsuario'
0 1229 posted 13 years ago by nicolaspar
0 976 posted 13 years ago by bubaphex
0 1021 posted 13 years ago by bubaphex
Assumes that you have got a #mainnav around your menu. Works nicely with wp_nav_menu inside.
0 1772 posted 13 years ago by telltec
0 2048 posted 13 years ago by athanassiadis
Will produce output like this: <html> ... </html> <html> ... </html> Target in CSS like this: html[data-useragent*='Chrome/13.0'] .nav {background:url(img/radial_grad.png) center bottom no-repeat;} or html[data-useragent*=...
0 2111 posted 13 years ago by reverend
0 1022 posted 13 years ago by damientailhades
0 842 posted 13 years ago by damientailhades
0 1058 posted 14 years ago by athanassiadis
0 1900 posted 14 years ago by silentpro
0 1090 posted 14 years ago by silentpro
jLim is a small JavaScript base code. It can be used to built your own JavaScript library or framework.
0 1253 posted 14 years ago by freelancephp
0 1008 posted 14 years ago by ariunbolor
This small javascript hides the table that holds statistical counters on hotdog.hu profile pages [footer part].
0 861 posted 14 years ago by Oroborus9
0 921 posted 14 years ago by pavlovt
I love this script. It's perfect for anyone trying to transforms headlines into some sort of Title Case format without using CSS
0 1194 posted 14 years ago by chrisaiv
Somewhere along the road the people behind canvas decided that all image scaling is anti-aliased by default. Firefox has 'mozImageSmoothingEnabled' while Chrome et company don't. This is a proof of concept script to resize 'virtualCanvas' two time...
0 1103 posted 14 years ago by volvis
0 901 posted 14 years ago by griffpup
this has place for external styles and the css start for a button sprite. Also has some comments about new html5 markup.
0 1697 posted 14 years ago by gamblelyn
Sets the current element of a dropdown to the default option. <select> <option>Afrikaans</option> <option>English</option> </select>
0 1038 posted 14 years ago by sanbor
0 1012 posted 14 years ago by ericmuyser
How to create a popup window in Magento
0 1025 posted 14 years ago by ronal
Drupal 7 Behaviour wrapper
0 1022 posted 14 years ago by sherakama
0 958 posted 14 years ago by athanassiadis
3 1406 posted 14 years ago by iroybot
0 946 posted 14 years ago by loric
5 1393 posted 14 years ago by vestimir