www.gusucode.com > 流光音乐建站系统 1.1码程序 > Js/innerIndex.js
//+++++++++++++++++++++++++++++++++++++++版权信息+++++++++++++++++++++++++++++++++++++++++++++ // 流光音乐系统 1.0 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ /*************** 第一Banner *******************/ header_right.innerHTML = t; var html; var t_url = "/ads/a_1.html"; var t_w = 468; var t_h = 60; var txt="<iframe scrolling=\"no\" topmargin=\"0\" width=\""+t_w+"\" "; txt+=" height=\""+t_h+"\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\" align=\"center\" " ; txt+=" src=\""+t_url+"\"></iframe>"; getObject("a_1").innerHTML=txt; t_url = "/ads/a_3.html"; t_w = 236; t_h = 90; txt="<iframe scrolling=\"no\" topmargin=\"0\" width=\""+t_w+"\" "; txt+=" height=\""+t_h+"\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\" align=\"center\" " ; txt+=" src=\""+t_url+"\"></iframe>"; getObject("a_3").innerHTML=txt; ///***** 滚动合作 *****/ t_url = "/ads/a_2.html"; t_w = 719; t_h = 90; txt="<iframe scrolling=\"no\" topmargin=\"0\" width=\""+t_w+"\" "; txt+=" height=\""+t_h+"\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\" align=\"center\" " ; txt+=" src=\""+t_url+"\"></iframe>"; getObject("a_2").innerHTML=txt; /*document.getElementById("a_3").innerHTML = html; (function(ul, delay, speed, lineHeight) { var slideBox = (typeof ul == 'string')?document.getElementById(ul):ul; var delay = delay||1000; var speed=speed||60; var lineHeight = lineHeight||60; var tid = null, pause = false; var start = function() { tid=setInterval(slide, speed); } var slide = function() { if (pause) return; slideBox.scrollTop += 2; if (slideBox.scrollTop % lineHeight == 0) { clearInterval(tid); slideBox.appendChild(slideBox.getElementsByTagName('li')[0]); slideBox.scrollTop = 0; setTimeout(start, delay); } } slideBox.onmouseover=function(){pause=true;} slideBox.onmouseout=function(){pause=false;} setTimeout(start, 2000); })('a3', 3000, 3, 60);//停留时间,相对速度(越小越快),每次滚动多少,最好和Li的Line-height一致。 */ t_url = "/ads/a_4.html"; t_w = 960; t_h = 90; txt="<iframe scrolling=\"no\" topmargin=\"0\" width=\""+t_w+"\" "; txt+=" height=\""+t_h+"\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\" align=\"center\" " ; txt+=" src=\""+t_url+"\"></iframe>"; getObject("a_5").innerHTML=txt; /***************************顶部拉幕广告开始********************************/ var t_o = getObject("a_0"); function screen(){ var focus_width = 939; var focus_height = 100; //广告内容 var txt; /* txt= ('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ focus_height +'">'); txt+=('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://www.1ting.com/ting/200707/top.swf"><param name="quality" value="high"><param name="bgcolor" value="#f5f5f5">'); txt+=('<param name="menu" value="false"><param name=wmode value="opaque">'); txt+=('<embed src="../Images/yule.swf" wmode="opaque" menu="false" bgcolor="#f5f5f5" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"; />'); txt+=('</object>'); */ /*txt='<iframe scrolling="no" topmargin="0" width="'+focus_width+'" height="'+focus_height+'" marginwidth="0" marginheight="0" frameborder="0" align="center" src="http://img.1ting.com/ting/screen.html"></iframe>'; var stxt = '<div style="float:right;"><img src="http://img.1ting.com/ting/close.gif" border="0px" style="cursor:pointer" onclick="clearScreen()"/></div>'; stxt+='<div style="float:left;">'+txt+'</div>'; t_o.style.display = "block"; t_o.style.background="yellow"; //底色 t_o.innerHTML = stxt; //广告内容*/ } function clearScreen(){ t_o.style.display = "none"; setCookie("screen_","1",24);//Cookie } if(getCookie("screen_")!="1"){ screen(); } function setCookie(name, value, hours) { var expire = ""; if(hours != null){ expire = new Date((new Date()).getTime() + hours * 3600000); expire = "; expires=" + expire.toGMTString(); } document.cookie = name + "=" + escape(value)+ ";path=/" + expire; } function getCookie(name){ var cookieValue = ""; var search = name + "="; if(document.cookie.length > 0) { offset = document.cookie.indexOf(search); if (offset != -1){ offset += search.length; end = document.cookie.indexOf(";", offset); if (end == -1) end = document.cookie.length; cookieValue = unescape(document.cookie.substring(offset, end)); } } return cookieValue; } //window.setTimeout(clearScreen,15000); /****************************顶部拉幕广告结束********************************** /* 焦点图开始 236*190 http://www.1ting.com/ting/200707/top.swf */ //var html=('<iframe src="http://img.1ting.com/ting/fnew.html" width="234" height="190" frameborder="0" scrolling="no"></iframe>'); //getObject("commend").innerHTML=html; //document.write("<script src=http://c.1ting.com/link/count.php?id=2></script>");