tags:

views:

62

answers:

1

Like what you see when following this link:

link text

It's cool!

+2  A: 

That is done with jQuery. It's basically just animating the background color of the div itself. Assuming the background color of the div is set to orange to begin with:

$(".specialDiv").animate({ backgroundColor: '#ffffff' }, 1000);

As for setting the bg to orange to begin with, this is likely done as a result of the hash value in the URL. You can get that value with window.location.hash

Source: http://docs.jquery.com/Release%3AjQuery%5F1.2/Effects#Color%5FAnimations

Jonathan Sampson
Can you be more specific?
Misier
Note that you'll need an additional plugin to animate colors.
J-P
Color animations are covered here: http://docs.jquery.com/Release:jQuery_1.2/Effects#Color_Animations
Jonathan Sampson
Great,but it's a pity location.hash can't be used by server side,otherwise I'll import this plugin only when there is #...
Misier