function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
oldonload();
func();
}
}
}
function linkTabs() {
if(!document.getElementById("top_tabs")) return false;
var topTabs = document.getElementById("top_tabs");
var topTabsLi = topTabs.getElementsByTagName("li");
for (var i = 0; i < topTabsLi.length; i++) {
topTabsLi[i].onmouseover = function() {
this.style.cursor = "pointer";
}
topTabsLi[i].onclick = function() {
return linkThis(this);
}
}
}
function linkThis(whichLink) {
window.location = whichLink.getElementsByTagName("a")[0].getAttribute("href");
}
addLoadEvent(linkTabs);
-
Recent Posts
- Feb 11, ’12 atxryan: RT @matthewcrist: Contractor has offered us $500 for positive Angie’s List reviews. This must be why every A+ company we’ve hired from t …
- Feb 11, ’12 atxryan: @pamelafox I’ve used it to store and quickly load product data in catalog browsing. What were your two interesting discoveries?
- Feb 10, ’12 atxryan: @amcclosky That looks promising. Where is that? It looks like the hideout behind the sign.
- Feb 10, ’12 atxryan: @BaldMan @BarCampATX I concur! I’d love to discuss at Tuesday’s @RefreshAustin.
- Feb 10, ’12 Untitled (http://i.imgur.com/Lus4Y.png)
-
More Info
