是可以的
建立一个CSS文档
之后复制文本保存
Forguncy.Page.bind('Loaded', null, function () {
$("[fgcname='treebar']").css("display", "block");
$("[fgcname='treebar']").css("z-index", "999");
$("[fgcname='treebar']").mouseleave(function () {
$("[fgcname='treebar']").animate({ left: "0px", width: "0px" }, 500);
});
var value = parseFloat($("[fgcname='treebar']").height());
var readmore = document.createElement('div');
readmore.setAttribute('id', 'toucharea');
readmore.style.width = "20px";//这里可以设置,数值越大,那么鼠标就不用那么靠近最左侧就可以呼出菜单
readmore.style.height = '100%';
readmore.style.zIndex = '9';
readmore.style.position = "absolute";
readmore.style.display = "block";
readmore.style.left = '0px';
readmore.style.top = '0px';
readmore.style.background = 'rgba(5,15,55,0)';
readmore.onmouseover = function () {
$("[fgcname='treebar']").animate({ left: "0px", width: "200px" }, 500);
};
$("[fgcname='treebar']").after(readmore);
$("#toucharea").after("<div id='toucharea1' style='width: 20px;color: coral;z-index:9999;height: 20px;position: absolute;left: 0px;top: 300px;font-size: 16px;vertical-align: middle;text-align: center;'>></div>");
setInterval(() => {
$("#toucharea1").toggle();
}, 400);
}, "*");
|