盘诺云霓 2016-01-15 08:30 采纳率: 0%
浏览 1527

firefox中 onclick="pic()"怎么不能执行?

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){
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+"

"+b+" str1=str1+" border=0 align='"+e+"'>


"+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()">

点击图片无法弹出插入图片对话框!?

  • 写回答

2条回答 默认 最新

  • repeatedly 2016-01-15 09:02
    关注

    onclick="pic();"

    评论

报告相同问题?

悬赏问题

  • ¥15 Python爬取指定微博话题下的内容,保存为txt
  • ¥15 vue2登录调用后端接口如何实现
  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?