Welcome To Snipplr
Everyone's Recent Snippets Tagged javascript
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This snippet contains a text input field called 'abc' and we calling the checkNum function as the onclick action of a button 'btn'
0
1893
posted 17 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
5100
posted 17 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
2513
posted 17 years ago by 1man
Place javascrip refernce or complete javascript code in page header from ascx or aspx file.
0
2054
posted 17 years ago by leonbda
<p>How to use: HTML:
<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
1590
posted 17 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
1768
posted 17 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
2713
posted 17 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
1625
posted 17 years ago by dom111
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
1475
posted 17 years ago by corey
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
2549
posted 17 years ago by eden159
Paste this code in your HTML to display the current year. This script is commonly used in the © copyright's current year.
4
2063
posted 17 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
1524
posted 17 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
1426
posted 17 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
1237
posted 17 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
1546
posted 17 years ago by krunkosaurus