admin panel fix

This commit is contained in:
Shadow
2014-01-23 14:45:37 +02:00
parent 0ad0951cf8
commit 228227dff2
9 changed files with 317 additions and 140 deletions
+47
View File
@@ -57,6 +57,53 @@ $up_avl = $latest - $ver ;
<meta http-equiv="imagetoolbar" content="no">
</head>
<body>
<script type="text/javascript">
init_local();
function getMouseCoords(e) {
var coords = {};
if (!e) var e = window.event;
if (e.pageX || e.pageY) {
coords.x = e.pageX;
coords.y = e.pageY;
}
else if (e.clientX || e.clientY) {
coords.x = e.clientX + document.body.scrollLeft
+ document.documentElement.scrollLeft;
coords.y = e.clientY + document.body.scrollTop
+ document.documentElement.scrollTop;
}
return coords;
}
function med_mouseMoveHandler(e, desc_string){
var coords = getMouseCoords(e);
med_showDescription(coords, desc_string);
}
function med_closeDescription(){
var layer = document.getElementById("medal_mouseover");
layer.className = "hide";
}
function init_local(){
med_init();
}
function med_init(){
layer = document.createElement("div");
layer.id = "medal_mouseover";
layer.className = "hide";
document.body.appendChild(layer);
}
function med_showDescription(coords, desc_string){
var layer = document.getElementById("medal_mouseover");
layer.style.top = (coords.y + 25)+ "px";
layer.style.left = (coords.x - 20) + "px";
layer.className = "";
layer.innerHTML = desc_string;
}
</script>
<script language="javascript">
function aktiv() {this.srcElement.className='fl1'; }
function inaktiv() {event.srcElement.className='fl2'; }