jquery天空白云飄動特效代碼

jquery天空白云飄動特效代碼1359
// Cloud Float...var $main = $cloud = mainwidth = null;var offset1 = 450;var offset2 = 0;var offsetbg = 0;$(document).ready(	function () {		$main = $("#mainBody");		$body = $("body");		$cloud1 = $("#cloud1");		$cloud2 = $("#cloud2");		mainwidth = $main.outerWidth();  	});/// 飄動setInterval(function flutter() {	if (offset1 >= mainwidth) {		offset1 =  -580;	}	if (offset2 >= mainwidth) {		 offset2 =  -580;	}	offset1 += 1.1;	offset2 += 1;	$cloud1.css("background-position", offset1 + "px 30px")		$cloud2.css("background-position", offset2 + "px 340px")}, 70);/*setInterval(function bg() {	if (offsetbg >= mainwidth) {		offsetbg =  -580;	}	offsetbg += 0.6;	$body.css("background-position", -offsetbg + "px 0")}, 90 );*/

也許你還喜歡

乱码理论卡一卡二新区网站_日本性感美女极致诱惑_亲爱的老师3高清中文播放_韩国美女主播在线观看