Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Is very inefficient to attach a anonymous function event handlers to multiple items in a selection. The function is duplicated for each element.
This shows how you can just create a single function and in the event handler callback just call that...
0
655
posted 13 years ago by anagaiyahoocom
simply add s4-notdlg to the class of the element that you don't want to appear in dialog boxes. See example.
0
952
posted 13 years ago by rumremix
The "inherit" aspect of this did not always work for me. For example, font-family may need to be explicitly specified in the generated css (in place of "inherit"). But this just takes a couple seconds. Simply search for "family" and replace "inherit"...
1
1045
posted 13 years ago by rumremix
function for determining the section ID of a given page. Good to include in a templatetools.php file inside of a template to set up some custom conditional logic
0
858
posted 13 years ago by beneberle
Another version for my old Order by Rand function now it includes some PHP
0
646
posted 13 years ago by aamirrajpoot
Get a list of providers for DTrace that OSX supports. (DTrace is a probe/profiling tool created by Sun that came with Mac OS X starting with Leopard.)
0
969
posted 13 years ago by zingo
Returns the video id for any type of youtube url that holds one.
2
1260
posted 13 years ago by KabuqueJoe
Go to the Windows command line by going to Start -> Run and typing in cmd.
You need to change directory to the MySQL bin directory. On my version, the directory is c:\wamp\bin\mysql\mysql4.1.22\bin.
Therefore, the command to change to this dire...
0
778
posted 13 years ago by TheJasonParker
post thumbnail function and display as background if function exists
0
772
posted 13 years ago by zealmurapa