jonhenshaw


Member since 06/27/2006

Location: Nashville, TN

Website: http://sitening.com/

45 snippets

12119 profile views

34 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet popular snippet:having a snipplet with 20 favorites

jonhenshaw's Recent Snippets



1 2 Next »
This redirects visitors to a new URL using a 301 redirect. Using a 301 redirect is the safest way to let search engines like Google, Yahoo!, Live and Ask know your address has changed.
3 1830 posted 17 years ago by jonhenshaw
This redirects visitors to a new URL using a 301 redirect. Using a 301 redirect is the safest way to let search engines like Google, Yahoo!, Live and Ask know your address has changed.
0 893 posted 17 years ago by jonhenshaw
This redirects visitors to a new URL using a 301 redirect. Using a 301 redirect is the safest way to let search engines like Google, Yahoo!, Live and Ask know your address has changed.
0 1463 posted 17 years ago by jonhenshaw
This redirects visitors to a new URL using a 301 redirect. Using a 301 redirect is the safest way to let search engines like Google, Yahoo!, Live and Ask know your address has changed.
0 1650 posted 17 years ago by jonhenshaw
This redirects visitors to a new URL using a 301 redirect. Using a 301 redirect is the safest way to let search engines like Google, Yahoo!, Live and Ask know your address has changed.
0 1013 posted 17 years ago by jonhenshaw
This is an excellent solution for fixing IE 6's inability to display transparent PNGs correctly. Step 1: Include the following conditional comment the HEAD area of your document. You will need to update the CSS selector and also the path to wheree...
13 1379 posted 17 years ago by jonhenshaw
Visit the link for instructions on how to use it.
4 758 posted 17 years ago by jonhenshaw
This handy CSS attribute can be used to keep text from wrapping. It can also be used to keep other HTML elements from wrapping. Simply apply the white-space:nowrap attribute to any HTML element to force text and images to not return within a specifie...
5 3489 posted 17 years ago by jonhenshaw
IE6 and before doesn't support :hover in CSS (except for anchors). You can use this script to make hovers work in IE. Just add the following line to your stylesheet (this assumes the path of the file -- you may need to change it to reflect your paths...
7 1637 posted 17 years ago by jonhenshaw
JavaScript Tooltip libraries number about as many as rounded CSS corner libraries. Jonathan Weiss thought the ones he saw were "too complicated and bloated, did just too much and most of the time were still not flexible enough with the tooltip. So...
1 799 posted 18 years ago by jonhenshaw
A an excellent script for allowing links to open new windows while keeping the code standards compliant. If you look at the last line of the script, you will notice that the JSTarget.init() function takes three parameters (all optional). This is w...
0 946 posted 18 years ago by jonhenshaw
A useful but often overrated JavaScript function is the browser detect. Sometimes you want to give specific instructions or load a new page in case the viewer uses, for instance, Safari. Copy this script into your JavaScript files. It works immedi...
1 919 posted 18 years ago by jonhenshaw
You can use this script to always keep the copyright notice on the footer of your website current. For example, instead of having to update the year at the beginning of each year, this script will display current year. I'm sure there's an easier way...
2 926 posted 18 years ago by jonhenshaw
A great way to work on website in Mac OS X is to set up a vhost. Doing so is very easy. In System Preferences click on Sharing and then make sure you have Personal Web Sharing turned on. Then, open or create your vhosts.conf file (/private/etc/httpd/...
4 1308 posted 18 years ago by jonhenshaw
This is the general page template that I usually start with. It has all of the essentials (along with a favicon link - not essential).
29 5205 posted 18 years ago by jonhenshaw
1 2 Next »