Welcome To Snipplr


Everyone's Recent JavaScript Snippets



function prints a serie of random numbers but without the next one being the same as the previous. to print, just call the function in the body
1 422 posted 15 years ago by dandyna
This little javascript will toggle the div object to create collpse/expand effect on web page. Treat it as a poor man's solution for the TreeView.
0 301 posted 15 years ago by chengkai
This function allows an object's property names to be read by using an index. The properties can be accessed like: someobject.propertyNames[0] or someobject.propertyValues[0]. But you first have to make the object's properties available by calling so...
2 367 posted 15 years ago by rolandog
Constructs an element out of arrays. Using nested arrays translates into nested ChildNodes. Update 2006-07-19: Added documentation (comments). Update 2006-11-25: Reduced the ammount of code needed.
5 375 posted 15 years ago by rolandog
3 288 posted 15 years ago by masaya
1 288 posted 15 years ago by perelin
// v6.0 SCHMOE Mod v.2: // switches between (display:'block';) and (display:'none';) // bsp: MM_SCHMOE_showHideLayers('swissmap');
0 219 posted 15 years ago by perelin
This is test script of Google Map API. How to use this script is as follows. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"> <head> <style type="text/css"> v\:* { behavior:url(#default#VML)...
5 416 posted 15 years ago by tomute
Ejemplo de cómo utilizar el objeto Ajax.Responders de Prototype. El ejemplo hace uso de Scriptaculous.
3 339 posted 15 years ago by sendoa
See javadoc style comment in source.
2 483 posted 15 years ago by ishikawa
Creates a notification message for AJAX requests. Dependencies: prototype.js, script.aculo.us. CSS-Styles: http://snipplr.com/view/348/loadingmessage-for-ajax-requests-css/
11 423 posted 15 years ago by dertimbo
Directions: be sure to set to absolute paths every image location from your litebox-1.0.js and lightbox.css files... and, replace the setInnerHTML function with this one... http://www.doknowevil.net/litebox/
1 335 posted 15 years ago by rolandog
Open a new window without using target="_blank" for XHTML 1.1. Need jQuery Framework : http://jquery.com/
15 908 posted 15 years ago by walepinski
This is a way to determine if the browser uses the KHTML engine or if it is the Konqueror Browser.
2 390 posted 15 years ago by rolandog
For a working demo in application/xhtml+xml or text/html, go to: http://rolandog.com/archives/2006/07/10/litebox-demasiado-bueno-para-ser-cierto/ You should delete the multi-line comments after completing the setup, some old browsers will complai...
3 420 posted 15 years ago by rolandog
This script makes it possible to delete every childNodes, childNodes.childNodes, childNodes.childNodes.childNodes and so on. Includes example functions for deleting all childNodes, firstChild and lastChild from an 'id'. It uses twin functions that ca...
0 302 posted 15 years ago by rolandog
Select all checkbox in the specific context. Need jQuery Framework : http://jquery.com/
12 422 posted 15 years ago by walepinski
StripTables Script. Need jQuery Framework : http://jquery.com/
6 285 posted 15 years ago by walepinski
Deals with the fact that mouse buttons are referenced in different ways by different browsers.
0 494 posted 15 years ago by MyKey_
Detects the browser and its version.
99 2635 posted 15 years ago by MyKey_