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 549 posted 16 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 410 posted 16 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 525 posted 16 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 523 posted 16 years ago by rolandog
3 446 posted 16 years ago by masaya
1 394 posted 16 years ago by perelin
// v6.0 SCHMOE Mod v.2: // switches between (display:'block';) and (display:'none';) // bsp: MM_SCHMOE_showHideLayers('swissmap');
0 315 posted 16 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 599 posted 16 years ago by tomute
Ejemplo de cómo utilizar el objeto Ajax.Responders de Prototype. El ejemplo hace uso de Scriptaculous.
3 468 posted 16 years ago by sendoa
See javadoc style comment in source.
2 676 posted 16 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 619 posted 16 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 515 posted 16 years ago by rolandog
Open a new window without using target="_blank" for XHTML 1.1. Need jQuery Framework : http://jquery.com/
15 1315 posted 16 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 591 posted 16 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 626 posted 16 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 427 posted 16 years ago by rolandog
Select all checkbox in the specific context. Need jQuery Framework : http://jquery.com/
12 608 posted 16 years ago by walepinski
StripTables Script. Need jQuery Framework : http://jquery.com/
6 411 posted 16 years ago by walepinski
Deals with the fact that mouse buttons are referenced in different ways by different browsers.
0 727 posted 16 years ago by MyKey_
Detects the browser and its version.
99 4589 posted 16 years ago by MyKey_
Just testing snipplr w/ this snippet.
5 686 posted 16 years ago by jonbaer
5 566 posted 16 years ago by kaminogoya