2# 云天一
高人指点删掉那里呢??
我删了一部分 怎么还是不可以
这是我删的
{
intro = '用一句话记录自己生活中的点点滴滴';
bPosition = '0';
} else if(type == 'mtag') {
intro = '创建自己的小圈子,与大家交流感兴趣的话题';
bPosition = '175px';
} else if(type == 'pic') {
intro = '上传照片,分享生活中的精彩瞬间';
bPosition = '55px';
} else if(type == 'app') {
intro = '与好友一起玩转游戏和游戏,增加好友感情';
bPosition = '118px';
} else {
intro = '马上注册,与好友分享日志、照片,一起玩转游戏';
bPosition = '0';
}
下面是所有的
<div id="network">
<script>
function setintro(type) {
var intro = '';
var bPosition = '';
if(type == 'doing') {
intro = '用一句话记录自己生活中的点点滴滴';
bPosition = '0';
} else if(type == 'mtag') {
intro = '创建自己的小圈子,与大家交流感兴趣的话题';
bPosition = '175px';
} else if(type == 'pic') {
intro = '上传照片,分享生活中的精彩瞬间';
bPosition = '55px';
} else if(type == 'app') {
intro = '与好友一起玩转游戏和游戏,增加好友感情';
bPosition = '118px';
} else {
intro = '马上注册,与好友分享日志、照片,一起玩转游戏';
bPosition = '0';
}
$('guest_intro').innerHTML = intro + '......';
$('guest_intro').style.backgroundPosition = bPosition + ' 100%'
}
function scrollPic(e, LN, Width, Price, Speed) {
id = e.id;
if(LN == 'Last'){ scrollNum = Width; } else if(LN == 'Next'){ scrollNum = 0 - Width; }
scrollStart = parseInt(e.style.marginLeft, 10);
scrollEnd = parseInt(e.style.marginLeft, 10) + scrollNum;
MaxIndex = (e.getElementsByTagName('li').length / Price).toFixed(0);
sPicMaxScroll = 0 - Width * MaxIndex;
if(scrollStart == 0 && scrollEnd == Width){
scrollEnd = -1806;
e.style.marginLeft = parseInt(e.style.marginLeft, 10) - Speed + 'px';
} else if(scrollStart == sPicMaxScroll + Width && scrollEnd == sPicMaxScroll){
scrollEnd = 0;
e.style.marginLeft = parseInt(e.style.marginLeft, 10) + Speed + 'px';
}
scrollShowPic = setInterval(scrollShow, 1);
function scrollShow() {
if(scrollStart > scrollEnd) {
if(parseInt(e.style.marginLeft, 10) > scrollEnd) {
$(id + '_last').onclick = function(){ return false; };
$(id + '_next').onclick = function(){ return false; };
e.style.marginLeft = parseInt(e.style.marginLeft, 10) - Speed + 'px';
} else {
clearInterval(scrollShowPic);
$(id + '_last').onclick = function(){ scrollPic(e, 'Last', Width, Price, Speed);return false; };
$(id + '_next').onclick = function(){ scrollPic(e, 'Next', Width, Price, Speed);return false; };
}
} else {
if(parseInt(e.style.marginLeft, 10) < scrollEnd) {
$(id + '_last').onclick = function(){ return false; };
$(id + '_next').onclick = function(){ return false; };
e.style.marginLeft = parseInt(e.style.marginLeft, 10) + Speed + 'px';
} else {
clearInterval(scrollShowPic);
$(id + '_last').onclick = function(){ scrollPic(e, 'Last', Width, Price, Speed);return false; };
$(id + '_next').onclick = function(){ scrollPic(e, 'Next', Width, Price, Speed);return false; };
}
}
}
} |