WebContent/js/public.js
(完整代码) 1KB/*public js xianhuachneg.com*/
/*Tab Search style*/
function selectsearch(theA,word){
obj=document.getElementById("selectsearch").getElementsByTagName("a");
for(var i=0;i< obj.length;i++ ){
obj[i].className='';
}
theA.className='choose';
if(word=='restaurant_name'){
document.getElementById('main_a_serach').action="search_s.html";//Test url
}else if(word=='food_name'){
document.getElementById('main_a_serach').action="search_p.html";//Test url
}
}
//INDEX TAB LIST
window.onload = function ()
{
var oLi = document.getElementById("Indextab").getElementsByTagName("li");
var oUl = document.getElementById("Indexcontent").getElementsByTagName("ul");
for(var i = 0; i < oLi.length; i++)
{
oLi[i].index = i;
oLi[i].onclick = function ()
{
for(var n = 0; n < oLi.length; n++) oLi[n].className="";
this.className = "current";
for(var n = 0; n < oUl.length; n++) oUl[n].style.display = "none";
oUl[this.index].style.display = "block"
}
}
}
/*change radio background color*/
function changeColor(arg){
var rdCount = document.getElementsByName("rdColor").length;
for(i=1;i<=rdCount;i++){
document.getElementById("style"+i).style.fontWeight = "normal";
document.getElementById("style"+i).style.backgroundColor = "";
document.getElementById("style"+i).style.boxShadow = "none";
document.getElementById("style"+i).style.border = "none";
}
document.getElementById("style"+arg).style.backgroundColor = "#fff5cc";
document.getElementById("style"+arg).style.fontWeight = "bold";
document.getElementById("style"+arg).style.boxShadow = "3px 2px 10px #dedede";
document.getElementById("style"+arg).style.border = "1px #ffe580 solid";
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。