此问题一般出现在文章内容页面上,经多次测试,一般出现问题的页面都包括有图片,且图片的宽度超出文章内容页的表格宽度,页面又没有图片自动适应表格大小的设置!就会出现如下图所示的错误!


解决方法:
1、在文章内容页模板内加入图片无级缩放代码(此代码在官方自带模板内容页中有)。
为何要加这段代码呢?因为一打开网页就会触动鼠标,鼠标如果不经过图片或者不使用鼠标滚轮,错误不会提示!
<script language="javascript" type="text/javascript">
//改变图片大小
function resizepic(thispic)
{
if(thispic.width>700) thispic.width=700;
}
//无级缩放图片大小
function bbimg(o)
{
var zoom=parseint(o.style.zoom, 10)||100;
zoom+=event.wheeldelta/12;
if (zoom>0) o.style.zoom=zoom+'%';
return false;
}
//双击鼠标滚动屏幕的代码
var currentpos,timer;
function initialize()
{
timer=setinterval ("scrollwindow ()",30);
}
function sc()
{
clearinterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrolltop;
window.scroll(0,++currentpos);
if (currentpos !=document.body.scrolltop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize
//更改字体大小
var status0='';
var curfontsize=10;
var curlineheight=18;
function fontzooma(){
if(curfontsize>8){
document.getelementbyid('fontzoom').style.fontsize=(--curfontsize)+'pt';
document.getelementbyid('fontzoom').style.lineheight=(--curlineheight)+'pt';
}
}
function fontzoomb(){
if(curfontsize<64){
document.getelementbyid('fontzoom').style.fontsize=(++curfontsize)+'pt';
document.getelementbyid('fontzoom').style.lineheight=(++curlineheight)+'pt';
}
}
</script>
不需要后面双击滚屏和更改文字大小的话,可以将代码去掉!
2、加入如下代码防止表格被大图片撑破
<table style="table-layout: fixed; word-break: break-all" cellspacing=0 cellpadding=0 width="98%" border=0>
注意以上红色的代码
如果有此问题的朋友不妨试试!
用了以上方法后,能解决因图片过大导致的js错误!各位如果在使用中有其它的新发现,也请回帖说明共享!
让我们一起以实际行动来支持动易!感谢动易开发团队为我们提供这么好的程序!