1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-04 02:09:23 +02:00

some minor tweakage to make ajaxie stuff kind of work in IE

This commit is contained in:
Karl 'vollmerk' Vollmer 2007-07-17 05:11:53 +00:00
parent 04cd880273
commit ea624090bc
11 changed files with 3369 additions and 48 deletions

View file

@ -98,20 +98,3 @@ function popup_art(url) {
newwindow=window.open(url, "ampache_art", "menubar=no,toolbar=no,location=no,directories=no");
if (window.focus) {newwindow.focus()}
}
// function needed for IE. attaches mouseover/out events to give/remove css class .sfhover (fake hover)
sfHover = function(navlist) {
var sfEls = document.getElementById("navlist").getElementsByTagName("LI");
for (var i=0; i <sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp("sfhover\\b"), "");
}
} // end for
} // end function for sfHover
if (window.attachEvent) window.attachEvent("onload", sfHover);