Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Basic style to set up Joomla-format menu as horizontal menu with dropdowns.
0
850
posted 14 years ago by cviolette
Code to add Google-hosted jQuery UI library to site. See styles and documentation at http://jqueryui.com/
1
796
posted 14 years ago by cviolette
jQuery to make Joomla-format menu dropdowns appear on hover. Change "#mainnav" to menu container selector.
1
838
posted 14 years ago by cviolette
Code to add Google-hosted jQuery to site. Includes noConflict to avoid conflicts with other libraries.
0
760
posted 14 years ago by cviolette
This code will retrieve the url of a featured image in order to use it as a background.
0
740
posted 14 years ago by jli
On focus, remove text inside input containing a title, put it back if it has not change
0
585
posted 14 years ago by touffies
Get all the links and check if there's a rel attribute external, if not, compare href to the current domain name.
0
655
posted 14 years ago by touffies
This function will find elements with your default classOver and will change the file name to add _ro into it.
ie: filename.gif -> filename_ro.gif
0
588
posted 14 years ago by touffies
Custom dropdown field, replace defaut dropdown style with custom design.
This function does not replace the select field.
1
878
posted 14 years ago by touffies
Split a single phone number input field into 3 small input fields and create an hidden field for validation and keep server side variable name.
0
959
posted 14 years ago by touffies
Hello,
I have been developing with jQuery for just over a year now, I thought I would share something with you that I have found pretty time saving over the past few months.
If you have ever had javascript conflicts due to several different jav...
2
750
posted 14 years ago by mike-tempest
it parses given string and returns 1st number it encounters ( it will replace comas with dots so floats formatted as 12,345 could be 12.345 ( some countries use that ) )
then u can parse returned value as a number / float / int - do what You need...
0
895
posted 14 years ago by stryju