前台jsp index.jspITeye - 众发娱乐

前台jsp index.jspITeye

2019-01-13 17:38:30 | 作者: 昊磊 | 标签: 款式,恳求,初始化 | 浏览: 2786

var collectionManage = $("collectionManage"); var collectionManage2 = $("collectionManage2"); var collectionManageSub = $("collectionManageSub"); collectionManage2.style.display=block; collectionManage.style.backgroundColor=#fff; collectionManage.style.backgroundImage="url(images/shoppingCartORcollectRemindImgHover.jpg)"; collectionManage.style.border="2px solid #ff6600"; collectionManage.style.borderBottom="none"; collectionManageSub.style.color="#767676"; var cartManage = $("cartManage"); var cartManage2 = $("cartManage2"); var cartManageSub = $("cartManageSub"); var cartManageSub2 = $("cartManageSub2"); cartManage2.style.display=none; cartManage.style.backgroundColor=#ff6600; cartManage.style.backgroundImage="url(images/shoppingCartORcollectRemindImg.jpg)"; cartManage.style.border="2px solid #ff6600"; cartManage.style.borderBottom="none"; cartManageSub.style.color="#fff"; cartManageSub2.style.color="#ffb380"; cartManageSub2.style.fontWeight="bold"; cartManageSub2.style.fontFamily="Arial"; //保藏办理封闭 function collectionManageClose(){ var collectionManage = $("collectionManage"); var collectionManage2 = $("collectionManage2"); var collectionManageSub = $("collectionManageSub"); collectionManage2.style.display=none; collectionManage.style.backgroundColor=#ff6600; collectionManage.style.backgroundImage="url(images/shoppingCartORcollectRemindImg.jpg)"; collectionManage.style.border="2px solid #ff6600"; collectionManage.style.borderBottom="none"; collectionManageSub.style.color="#fff"; var cartManage = $("cartManage"); var cartManage2 = $("cartManage2"); var cartManageSub = $("cartManageSub"); var cartManageSub2 = $("cartManageSub2"); cartManage2.style.display=none; cartManage.style.backgroundColor=#ff6600; cartManage.style.backgroundImage="url(images/shoppingCartORcollectRemindImg.jpg)"; cartManage.style.border="2px solid #ff6600"; cartManage.style.borderBottom="none"; cartManageSub.style.color="#fff"; cartManageSub2.style.color="#ffb380"; cartManageSub2.style.fontWeight="bold"; cartManageSub2.style.fontFamily="Arial"; //引荐功用 款式悉数初始化 function rPTopClose(){ for(var i=1; i i++){ document.getElementById("rPTop"+i).style.backgroundColor="#f6f6f6"; document.getElementById("rPTop"+i).style.borderBottom="1px solid #d9d9d9"; document.getElementById("rPTop"+i).style.color="#666"; document.getElementById("rPCon"+i).style.display=none; //热销榜 款式初始化 function ranking0Close(){ for(var i=1; i i++){ document.getElementById("ranking0"+i).style.backgroundColor="#e9e9e9"; document.getElementById("ranking0"+i).style.borderBottom="1px solid #e9e9e9"; document.getElementById("ranking0"+i).style.color="#666"; document.getElementById("ranking0"+i).style.fontWeight="normal"; document.getElementById("rankingHover0"+i).style.display=none; function ranking1Close(){ for(var i=1; i i++){ document.getElementById("ranking1"+i).style.backgroundColor="#e9e9e9"; document.getElementById("ranking1"+i).style.borderBottom="1px solid #e9e9e9"; document.getElementById("ranking1"+i).style.color="#666"; document.getElementById("ranking1"+i).style.fontWeight="normal"; document.getElementById("rankingHover1"+i).style.display=none; //排行榜的第一个款式 function onloadRanking(){ var ranking11 = $("ranking11"); ranking11.style.backgroundColor="#fff"; ranking11.style.fontWeight="bold"; ranking11.style.color="#f60"; ranking11.style.borderLeft="1px solid #d9d9d9"; ranking11.style.borderTop="1px solid #d9d9d9"; ranking11.style.borderRight="1px solid #d9d9d9"; ranking11.style.borderBottom="1px solid #fff"; var ranking01 = $("ranking01"); ranking01.style.backgroundColor="#fff"; ranking01.style.fontWeight="bold"; ranking01.style.color="#f60"; ranking01.style.borderLeft="1px solid #d9d9d9"; ranking01.style.borderTop="1px solid #d9d9d9"; ranking01.style.borderRight="1px solid #d9d9d9"; ranking01.style.borderBottom="1px solid #fff"; function saveSql(id,statusId,number){ var xmlHttp = new XMLHttpRequest(); var url = "ajaxSave?id="+escape(id)+" statusId="+escape(statusId)+" number="+escape(number); xmlHttp.open("GET", url);//设置一个恳求 xmlHttp.onreadystatechange = function() { //设置恳求完结之后处理的回调函数 if (xmlHttp.readyState == 4) {//数据回来结束 if (xmlHttp.status == 200) {//HTTP操作正常 var text = xmlHttp.responseText;//接纳回来的内容 alert(text); xmlHttp.send(null);//发送恳求,不传递任何参数 };

 

效果图:

 

 

版权声明
本文来源于网络,版权归原作者所有,其内容与观点不代表众发娱乐立场。转载文章仅为传播更有价值的信息,如采编人员采编有误或者版权原因,请与我们联系,我们核实后立即修改或删除。

猜您喜欢的文章