搜索

大哥!你的19模板已经安装,现有个页面问题要你帮忙指点

[复制链接]
artery 发表于 2010-6-5 17:13 | 显示全部楼层

大哥!你的19模板已经安装,现有个页面问题要你帮忙指点啊

发五篇带有图片附件的精华文章,更新缓存。
 楼主| gzedu88 发表于 2010-6-5 12:35 | 显示全部楼层 |阅读模式
安装后 浏览首页时在浏览器左下方出现:“网页有错误(双击浏览详细信息)” ,打开后指定:
“行: 26

字符: 4

错误: \'undefined\' 为空或不是对象

代码: 0

URL: <!-- m --><a class=\"postlink\" target=\"_blank\" href=\"http://web0527595.1g2.badudns.cc/bbs/images/artery_free19_images/hd.js\">http://web0527595.1g2.badudns.cc/bbs/im ... ages/hd.js</a><!-- m -->”


打开hd.js。代码function $(s){
return document.getElementById(s);
}
var B=BigNews={
current:0,
next:0,
scrollInterval:0,
autoScroller:0
};
BigNews.turn=function(index){
clearInterval(BigNews.autoScroller);
BigNews.scroll(index);
}
BigNews.scroll=function(index){
var count=0;
var step=217;
var duration=16;
var b=BigNews;
b.next=index;
if(index!=b.current&&count>duration/8){
   return;
}
clearInterval(b.scrollInterval);
var items=$(\'iiiyx_hd_item\').getElementsByTagName(\'li\');
for(var i=0;i<5;i++){
   items.className=\'\';}
items[index].className=\'up\';
var span=index-b.current;
var begin_value=$(\'iiiyx_hd_img\').scrollTop;
var chang_in_value=span*step+(b.current*step-begin_value);
b.scrollInterval=setInterval(function(){doit(begin_value,chang_in_value)},10);
function doit(b,c){
   $(\'iiiyx_hd_img\').scrollTop=cpu(count,b,c,duration);
   count++;
   if(count==duration){
    clearInterval(BigNews.scrollInterval);
    scrollInterval=0;
    count=0;
    $(\'iiiyx_hd_img\').scrollTop=b+c;
    BigNews.current=index;
   }
}
function cpu(t,b,c,d) {return c*((t=t/d-1)*t*t+1)+b;};
}
BigNews.auto=function(){
clearInterval(BigNews.scrollInterval);
BigNews.autoScroller=setInterval(function(){
   BigNews.scroll(BigNews.current==4?0:BigNews.current+1);
},3000);
}
window.attachEvent(\'onload\',BigNews.auto);如下:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|邮箱联系|QQ交谈|THEME club ™

GMT+8, 2024-4-19 17:14 , Processed in 0.022668 second(s), 20 queries .

Powered by Discuz! X3.4  © 2001-2013 Comsenz Inc.

Designed by ARTERY.cn

快速回复 返回顶部 返回列表