Discuz.Web/javascript/template_spaceblog.js
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
function InsertHTML(content)
{
if(content.indexOf('.jpeg')>0||content.indexOf('.jpg')>0||content.indexOf('.gif')>0||content.indexOf('.png')>0)
{
content = "<img src=\""+content+"\" border='0' /><br />\r\n";
}
else if(content.indexOf('.swf')>0)
{
content = "<embed src=\""+content+"\" width=\"100\" height=\"100\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" play=\"true\" loop=\"true\" menu=\"true\"></embed>";
}
else
{
content = "<a href='" + content + "'>" + content + "</a>";
}
dntEditor.InsertText( content ) ;
}
function checkBlog()
{
// PrepareSave();
if(document.getElementById('title').value == "")
{
alert('文章标题不能为空');
document.getElementById('title').focus();
return false;
}
if (document.getElementById('blogtexteditor').value == "")
{
alert('文章内容不能为空');
return false;
}
return true;
}
function getposition(obj)
{
var r = new Array();
r['x'] = obj.offsetLeft;
r['y'] = obj.offsetTop;
while(obj = obj.offsetParent)
{
r['x'] += obj.offsetLeft;
if(navigator.appName.indexOf('Explorer') > -1)
{
r['y'] += obj.offsetTop;
}
else
{
r['y'] += obj.offsetTop;
}
}
return r;
}
function hideimage(imgid)
{
document.getElementById(imgid).style.display = "none";
}
function showimage(imgid)
{
后面还有 7 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
