Cory Mathews

jQuery External Image and Tab Plugin (September 14th, 2011)

This jQuery Plugin is a quick way to: open external links in a new tab(_blank)place an image next to external links Example Use Options blank – if true it will change the links to open in a new tab by adding target=”_blank”. This defaults to true. path – if set this is the (From the […]

HTML5 Video Observations (January 28th, 2011)

First off my goal is to run a bunch of 3-5 minute videos on any 1 single browser on a windows machine, It will run as a kiosk and will not have Internet access. So this finally gives me a good reason to play around with the <video> tag. The videos were provided in a […]

Open All External Links in New Tabs (August 4th, 2010)

Here is a quick bit of jQuery to make all external links have the target=_blank attribute. <script type=”text/javascript”> $(function(){ $(“a[href^='http:']“).not(“[href*=EXAMPLE.com']“).attr({ target: “_blank” }); }); </script> You could also use this same technique to add a small friendly image next to these links  notifying the user they are about to leave the site. <script type=”text/javascript”> $(function(){ […]

jQuery Animation (March 29th, 2010)

I was recently working with the .animate() function and found there are some really cool effects you can create with it. However the more I used it the more problems I ran into. Basic usage of .animate() Just for good measure here is the basic usage of the .animate() function. I won’t go to far into […]

Letting Google Load jQuery… The Right Way (December 7th, 2009)

For some time now I have been letting google load the jQuery and jQuery UI libraries for me. There are many benefits to it which I will not get into, you can read more reasons to use it elsewhere. However I did notice something worth posting. You may be loading the jQuery library like so: […]

Rounded Corners using jQuery (April 24th, 2009)

jQuery is slowly changing the way web designers and developers create web sites. Here is an extremely easy way to achieve rounded corners using jQuery. You can view live demos on the plug-in webpage. In order to create our rounded corners you will of course first need jQuery. If you do not already have jQuery hurry […]