Welcome To Snipplr
Everyone's Recent JavaScript Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
603
posted 12 years ago by volvis
Sometimes, you need to setup functionality before jQuery is loaded (e.g. because of a template). You can use this snippet to schedule the function after jQuery is loaded.
1
1125
posted 12 years ago by studioevoque
Annoy your visitors, fool your friends, fun and party. Please note that this also disables ability to write in form fields.
0
513
posted 12 years ago by stephcode
This override function for the default Drupal.toggleFieldset function adds code that looks for instances of TinyMCE inside the fieldset and triggers the autoresize on them when the fieldset is opened. Otherwise TinyMCE renders with a weird height.
0
579
posted 12 years ago by jonathanpglick
Format a date into a string using several string variables.
Usage:
(new Date("6/6/2011")).format("%W, %B %d%o, %Y");
Result:
Monday, June 6th, 2011
0
828
posted 12 years ago by wizard04
Read more here: http://www.jquery4u.com/dynamic-css-2/change-css-jquery/
0
528
posted 12 years ago by jquery4u
This script will handle any vertical resizing issues with a Facebook IFrame tab application, such as the resizing of the frame when elements expand, such as a Facebook Comments plugin. It uses the "FB.Canvas.setAutoResize" method from the Facebook Ja...
0
552
posted 12 years ago by SFLWebDev
Este es un programa que los puntajes y las calificaciones correspondientes a dicho puntaje.
0
388
posted 12 years ago by AgustinAlvia
Use whatever is needed to select the input box. $('#searchBoxOuter td.ms-sbcell input') reflects some custom master page html I have so I used that.
0
1101
posted 12 years ago by rumremix
A complete Google maps example with multiple markers and infowindows
0
641
posted 12 years ago by marzsman