function pic()
{if (!validateMode()) return;
message.focus();
var range =message.document.selection.createRange();
var arr = showModalDialog("pic.asp", "", "dialogWidth:26.5em; dialogHeight:13em; status:0;help:0");
if (arr != null){
str1=str1+" border=0 align='"+e+"'>
var ss;
ss=arr.split("*")
a=ss[0];
b=ss[1];
c=ss[2];
d=ss[3];
e=ss[4];
f=ss[5];
var str1;
str1=""
str1=str1+"
"+d+"
form1.PicUrl.value=a;
form1.PicList.options[form1.PicList.length] = new Option(a,a);
range.pasteHTML(str1);
}
else message.focus();
}
<img class=None onmousedown="Check(this,2)" onmouseover="Check(this,1)" onmouseout="Check(this,0)" onmouseup="Check(this,1)" src="images/image.gif" align="absmiddle" border="0" style="cursor:hand;" alt="插入网上图片,支持格式为:gif、jpg、png、bmp" lANGUAGE="javascript" onclick="pic()">
点击图片无法弹出插入图片对话框!?