function show(chkw){
if(chkw >= 500){
chkw = 550;
}else{
chkw = chkw;
}
//alert(chkw);
return chkw;
function WBTB_format1(what,opt)
{
if (opt=="removeFormat")
{
what=opt;
opt=null;
}
WBTB_Composition.focus();
if (opt==null)
{
WBTB_Composition.document.execCommand(what);
}else{
var image = document.createElement("img");
image.src = opt;
alert(image.src);
alert("为什么在这里打出点儿东西,才能出图片?????");
var str1 = " <img src= '"+image.src+" ' width= '"+show(image.width)+" ' >";
var inesertHtml = WBTB_Composition.document.body.innerHTML;
WBTB_Composition.document.body.innerHTML = inesertHtml + str1;
}
WBTB_pureText = false;
WBTB_Composition.focus();
} 我打印这句话alert("为什么在这里打出点儿东西,才能出图片?????");就能显示图片得到图片大小???
if(chkw >= 500){
chkw = 550;
}else{
chkw = chkw;
}
//alert(chkw);
return chkw;
function WBTB_format1(what,opt)
{
if (opt=="removeFormat")
{
what=opt;
opt=null;
}
WBTB_Composition.focus();
if (opt==null)
{
WBTB_Composition.document.execCommand(what);
}else{
var image = document.createElement("img");
image.src = opt;
alert(image.src);
alert("为什么在这里打出点儿东西,才能出图片?????");
var str1 = " <img src= '"+image.src+" ' width= '"+show(image.width)+" ' >";
var inesertHtml = WBTB_Composition.document.body.innerHTML;
WBTB_Composition.document.body.innerHTML = inesertHtml + str1;
}
WBTB_pureText = false;
WBTB_Composition.focus();
} 我打印这句话alert("为什么在这里打出点儿东西,才能出图片?????");就能显示图片得到图片大小???
解决方案 »
- hibernate多对多映射中间表如何加入其它字段?
- 为什么已经设置了reloadable="true",修改jsp还是需要重启tomcat才能生效?
- 在循环遍历中如何用session对每一个字段传值
- 关于MVC模式下的框架问题
- jsp
- 配置JBuilder2005和tomcat5.0集成方法的步骤
- 如何在客户端浏览器上获得当前windows的登陆名并显示,在线等待。。。。
- 请问谁用过jxl.jar这个包对EXCEL文件进行读写?
- 请问tomcat4.1+iis5.0如何整合?
- 从 Ms Sql Server 2000 中读出 text类型的数据,最好有源程序 (在线等待) ,我是用jsp
- 请问javascript中可以屏蔽某些键盘按键吗?怎么屏蔽?
- 页面跳转失败
我不太明白你是什么意思,你最好说清楚出现了什么情况,你不明白什么?
image.src = opt;
alert(image.src);
alert("为什么在这里打出点儿东西,才能出图片?????");
var str1 = " <img src= '"+image.src+" ' width= '"+show(image.width)+" ' >";
var inesertHtml = WBTB_Composition.document.body.innerHTML;
WBTB_Composition.document.body.innerHTML = inesertHtml + str1; 主要在 alert 这里。 我要注销掉 就显示不出来图片。注销掉得到的width就是0;
不注销反而能够得到图片的大小