第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

輪播圖 瀏覽器崩潰問(wèn)題

輪播圖 瀏覽器崩潰問(wèn)題

AidanDai 2014-12-15 10:05:02
< script type = "text/javascript" > window.onload = function() { ? ?var width = window.screen.width; ? ?var container = document.getElementById('container'); ? ?var list = document.getElementById('list'); ? ?var buttons = document.getElementById('buttons'); ? ?var span = document.getElementsByTagName('span'); ? ?var img = document.getElementsByTagName('img'); ? ?var height = img[0].height; ? ?var prev = document.getElementById('prev'); ? ?var next = document.getElementById('next'); ? ?var len = 4; ? ?var index = 1; ? ?var animated = false; ? ?var interval = 3000; ? ?var timer; ? ?container.style.width = width + 'px'; ? ?container.style.height = height + 'px'; ? ?img[0].style.width = width + 'px'; ? ?img[1].style.width = width + 'px'; ? ?img[2].style.width = width + 'px'; ? ?img[3].style.width = width + 'px'; ? ?img[4].style.width = width + 'px'; ? ?img[5].style.width = width + 'px'; ? ?list.style.width = 6 * width + 'px'; ? ?list.style.left = -width + 'px'; ? ?buttons.style.left = (width - 124) / 2 + 'px'; ? ?buttons.style.top = (height - 80) + 'px'; ? ?function sho_button() { ? ? ? ?for (var i = 0; i < span.length; i++) { ? ? ? ? ? ?if (span[i].className == 'on') { ? ? ? ? ? ? ? ?span[i].className = ''; ? ? ? ? ? ? ? ?break ? ? ? ? ? ?} ? ? ? ?} ? ? ? ?span[index - 1].className = "on" ? ?} ? ?function animate(offset) { ? ? ? ?animated = true; ? ? ? ?var time = 900; ? ? ? ?var inteval = 20; ? ? ? ?var speed = offset / (time / inteval); ? ? ? ?var newleft = parseInt(list.style.left) + offset; ? ? ? ?function go() { ? ? ? ? ? ?if ((speed < 0 && parseInt(list.style.left) > newleft) || (speed > 0 && parseInt(list.style.left) < newleft)) { ? ? ? ? ? ? ? ?list.style.left = speed + parseInt(list.style.left) + 'px'; ? ? ? ? ? ? ? ?setTimeout(go, inteval) ? ? ? ? ? ?} else { ? ? ? ? ? ? ? ?animated = false; ? ? ? ? ? ? ? ?list.style.left = newleft + 'px'; ? ? ? ? ? ? ? ?var left = parseInt(list.style.left); ? ? ? ? ? ? ? ?if (left > -width) { ? ? ? ? ? ? ? ? ? ?var new_left = -width * len list.style.left = new_left + 'px' ? ? ? ? ? ? ? ?} ? ? ? ? ? ? ? ?var new_left = -width * len ? ? ? ? ? ? ? ?if (left < new_left) { ? ? ? ? ? ? ? ? ? ?list.style.left = -width + 'px' ? ? ? ? ? ? ? ?} ? ? ? ? ? ?} ? ? ? ?} ? ? ? ?go() ? ?} ? ?next.onclick = function() { ? ? ? ?if (animated) { ? ? ? ? ? ?return ? ? ? ?} ? ? ? ?if (index == 4) { ? ? ? ? ? ?index = 1 ? ? ? ?} else { ? ? ? ? ? ?index += 1 ? ? ? ?} ? ? ? ?sho_button(); ? ? ? ?if (!animated) { ? ? ? ? ? ?animate( - width) ? ? ? ?} ? ?} ? ?prev.onclick = function() { ? ? ? ?if (animated) { ? ? ? ? ? ?return ? ? ? ?} ? ? ? ?if (index == 1) { ? ? ? ? ? ?index = 4 ? ? ? ?} else { ? ? ? ? ? ?index -= 1 ? ? ? ?} ? ? ? ?sho_button(); ? ? ? ?if (!animated) { ? ? ? ? ? ?animate(width) ? ? ? ?} ? ?} ? ?for (var i = 0; i < span.length; i++) { ? ? ? ?span[i].onclick = function() { ? ? ? ? ? ?if (animated) { ? ? ? ? ? ? ? ?return ? ? ? ? ? ?} ? ? ? ? ? ?if (this.className == 'on') { ? ? ? ? ? ? ? ?return ? ? ? ? ? ?} ? ? ? ? ? ?var myIndex = parseInt(this.getAttribute('index')); ? ? ? ? ? ?var offset = -width * (myIndex - index); ? ? ? ? ? ?if (!animated) { ? ? ? ? ? ? ? ?animate(offset) ? ? ? ? ? ?} ? ? ? ? ? ?index = myIndex; ? ? ? ? ? ?sho_button() ? ? ? ?} ? ?} ? ?function play() { ? ? ? ?timer = setInterval(function() { ? ? ? ? ? ?next.onclick(); ? ? ? ? ? ?play() ? ? ? ?}, ? ? ? ?3000) ? ?} ? ?function stop() { ? ? ? ?clearInterval(timer) ? ?} ? ?container.onmouseover = stop; ? ?container.onmouseout = play; ? ?play()} < /script>/
查看完整描述

目前暫無(wú)任何回答

  • 0 回答
  • 0 關(guān)注
  • 1946 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)