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
896
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
836
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
757
posted 13 years ago by jafar
Blocks bad bots, and image theft, allows visitors inside domains.
0
944
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
834
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
1122
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
758
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
914
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
642
posted 13 years ago by ariunbolor
I also included how to provision a Calendar list web part in Calendar View
0
964
posted 13 years ago by nickaranz