phpoashisheng/Edit/editor/img.htm
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>插入图片</title>
<style type="text/css">
body, td, span, div, input {
font-size: 12px;
font-family: "宋体", "Courier New", Courier, monospace;
margin: 0px;
}
</style>
<script language="JavaScript">
<!--
window.isIE = (navigator.appName == "Microsoft Internet Explorer");
if(window.isIE) {
if(navigator.userAgent.indexOf("Opera")>-1) window.isIE = null;
}
else {
if(navigator.userAgent.indexOf("Gecko")==-1) window.isIE = null;
}
function $(sID) {
return document.getElementById(sID);
}
function adjustDialog(){
var w = $("tabDialogSize").offsetWidth + 6;
var h = $("tabDialogSize").offsetHeight + 25;
window.dialogLeft = (screen.availWidth - w) / 2;
window.dialogTop = (screen.availHeight - h) / 2;
}
window.onload = init;
function init () {
adjustDialog();
//$("imgpath").select();
}
function LoadIMG(imgpath){
var editor = window.dialogArguments.EDiaryEditor;
var oRTE = editor.iframe.contentWindow;
var html = "<img src='" + imgpath + "'>";
if(window.isIE) {
try{
oRTE.focus();
var oRng = oRTE.document.selection.createRange();
oRng.pasteHTML(html);
oRng.collapse(false);
oRng.select();
}
catch(e){}
}
else {
editor.runCMD('insertHTML', html);
}
window.close();
}
function chk_imgpath () {
if($('radio1').checked==true){
if($("imgpath").value == "http://" || $("imgpath").value == "") {
window.close();
return;
}
LoadIMG($("imgpath").value);
后面还有 51 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
