Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 273 274 275 276 277 ... 552
Customize as needed using user roles.
0 2542 posted 16 years ago by vagrantradio
A simple wrapper class for MySql around PDO. Also an example on how to use this wrapper for SQLite.
1 1672 posted 16 years ago by Knarf
This is the PHP code to debug any variable ..
1 2082 posted 16 years ago by xkeshav
The code to call the normal Thesis Thumb is at http://snipplr.com/view/38971/thesis-thumbnail/\r\n\r\nTo test whether there is a thumbnail, and if not use another one, use this code in custom_functions.php.\r\n\r\nYou can change the class alignleft t...
0 1594 posted 16 years ago by kristarella
Needs to be used within the loop.
0 1599 posted 16 years ago by kristarella
Coments, Coments, And More Coments,
0 4151 posted 16 years ago by enabled88
Useful to use with crontab for allowing schedule a process below of the minute scope.
0 1769 posted 16 years ago by wnasich
0 1894 posted 16 years ago by DesignByWilliam
requires that a pulldown \\\"program1\\\" in form \\\"freshmen\\\" be set to anything but the first value in the option list. \\r\\n\\r\\nrequires jquery validate: http://docs.jquery.com/Plugins/Validation
1 3030 posted 16 years ago by dan_hoerr
Hijack (Ajack?) links within an element so instead of booting you to a fresh page it loads the information to a specified DIV. If you have any suggestions on how to make it better then let me know
5 2411 posted 16 years ago by reynish
I wrote this code for when I need to get files from other servers and put them on my own server. I wanted to simplify it as much as possible.
1 10504 posted 16 years ago by BrunoDeBarros
A handy little function to dynamically draw a black dot on the stage (or displayObject). This can be useful if you want to see where 0,0 is located.
2 3826 posted 16 years ago by adrianparr
Originally from Webdesignerwall (see src) Hover thumbnails of images and see the big holder image being swapped.
0 1867 posted 16 years ago by Rembrand
Originally from http://www.pseudocoder.com Make an li (or div or whatever) clickable without having to wrap it in a link-tag. Like Matt, I like to add a .hover class to it in order to apply hover effects
0 1732 posted 16 years ago by Rembrand
Get menu tabs to slide up/down when hovering over them. For some reason, it only starts working after you've hovered above a tab first. I should find out why that is.
0 1610 posted 16 years ago by Rembrand
Show a form field if 1 value from a dropdown is chosen, hide is the other is chosen. Can be extended to include more fields and values. Could get messy if you start nesting more than 2 'if else' but it gets the job done.
0 2594 posted 16 years ago by Rembrand
Originally from http://www.electrictoolbox.com (see src)\r\nClear the default value of a form field when you click on it (when you want to type) and put it back if you leave without typing anything.
1 2520 posted 16 years ago by Rembrand
Originally form http://www.electrictoolbox.com\r\nComes in handy if you want to display a message in the field (\\\"type your password\\\") but mask the password itself.
1 2432 posted 16 years ago by Rembrand
I tried a menu bar with html5 and css3. Please give me some advice for more advance.
1 2342 posted 16 years ago by jamepaul
Display a default value in a text field that disappears on focus and reappears on blur **if** the field is blank.
0 1457 posted 16 years ago by prsjohnny
Little code snippet for automatically adding a custom field for a page or post when they are published.
0 1805 posted 16 years ago by baires
1 1991 posted 16 years ago by emmanuelbuah
Sometimes iframes are unavoidable, and in those cases you usually don't want it to be apparent there is one. This will find the height of the iframed contents and resize the iframe accordingly, making it appear to be part of the page. Almost positive...
2 2174 posted 16 years ago by StevenW721
0 1742 posted 16 years ago by trepmal
1 ... 273 274 275 276 277 ... 552