Path Specific Re-direction using JavaScript

Path Specific Re-direction using JavaScript

You might have seen and used lot of JavaScript redirection before. What sets this JavaScript apart from others is that it redirects to a new location only on chosen page. This can come in handy if you don’t have access to sever-sided scripting, which is usually used for such path/URL specific re-direction. Like most of the weblogs – blogger, Wordpress MU, etc.

<!--Path Specific Re-direction from www.thepixelart.com-->
<script language="JavaScript">
var currentpage=location.href;
var spage="http://pixelart.com/web";
if(currentpage==spage)
 setTimeout("location.href = 'http://www.example.com';",10000);
</script>

Here “spage” is the page which needs to be redirected to new location. www.example.com represents the new location and the number “10000” is the time delay.

 
View
 
 

Best Quartz Composer Tutorials

Best Quartz Composer Tutorials

Quartz Composer is a powerful tool for processing and rendering graphical data. You can use it easily for manipulating any type of graphics in real time. It uses node based visual programming language and can be easily adopted by non-programmer due to it simplicity. It uses OpenGL, OpenCL in new Mac OS X, Core Image, Core Video, JavaScript, and other technologies. You can drag and drop, link nodes and play with values to create amazing graphics. Using Quartz Composer you can create Screen Savers, iTunes Visualizers, UI for applications, by conjunction with Cocoa. To use Quartz Composer, install Xcode developer tools from your Mac OS X disc.

 
View
 
 

Create a Typing Text Effect using jQuery

Create a Typing Text Effect using jQuery

For long now flash has been dominating the interactive web animation, using JavaScript was a daunting task. But introduction of frameworks like jQuery, MooTools, Scriptaculous, etc have made animating web component much easier. Another advantage of using these frameworks over flash is that they are search engine friendly. Though search engine do not index JavaScript, actual content is present in html or other SEO friendly code.

 
View