Welcome To Snipplr


Everyone's Recent Snippets Tagged javascript



1 ... 34 35 36 37 38 ... 46
This snippet contains a text input field called 'abc' and we calling the checkNum function as the onclick action of a button 'btn'
0 914 posted 15 years ago by juzerali
This little piece of code will convert to US phone format, as typed. Eg, As the number "0000000000" was typed, it would convert it to (000)-000-0000.
6 3609 posted 15 years ago by xtheonex
Click on an input field with a prefilled value, if that value equals the default then select it, if not leave it as it was. Relies on jQuery.
2 1459 posted 15 years ago by 1man
Place javascrip refernce or complete javascript code in page header from ascx or aspx file.
0 997 posted 15 years ago by leonbda
<p>How to use: HTML: &lt;img id="image" src="image.png" alt=""/></p> <p>JavaScript: add_reflection (document.getElementById ( 'image'), 1, 1, 0.1, 0); </p> <p>As a result, the script wrap image in the div, ask him to the desired height and...
2 869 posted 15 years ago by Jman
Sometime, you need unique classes on the leave join button of the groups page. Place this script in your AC footer. --<br> For more tips and tricks checkout the <a href="http://www.kickdeveloper.com/resources">KickApps resources page</a>.
0 854 posted 15 years ago by krunkosaurus
Find out how to do rounded corners in CSS. A new method has recently come out that makes it extremely easy to implement.
3 1383 posted 15 years ago by neal_grosskopf
A bookmarklet that enabled a speed dial storing the data in webkit's SQL engine. There are bugs and a few conditions, read: [http://www.dom111.co.uk/blog/coding/webkit-speed-dial-bookmarklet/59](http://www.dom111.co.uk/blog/coding/webkit-speed-dial-b...
1 827 posted 15 years ago by dom111
0 521 posted 15 years ago by abie
This enables you to center a horizontal unordered list that uses "float:left". Normally, this is almost impossible with pure CSS, but Javascript makes it easy. jQuery makes it even easier.
0 718 posted 15 years ago by corey
0 509 posted 15 years ago by manec
Everything works as expected for the setTimeout() function until you try to call a method inside your ‘class’ (there are no real classes in JavaScript). Something like this won’t work: setTimeout(this.methodToCall, time); Passing a string r...
0 1207 posted 15 years ago by eden159
2 1090 posted 15 years ago by iloveitaly
2 1170 posted 15 years ago by shahways
Paste this code in your HTML to display the current year. This script is commonly used in the © copyright's current year.
4 872 posted 15 years ago by variantstudios
In this example below I am moving the "recent blogs" module in "My Home" to the very top. I have placed this code in the footer of my Affiliate Center wrapped in script tags. For maximum efficiency: 1) Use the inspect tool in Firebug to find the...
0 669 posted 15 years ago by krunkosaurus
This clean little script assumes you have a simple "A-name" style jump to some cool stuff at the bottom of the page that you want people to see. ID your link "browse" and your good. Certainly you could scroll to another ID on the page if you are so...
0 673 posted 15 years ago by esquareda
This is a basic script that will redirect a non-member to the login page with a custom message. Place the code between script tags in your Affiliate Center header. To use: 1) replace loginPage variable with your *login URL. 2) replace accessMe...
0 548 posted 15 years ago by krunkosaurus
Use the Ka.Util.getLocationParam utility method to get the mediaType GET parameter: --<br> For more tips and tricks checkout the <a href="http://www.kickdeveloper.com/resources">KickApps resources page</a>.
0 669 posted 15 years ago by krunkosaurus
Using JSON-P with jQuery. Note the callback.
0 946 posted 15 years ago by 1man
1 ... 34 35 36 37 38 ... 46