I Am One Man

Web designer & developer residing in Rochester, England with an RSS Feed

Archive for the ‘Code’ Category

Force Refresh on New Cached Files

Just refresh your browser, of clear your cache. I’ve heard these words at work so much that it got me thinking. If we’re having to tell clients to refresh, how are their views going to know? What if there was a way to force a new download of a file that’s cached locally in the [...]

Opaque Colours in IE

In all good browsers, we can use RGBA to create a transparent colour. For example, the following would create a 50% transparent white. background: rgba(255,255,255,0.5); The following would get it working in IE, 6 7 and 8. background:transparent; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#50ffffffendColorstr=#50ffffff); zoom: 1; More info here; http://leaverou.me/2009/02/bulletproof-cross-browser-rgba-backgrounds/ Cool, yeah?

WordPress Short Links

This is a super quick and (i think) the best way to add short links to your WordPress powered blog. <a href="<?php bloginfo(‘url’); ?>?p=<?php echo $post->ID; ?>"><small>#</small></a> Explained All this does is gets your blogs URL and adds the posts ID after the ?p= bit. WordPress can tell if you have pretty URLs and will [...]