Home \ Javascript
Javascript: Copy To Clipboard Cross Browser
If you use any script for syntax highlighting, you’ll see most of them has “copy to clipboard” feature. This is a fascinating thing done with Javascript. So I want to know more about it: how to implement copy to clipboard in Javascript. I did some searches on Google and found many articles which show various...
Create A Multiple URL Shortener Page
There are various url shortener services on the Internet, you can use free services such as bit.ly, tinyURL or create your own url shortener using some open sources. In this article, I’ll show you how to create a simple page that shows short urls created by multiple url shortener services. I’ll use HTML5, CSS3 for...
Get Total Twitter Followers With jQuery
There are many snippets on the Internet that show you how to get total Twitter followers of an user, most of them are written in PHP or other server-side script languages. But do you know that we can do that with only pure Javascript by using ajax in jQuery?
How To AJAXify WordPress Theme
Chris Coyier has made a wonderful screencast about AJAXing WordPress theme. To AJAXify WordPress theme, he uses jQuery to make any internal link on the site will load into the main content area without requiring a page refresh, including search when the link is clicked. Althought the script works fine, it has 2 disadvantages: the...
Howto Install SyntaxHighligher In Blogger
SyntaxHighlighter helps a developer/coder to post code snippets online with ease and have it look pretty. SyntaxHighlighter is developed in Javascript by Alex Gorbatchev. SyntaxHighlighter is the most popular script for syntax highlighting and widely used by many blogs, websites. It has many wonderful features like: view source code in plain text, copy to clipboard,...
WordPress Tip: Conditional Loading Scripts Based On Post Content
Sometimes you want to load one script in only specified posts, not for all posts. For example: you want load Thinkbox script only when post has images, load SyntaxHighlighter only when post has codes. It wouldn’t be optimized if you always load these scripts in every posts. We just want WordPress to load them when...
