Posts Tagged ‘javascript’

Feb 12, 2010

Browser pong!

Play a bit of pong with browser windows! It doesn't seem to work in Safari though :( and you'll need to turn your popup blocker off.

Feb 6, 2010

The iPad, HTML 5 and Flash

The recent release of the iPad and the decision by Apple not to include the flash plug-in on the device has triggered masses of debate in twitter, blogs and on a much smaller stage, the MadeByPi office.  The debate has been about both the validity of Apple's decision and the wider subject future of flash itself as part of the web now that the HTML 5 specification is starting to cover areas where flash has been the default tool.  (more...)

Jan 19, 2010

Nonsecure items in IE (Solved!)

We recently came across an issue when creating a site with SSL plugged in that in Internet Explorer we were getting the good ol' "This page contains both secure and nonsecure items." popup. It took us a good long while before we finally realised what it was... Fancybox!

(more...)

Mar 19, 2009

New Javascript Engines and Silverlight 3.0

There is some serious competition mounting now for development platforms the next generation of RIA will be built with.  Flash and ajax/javascript  are well established currently with  ajax/javascript leading in terms of availability and Flash in terms of creative presentation and performance.  (more...)

Mar 11, 2009

Scope in javascript

I've seen quite a few different methods for retaining scope when calling a method in javascript. I mixed a few of my favourite methods up into one.
(more...)

Feb 27, 2009

1+1 = 3

Here's a fun little trick that'll frustrate your local friendly coder for 5 minutes.

http://media.madebypi.co.uk/oneplusone/

View the source and try work out why the code is saying "goodbye" instead of "hello".

Answers on the back of a postcard!

Oct 24, 2008

Javascript color manipulation

Recently I needed to write some code which involved matching any given colour against a custom palette of colours. I found it hard to find any decent javascript out there... So I wrote my own.

Introducing: Color Utils

Main features:

  • Convert any colour format to any other colour format
  • Match colours against a custom palette
  • Match colours against a websafe palette
  • Increase/decrease Hue, Saturation and Brightness of a colour
  • Find different colour harmonies for a color
  • Fade from one colour to another
  • Easy to use
  • No dependancies such as prototype or jQuery
  • Small file size. Just 11kb!

Color Utils

Enjoy! http://www.madebypi.co.uk/labs/colorutils/

Sep 10, 2008

jParallax

While undertaking some late night internet browsing I came across an interesting jQuery plugin called jParallax.

The plugin's website describes it best.

"Parallax turns a selected element into a 'window', or viewport, and all its children into absolutely positioned layers that can be seen through the viewport. These layers move in response to the mouse, and, depending on their dimensions (and options for layer initialisation), they move by different amounts, in a parallaxy kind of way."

Seeing is definately believing with this plugin, so head on over to their website and see it in action.