Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Do you know that you can create a new form directly from theme template.php without the need of creating a module in Drupal 7?
Armed with that knowledge, we will build a new login form and transform it to become a horizontal login bar.
You migh...
0
1337
posted 14 years ago by sdxxx
This plugin is the work of Stefan Gabos, all credit, rights, and praise to be directed to him here: http://stefangabos.ro/jquery/jquery-plugin-boilerplate/
1
1245
posted 14 years ago by Japh
source: http://stellapower.net/content/javascript-support-and-arrayindexof-ie/<br>
source: http://www.robsearles.com/2010/03/11/ie-7-indexof-replacement/
0
1034
posted 14 years ago by shabith
Use the rel attribute to specify which "html" file to load. In this case the link is set to the "About" page and will load the about.html file with AJAX and update the site's title and address.
0
1108
posted 14 years ago by jafar
Blocks bad bots, and image theft, allows visitors inside domains.
0
3323
posted 14 years ago by CKOink
Redirects all server inquires to the one url to reduce duplicate indexes. AKA. http://www.ex.com and http://ex.com
0
1335
posted 14 years ago by CKOink
Rather that using $(element).trigger('click'), check to see if execute has come from an element rather than directly.
0
1838
posted 14 years ago by 1man
not fully tested maybe must be like specialprice in this excample
0
1006
posted 14 years ago by nico65
Basically creates a log function on the window object and uses console.log or alert depending on which is supported. Very basic and simple but definitely useful.
0
1198
posted 14 years ago by alvincrespo
Creates a daily backup and deletes any backup older than 60 days.
Replace:
*DB_USER
*DB_PASSWORD
*DB_NAME
*/path/to/backup
with your actual database name, credentials and path to where you want your backup to live.
Last note: you don't nec...
1
1570
posted 14 years ago by nikefido
Do not forget to name images you want to use for background like 1.jpg, 2.jpg, 3.jpg etc.
0
988
posted 14 years ago by ariunbolor
I also included how to provision a Calendar list web part in Calendar View
0
3319
posted 14 years ago by nickaranz