Welcome To Snipplr
Everyone's Recent Snippets Tagged javascript
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
When a link is clicked, call up this function.
Parameter
message = message you want to display after click
url = page you want to forward to if the user clicks OK
1
1186
posted 15 years ago by chopbust
This is to call up Javascript alert through PHP. I hate switching between echoing Javascript while writing PHP so I wrote one in PHP.
0
1500
posted 15 years ago by chopbust
Hay dos maneras, la mejor es usar el script manager, tambien ver la diferencia entre
http://forums.asp.net/t/902895.aspx
0
2584
posted 15 years ago by ramirocalero
On click event, display a div on mouse coords.
Tested on Firefox 3.6.11, chrome 6, internet explorer 6.
Based on this source code: http://www.webdeveloper.com/forum/showthread.php?t=92007
0
4036
posted 15 years ago by juanduke
This snippet of code is probably the most common and _valuable_ in the world of jQuery.
1
1419
posted 15 years ago by creativeboulder
Be sure to call the exact version desired or the script is only cached for one hour!
http://encosia.com/2009/10/11/do-you-know-about-this-undocumented-google-cdn-feature/
1
1644
posted 15 years ago by housecor
Learn how to test for CSS property support in specific browsers using this simple Javascript technique.
2
1288
posted 15 years ago by neal_grosskopf
This is a very useful piece of code (html, css, jquery) to have a nice animated floating menu on your page. I totally love it.
I used it with jquery 1.3.2 and up
3
1594
posted 15 years ago by e11world
Was using this to disable certain js functionality as it wasnt working on apple\'s webkit
2
1633
posted 15 years ago by thiswayup
In regards to progressive enhancement, see also the [jQuery version](http://snipplr.com/view/48275/default-value-for-input-fields-jquery-version/).
6
1802
posted 15 years ago by riddla
<p>This snippet could be used when a text input has a default value. Thus, when user clicks on the input to write, the default value disappears and allows the user to write, but if the user does not type anything, the default value will appears again...
1
1380
posted 15 years ago by andres_314
This is quick code that demonstrates the usage of Microsoft's jQuery templating plugin.
8
1699
posted 15 years ago by Nettuts
Also includes the fix for when the user resizes the window.
4
1309
posted 15 years ago by Meander365
Just a fun and silly way to asynchronously update tweets about Justin Bieber.
3
1804
posted 15 years ago by Nettuts
This is a simple bit of code that allows you to do a write once date format in a PHP style date() format and convert it to be used by datepicker jQuery UI widget. It returns the converted string.\r\n\r\nNothing fancy here, but a time saver for the f...
1
2012
posted 15 years ago by roblynch
Grab Google CDN's jQuery. Fall back to local if necessary, Taken from the HTML5 Boilerplate.
1
1620
posted 15 years ago by f6design