今日闲来无事自己写了个图片滚动: 源码: <html><head> <meta charset="utf-8"/> <script type="text/javascript"> var content; var borderStyle; var n=0; var intervalN; function up() { var borderStyleHeight=borderStyle.offsetHei
一 ,var dataArr = []; var data = new Date(); var year = data.getFullYear(); data.setMonth(data.getMonth()+1, 1)//获取到当前月份,设置月份 for (var i = 0; i < 12; i++) { data.setMonth(data.getMonth() - 1);//每次循环一次 月份值减1 var m = data.getMonth() + 1; m = m < 10 ? &