Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
There's been a popular trend to use JavaScript to add target="_blank" to anchors with rel="external". So in the name of making everything in my site Prototype based I worked out a script to do just that.
2
1654
posted 17 years ago by fruehjahr
Paste this code in your HTML to display the current year. This script is commonly used in the © copyright's current year.
4
1738
posted 17 years ago by variantstudios
Grab http://blog.kissmetrics.com/common/images/required.png as example for a required image .
NOTE: You probably don't want to use this trcik, but rather go for the defacto standard of a red asterisk to mark something required. An asterisk is lang...
1
1355
posted 17 years ago by berkes
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
1247
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
1177
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
995
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
1254
posted 17 years ago by krunkosaurus
This is a general set of style sheet commands that you can add to your CSS. It basically creates styles for very general actions that we take when creating layouts. This will make it easy to float, clear, and position elements by giving them a generi...
1
1291
posted 17 years ago by AlexWolfe
wordpress function
return html list with all posts grouped by month
1
1077
posted 17 years ago by miziomon
Removes all children from the specified scopes display list. Straight out of Colin Moock's Essential ActionScript 3 book.
1
1081
posted 17 years ago by jpdevries