Welcome To Snipplr
Everyone's Recent Snippets Tagged javascript
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
via [http://ryanflorence.com/mootools-for-beginners-part-5-native-extensions/](http://ryanflorence.com/mootools-for-beginners-part-5-native-extensions/)
0
728
posted 14 years ago by cfleschhut
on using any wysiwyg editor (f.e. CKEditor) is inserted link to anchor on same page in this form: [a href="#anchor"]text[/a]
if on web site is used tag BASE, anchors links are wrong - on all page are on this url: www.domain.com/#anchor
this fun...
0
847
posted 14 years ago by knedle
Returns window size as object.
winsize.x = window width;
winsize.y = window height;
1
979
posted 14 years ago by djstaz0ne
I needed to break down a long string today and insert line breaks so I wrote this little function. You can use it to split a long string into chunks of a defined length and get them as an array or join them by a defined character (e.g. <br />)....
0
971
posted 14 years ago by chlab
adopted from:
http://www.alistapart.com/articles/makingcompactformsmoreaccessible/
0
815
posted 14 years ago by cfleschhut
jQuery plugin that let you specify a maximum length on a text field and optionaly specify the change the focus when that maximum length has been reach. Nice when making multiple input text to create a telephone form.
Example: $("#telephone_1").maxLe...
0
659
posted 14 years ago by frankyfish
What it does is look for img tag and on rollover change the source path from "anyimage.jpg" to "anyimage_hover.jpg". It add the suffix "_hover" at the end of the src name without changing the extension. If you look at the code you will see that it al...
0
778
posted 14 years ago by frankyfish
Documentación en: http://eric.garside.name/docs.html?p=epiclock
0
605
posted 14 years ago by arantxaortega
adapted from:
[http://aktuell.de.selfhtml.org/artikel/javascript/fader-framework/bilderslideshow.htm](http://aktuell.de.selfhtml.org/artikel/javascript/fader-framework/bilderslideshow.htm)
0
790
posted 14 years ago by cfleschhut