Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Questo snippet modifica la posizione della data del post se questo è più vecchio di trenta giorni dalla data di pubblicazione.
0
1545
posted 16 years ago by gavello
Just a quick script to enable default text within a form element to be cleared or restored upon focus/blur of a particular element.
Should give you roughly the same functionality as the new HTML5 webforms "placeholder" attribute.
0
1725
posted 16 years ago by scheurbert
This example triggers the admin theme when on any of the user/* pages (login, edit, etc.). Put the name of your admin theme in {admin-theme-name} so there's a safe fallback in case variable_get doesn't find the admin_theme.
0
1666
posted 16 years ago by jonathanpglick
A jQuery snippet to make form inputs show a help message which disappears on click (and comes back when the user enters nothing). Give your input the classes ‘remember’ to activate the snippet and (optionally) ‘unfocused’ as a CSS hook for ch...
2
1934
posted 16 years ago by iqwebdev
Very easy way to preload images which are needed later (e.g. when a hover is performed)
4
1998
posted 16 years ago by iqwebdev
This CSS sets semi-transparent background while not affecting the opacity of child elements like using the opacity property would. The text color has been set to the same as the background color to demonstrate this.
Notes:
For the Microsoft fil...
0
1750
posted 16 years ago by chrisdpratt
Replace “value†with the default value. If the field is selected, the default value will go away. If the user has previously changed the field value, it’ll be left alone.
Alternatively, use onfocus=â€this.value=â€;†to always clear the f...
1
2064
posted 16 years ago by iqwebdev
Get a filename part from a NSURLRequest. Optionally remove extension
0
1504
posted 16 years ago by gfazioli
I used to program in classic ASP and would sometimes check if a certain word or letter would be in a string with instr.
if instr(haystack, needle)>0 then
DO SOMETHING
end if
If the needle starts on the first position of the haystack, instr...
0
1953
posted 16 years ago by seloh77
This was used to accomplish a deferent background on a secondary page within the website.
0
1544
posted 16 years ago by gera3d
This worked on the limo site. I need to change the form action for it to work with another project.
0
1753
posted 16 years ago by gera3d
This code uses Senocular SWFReader class to get the modification (publish) date of the SWF, and then displays it as a right-click menu item. You need to make sure that your SWF includes the XMP metadata. In the Flash IDE you can turn this on by going...
2
2685
posted 16 years ago by adrianparr