Archive for December, 2009

PolarClock3 for Snow Leopard


I’ve had some time this morning to wrap the screensaver up in something other than screentime, and it all works perfectly for me. My first delve into Cocoa. Thanks Si Heys for the code I needed for this.

Please have a go and let me know if it works ok on Snow Leopard, and also older OSes, if there’s problems, comment here, and I’ll try and rectify any issues.

You can download it here.

jQuery plugins coming soon.


Pretty soon, I’ll be releasing two plugins for jQuery.

They are re-writes of my current javascript extensions to SWFObject. One for full browser flash with a minimum width and height. And an updated version of the MouseWheel enabler for Macs.

I’ve gone for jQuery as I’ve been using it a fair bit recently with jQuery SWFObject, and it’s super easy to work with.

Here’s an example of a full browser flash object, with a minimum width/height. The best thing being that there is no requirement for fiddly CSS to make the full browser view work, the CSS is all implemented by jQuery!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$(document).ready(function () 
{
	// add an extra class to the <body> element for JS-only styling
	$("body").addClass("js");
 
	$.flash.expressInstaller = '_includes/expressInstall.swf'; 
 
	if( $.flash.hasVersion(9.1) )
	{
		var mainFlash = $.flash.create(
			{   
				swf: 'FlashApplication.swf',
				width: '100%',
				height: '100%',
				id: 'FlashApplicationSwf',
				name: 'FlashApplicationSwf'
			}
		);
		SWFAddress.setId('FlashApplication');
		$('#flashContent').html( mainFlash );
		$('#flashContent').fullFlashMinSize( 800, 600 );
	}		
});