Are you using CSS or Javascript to change the colours. If you're using CSS transitions I think there's a way to detect the end of the transition movement.
Using a timer I would probably put a flag on to the second div on hover. When the first has finished it's transition and the flag for the second exists call the second transition. If I wanted to do this to a number of divs I would create an array of the hovered divs. Probably something like
Code:
this.onmouseover=function(){
hoverOrder[hoverOrder.length]=this.id;
}
As I get to the end of the transition for the previous in the array I'd check a next exists. If it doesn't, clear the array and start again on the next initial hover.
Bookmarks