Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This is what I wanted:\r\nI had a structure like this:\r\n-Artist\r\n --Peter Miller\r\n ---Pictures\r\n ---Press\r\n ---Videos\r\n\r\nand wanted to have the sub-sub-Menu when located on the \"Peter Miller\"-Page. \r\nSo that on \"Peter...
0
1787
posted 16 years ago by zartgesotten
A simple wrapper class for MySql around PDO. Also an example on how to use this wrapper for SQLite.
1
1601
posted 16 years ago by Knarf
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
1511
posted 16 years ago by kristarella
Useful to use with crontab for allowing schedule a process below of the minute scope.
0
1673
posted 16 years ago by wnasich
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
2925
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
2249
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
10363
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
3675
posted 16 years ago by adrianparr
Originally from Webdesignerwall (see src)
Hover thumbnails of images and see the big holder image being swapped.
0
1789
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
1648
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
1517
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
2502
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
2402
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
2325
posted 16 years ago by Rembrand
I tried a menu bar with html5 and css3. Please give me some advice for more advance.
1
2223
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
1381
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
1715
posted 16 years ago by baires
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
2061
posted 16 years ago by StevenW721