Welcome To Snipplr
Everyone's Recent Snippets Tagged javascript
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Very basic way to toggle an element to slide in and out using mootools 1.1. Uses FX.Slide, other transitions are available.
2
908
posted 17 years ago by 1man
Script takes links that are not on your domain and opens them in a new window. This code allows for XHTML strict validation and meets Accessibility criteria on opening new windows.
5
1049
posted 17 years ago by skatan
Create a simple object and add properties and a method. Note where the object is parsed (not from top to bottom).
2
789
posted 17 years ago by 1man
This utility function attaches listeners to a text field or text area. It supports default text for instructional copy. The original text in the field is used as the instructional/default text. When the box gets focus, it disappears and the user can...
0
790
posted 17 years ago by elli
There must also be a JavaScript function defined in the containing HTML page:
function makePopup(url,pop_name,width,height) {
window.open(url, pop_name, "width="+width+",height="+height+",resizable=yes,scrollbars=yes");
}
1
860
posted 17 years ago by Bonky