Monday, July 11, 2011

New Zealand's Latest News, Business, Sport, Weather, Travel, Technology, Entertainment, Politics, Finance, Health, Environment and Science

NZ Herald Opinion

Surely National Radio giving Maori only 0.1 per cent of the programming time requires…

Traffic Update

Auckland

"); } $.each(road.directions, function(direction, stat) { var level = stat.level.toLowerCase().replace(' ', ''); if (direction.toLowerCase() == 'citybound') { var dir = 'right'; } else { var dir = 'left'; } var $div = $("

" + direction + " " + stat.name + ": " + stat.level + "

"); $('#trafficcontent').append($div); }); // set cookie so this tab is remembered when we come back $.cookie('traffic',road.abbrev,{expires:365}); }); // if nothing is selected yet select the first tab, otherwise see if we can match the cookie if (road.abbrev == $.cookie('traffic')){ selected_li = $li; } $('#traffictabs').append($li); }); // end of closure / loop // if something was selected via cookie then click it if (selected_li) { selected_li.click(); // otherwise pick something random } else { var tabs = $('#traffictabs li') var index = Math.floor(Math.random() * (tabs.length)); $(tabs[index]).click(); $.cookie('traffic',null); } });

Herald Commercial Property

No comments:

Post a Comment

Search This Blog