Send A Message

If you have a question or comment, drop me a line and I'll be
sure to get back to you. I'm always available to answer any
questions you have regarding your website.

Full Name

Email Address

What can I help you with?


How to quickly open a webpage in all browsers

October 8, 2010 at 5:19 pm | Scripts, Windows | No comment

While developing a website you should routinely check to make sure your pages are working properly in many major browsers.  This is a DOS Batch script that will let you open a specific page in all your browsers with a single command.

Source

@ECHO OFF
IF "%1"=="" GOTO Continue

start iexplore %1
start firefox %1
start chrome %1
start safari %1

:Continue

Installation

Open a text editor and save the above code to a file in your Windows directory.

C:\WINDOWS\browsertest.bat

Usage

Run the script with the URL you want to test as the 1st parameter.

Click on Start -> Run and enter the following command:

browsertest http://www.danbeland.com

Javascript Grayscale

February 26, 2010 at 2:06 pm | Scripts | No comment

This script works great for doing grayscale on hover when used with jQuery.

http://james.padolsey.com/demos/grayscale/

I used it to gray out thumbnails on a staff page then used the grayscale.reset() function to colour them in on hover.  The demo page says it doesn’t work well in Chrome but it seems to be working fine for me.