You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
1.6 KiB
JavaScript
7 lines
1.6 KiB
JavaScript
6 years ago
|
// JavaScript Document
|
||
|
|
||
|
///2009-07-09 debug
|
||
|
///Created by IMT.
|
||
|
/// Last modified by IMT. use jq 09.09.22
|
||
|
if(typeof $=="function"){$(function(){var j=true;if (!/*@cc_on!@*/0){j=false}var k=document.getElementById("utility");var l=k.getElementsByTagName("li");function createElement(a){var b;var c=a.childNodes[0];var d=c.innerHTML.replace(/ /g,"");var e=document.getElementById(d);if(e){e.style.display="block";e.style.position="absolute";e.style.zIndex=1001;e.style.top=(e.offsetTop-32)+"px";e.style.left=(a.offsetWidth+25)+"px";e.style.width=a.offsetWidth+"px";e.style.display="none";if(j){var f=a.all;var g=parseInt(f.length);var h=true;if(navigator.appName=="Microsoft Internet Explorer"&&navigator.appVersion.match(/MSIE 8./i)!=null){e.attachEvent("onmouseover",function(){hoverevent()});e.attachEvent("onmouseout",function(){HidMenu()})}for(y=0;y<g;y++){if(f[y].tagName=="DIV"){f[y].attachEvent("onmouseover",function(){hoverevent()});f[y].attachEvent("onmouseout",function(){HidMenu()})}if(h&&f[y].tagName=="A"){h=false;f[y].attachEvent("onmouseover",function(){hoverevent()});f[y].attachEvent("onmouseout",function(){HidMenu()})}}}else{a.addEventListener("mouseover",function(){hoverevent()},false);a.addEventListener("mouseout",function(){HidMenu()},false);e.addEventListener("mouseover",function(){hoverevent()},false);e.addEventListener("mouseout",function(){HidMenu()},false)}function hoverevent(){$("#"+d).slideDown(300);if(b){clearTimeout(b);b=null}}function HidMenu(){b=setTimeout("document.getElementById('"+d+"').style.display = 'none';",300)}}}for(i=0;i<l.length;i++){if(l[i].className.replace(/ /g,"")=="subnav"){createElement(l[i])}}})};
|