$ (function () {
$ (' HTML *:not (#btn_helper_) '). Click (function (e) {
Hepler = false;
$ ("HTML"). CSS ({cursor: "url ('), Auto"});
E.stoppropagation ();
});
$ ("#btn_helper_"). Click (function (e) {
$ ("HTML"). CSS ({cursor: "url (' images/bangzhu.cur '), Auto"});
Hepler = true;
E.stoppropagation ();
});});
$ (". submenu a"). Hover (function () {
if (Hepler = = True)
$ (this). CSS ({cursor: "url (' images/bangzhu.cur '), Auto"});
else {
$ (this). CSS ({cursor: "pointer"});
}});
$ (". submenu a"). Click (function () {
if (Hepler = = False) {
$ ("IMG", $ (". Action"). Parent ()). each (function (i, O) {
var o = $ (o);
var url = $ (o). attr ("src");
url = url.replace ("C.png", ". png");
$ (O). attr ("src", url);
});
$ ('. submenu a '). Removeclass (' action ');
$ (this). addclass (' action ');
var img = $ ("img", $ (this). Parent ()). EQ (0);
var url = img.attr ("src");
Used to fix the picture disappear due to the operation process if the browser first triggers hover will add c.png point click After. png will be replaced with C.png eventually becomes cc.png and the icon does not exist and disappears
if (Url.indexof ("C.png") < 0)
url = Url.replace (". png", "c.png");
Img.attr ("src", url);
} else {
After you get the menu ID, you should get the appropriate help on this ID. Don't delete it.
Alert ("hehe" +$ (this). Parent (). attr ("OnClick"). Split (', ') [2]);
var content;
var t = $ (this). FIND ("span"). HTML ();
var menuId = "";
try {
MenuId = parseint (this). Parent (). attr ("OnClick"). Split (', ') [2].replace ("'", "")];
} catch (e) {
MenuId = $ (this). Parent (). attr ("MenuId");
}
$.post ("Index2.aspx?_method=getmenucontent", {Menuid:menuid}, function (data) {
content = data;
$ ("#MenuComment"). HTML (content);
$ ("#MenuComment"). Show ();
$ (' #MenuComment '). Window ({
Title:t,
width:820,
HEIGHT:500,
Modal:true,
Closable:true,
Minimizable:false,
Maximizable:true,
Collapsible:true
});
});
$ ("HTML"). CSS ({cursor: "url ('), Auto"});
Hepler = false;
}
});
Click the Help button to change the mouse shape