Discuz.Web/space/javascript/editbar.js
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var waitinghint = '<div style="width: 200px;">加载中...</div>';
function _DS_popup(event, id)
{
var popupmenu = _gel("DD_" + id), sender = _gel("DD_tg_" + id), owner = _gel("DS_DD_div");
if(popupmenu.style.display == "none")
{
var pos = _findPos(sender);
popupmenu.style.display = "block";
var width = popupmenu.offsetWidth;
popupmenu.style.left = pos[0] + sender.offsetWidth / 2 - width / 2;
popupmenu.style.top = pos[1] + sender.offsetHeight;
ds_p = id;
}
}
function createDIV(divname){
var div = document.createElement("DIV");
div.id = divname;
div.style.display = "none";
div.className = "NavBig";
div.innerHTML = waitinghint;
_gel("DS_DD_div").appendChild(div);
}
function initThemes(){
createDIV("DD___theme");
}
function _toggleById(id) {
a = _gel(id);
if (a.style.display == "" || a.style.display == "block") {
a.style.display = "none"
}else if (a.style.display=="none") {
a.style.display = "block"
}
}
function loadThemes(){
closeAll();
var url = window.location.protocol + "//" + window.location.host + forumpath + "ss.aspx?type=theme";
var div = _gel("DD___theme");
div.style.display = "block";
_DS_FetchLocalXmlContent(url, function (response) {
if (response == null || typeof(response) != "object" || response.firstChild == null)
{
div.innerHTML = "无效的数据";
return;
}
var html = '<div class="NavTopic">';
html += ' <div class="NavTitle">';
html += ' <div class="Nright"><img src="' + forumpath + 'images/clear.gif" onclick="closeAll()" alt="关闭" title="关闭" style="margin-top:6px;"/></div>';
html += ' <div class="Nleft"><span>设置主题</span></div>';
html += ' </div>';
var categorys = response.getElementsByTagName("Category");
if (categorys.length == 0)
{
div.innerHTML = "暂时没有数据";
return;
}
后面还有 200 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
