var myScroll;
function loaded() {
myScroll = new iScroll('wrapper', {
snap: true,
momentum: false,
hScrollbar: false,
onScrollEnd: function () {
document.querySelector('#indicator > li.active').className = '';
document.querySelector('#indicator > li:nth-child(' + (this.currPageX+1) + ')').className = 'active';
}
});
setInterval(function(){
myScroll.scrollToPage('next', 0,400,0);
},3500 );
}
document.addEventListener('DOMContentLoaded', loaded, false);
#scroller {
width:0px;
}
echo htmlspecialchars_decode(C('copyright'))
window.shareData = {
"moduleName":"Index",
"moduleID": '0',
"imgUrl": "{pigcms:$homeInfo.picurl}",
"timeLineLink": "{pigcms::C('site_url')}{pigcms::U(Index/ACTION_NAME,array('token'=>$_GET['token']))}",
"sendFriendLink": "{pigcms::C('site_url')}{pigcms::U(Index/ACTION_NAME,array('token'=>$_GET['token']))}",
"weiboLink": "{pigcms::C('site_url')}{pigcms::U(Index/ACTION_NAME,array('token'=>$_GET['token']))}",
"tTitle": "{pigcms:$homeInfo.title}",
"tContent": "{pigcms:$homeInfo.info}"
};
window.shareData = {
"moduleName":"Index",
"moduleID": '1',
"imgUrl": "{pigcms:$homeInfo.picurl}",
"timeLineLink": "{pigcms::C('site_url')}{pigcms::U(Index/ACTION_NAME,array('token'=>$_GET['token'],'classid'=>$_GET['classid']))}",
"sendFriendLink": "{pigcms::C('site_url')}{pigcms::U(MODULE_NAME/ACTION_NAME,array('token'=>$_GET['token'],'classid'=>$_GET['classid']))}",
"weiboLink": "{pigcms::C('site_url')}{pigcms::U(MODULE_NAME/ACTION_NAME,array('token'=>$_GET['token'],'classid'=>$_GET['classid']))}",
"tTitle": "{pigcms:$homeInfo.title}",
"tContent": "{pigcms:$homeInfo.info}"
};
{pigcms:$shareScript}
一键复制
编辑
Web IDE
原始数据
按行查看
历史