Welcome To Snipplr
Everyone's Recent Snippets Tagged js
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
If not have access to edit json, setting url possible is:
url: 'http://graph.facebook.com/4/?callback=getDatosUsuario'
0
868
posted 13 years ago by nicolaspar
Assumes that you have got a #mainnav around your menu. Works nicely with wp_nav_menu inside.
0
777
posted 13 years ago by telltec
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
1018
posted 13 years ago by reverend
jLim is a small JavaScript base code. It can be used to built your own JavaScript library or framework.
0
913
posted 13 years ago by freelancephp
This small javascript hides the table that holds statistical counters on hotdog.hu profile pages [footer part].
0
569
posted 13 years ago by Oroborus9
I love this script. It's perfect for anyone trying to transforms headlines into some sort of Title Case format without using CSS
0
831
posted 13 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
754
posted 13 years ago by volvis
this has place for external styles and the css start for a button sprite. Also has some comments about new html5 markup.
0
751
posted 13 years ago by gamblelyn
Sets the current element of a dropdown to the default option.
<select>
<option>Afrikaans</option>
<option>English</option>
</select>
0
683
posted 13 years ago by sanbor