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
894
posted 13 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
833
posted 13 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
643
posted 13 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
756
posted 13 years ago by jafar
Blocks bad bots, and image theft, allows visitors inside domains.
0
943
posted 13 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
831
posted 13 years ago by CKOink
Rather that using $(element).trigger('click'), check to see if execute has come from an element rather than directly.
0
1116
posted 13 years ago by 1man
not fully tested maybe must be like specialprice in this excample
0
632
posted 13 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
756
posted 13 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
912
posted 13 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
641
posted 13 years ago by ariunbolor
I also included how to provision a Calendar list web part in Calendar View
0
961
posted 13 years ago by nickaranz