|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- var $ = jQuery;
- var thespeed = 5;
- var navIE = document.all && navigator.userAgent.indexOf("Firefox") == -1;
- var myspeed = 0;
- $(function () {
-
-
- bindQuickMenu();
-
-
- LeftMenuToggle();
-
-
- AllMenuToggle();
-
-
- $(".head").find("a").click(function () { $(this).blur() });
- $(".menu").find("a").click(function () { $(this).blur() });
-
-
- }).keydown(function (event) {
- if (event.keyCode == 116) {
-
-
-
- }
- if (event.keyCode == 27) {
- $("#qucikmenu").slideToggle("fast")
- }
- });
-
- function bindQuickMenu() {
- $("#ac_qucikmenu").bind("mouseenter", function () {
- $("#qucikmenu").slideDown("fast");
- }).dblclick(function () {
- $("#qucikmenu").slideToggle("fast");
- }).bind("mouseleave", function () {
- hidequcikmenu = setTimeout('$("#qucikmenu").slideUp("fast");', 700);
- $(this).bind("mouseenter", function () { clearTimeout(hidequcikmenu); });
- });
- $("#qucikmenu").bind("mouseleave", function () {
- hidequcikmenu = setTimeout('$("#qucikmenu").slideUp("fast");', 700);
- $(this).bind("mouseenter", function () { clearTimeout(hidequcikmenu); });
- }).find("a").click(function () {
- $(this).blur();
- $("#qucikmenu").slideUp("fast");
-
- });
- }
-
- function LeftMenuToggle() {
- $("#togglemenu").click(function () {
- if ($("body").attr("class") == "showmenu") {
- $("body").attr("class", "hidemenu");
- $(this).html("显示菜单");
- } else {
- $("body").attr("class", "showmenu");
- $(this).html("隐藏菜单");
- }
- });
- }
-
-
- function AllMenuToggle() {
- mask = $(".pagemask,.iframemask,.allmenu");
- $("#allmenu").click(function () {
- mask.show();
- });
-
- mask.click(function () { mask.hide(); });
- }
-
- function AC(act) {
-
- mlink = $("a[id='" + act + "']");
- if (mlink.size() > 0) {
- box = mlink.parents("div[id^='menu_']");
- boxid = box.attr("id").substring(5, 128);
- if ($("body").attr("class") != "showmenu") $("#togglemenu").click();
- if (mlink.attr("_url")) {
- $("#menu").find("div[id^=menu]").hide();
- box.show();
- mlink.addClass("thisclass").blur().parents("#menu").find("ul li a").not(mlink).removeClass("thisclass");
- if ($("#mod_" + boxid).attr("class") == "") {
- $("#nav").find("a").removeClass("thisclass");
- $("#nav").find("a[id='mod_" + boxid + "']").addClass("thisclass").blur();
- }
- main.location.href = mlink.attr("_url");
- } else if (mlink.attr("_open") && mlink.attr("_open") != undefined) {
- window.open(mlink.attr("_open"));
- }
- }
- }
-
-
-
- function scrollwindow() {
- parent.frames['menu'].scrollBy(0, myspeed);
- }
-
- function initializeIT() {
- if (myspeed != 0) {
- scrollwindow();
- }
- }
-
-
-
-
-
-
-
|