盘诺云霓 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();"

    评论

报告相同问题?

悬赏问题

  • ¥50 树莓派安卓APK系统签名
  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥15 state显示变量是字符串形式,但是仍然红色,无法引用,并显示类型不匹配
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波