请问以下JS是什么意思?
答案:5 悬赏:70 手机版
解决时间 2021-04-29 17:07
- 提问者网友:酱爆肉
- 2021-04-29 06:29
function announcements() //公告和小字报 显示
2{
3 this_=this;
4 var rollText_k= (!document.all?document.getElementsByName("announcementsitem").length:document.getElementById("rollTextMenus").childNodes.length);// 菜单总数
5 if (rollText_k==0)
6 {
7 var str=window.location.href;
8 var es=/http:\/\/.+boardid\=(\d+)/;
9 es.exec(str);
10 var boardid=RegExp.$1;
11 if (boardid == "")
12 {
13 boardid = 0;
14 }
15 document.getElementById("rollTextMenus").innerHTML = ' 公告: 当前还未有公告';
16 rollText_k=1;
17 }
18 var rollText_i=1; //菜单默认值
19 document.getElementById("rollTextMenu1").style.display="block";
20 document.getElementById("pageShow").innerHTML = "1/"+rollText_k;
21 rollText_tt=setInterval(function(){
22 this_.rollText(1)
23 },4000);
24 this.rollText = function(a){
25 clearInterval(rollText_tt);
26 rollText_tt=setInterval(function(){
27 this_.rollText(1)
28 },4000);
29 rollText_i+=a;
30 if (rollText_i>rollText_k){rollText_i=1;}
31 if (rollText_i==0){rollText_i=rollText_k;}
32 for (var j=1; j<=rollText_k; j++){
33 document.getElementById("rollTextMenu"+j).style.display="none";
34 }
35 document.getElementById("rollTextMenu"+rollText_i).style.display="block";
36 document.getElementById("pageShow").innerHTML = rollText_i+"/"+rollText_k;
37 }
38}
39//新闻模式分类显示菜单
40function NewsSpanBar(){
41 this.f=1;
42 this.event = "click"
43 this.titleid = "";
44 this.bodyid="";
45 this.class_dis = "dis";
46 this.class_undis = "undis";
47 this.class_hiton = "tab_search_on";
48 this.class_hitno = "tab_search";
49
50 var Tags,TagsCnt,len,flag;
51 var BClassName;
52 this.load=function(){
53 if (!document.getElementById(this.titleid)||!document.getElementById(this.bodyid))
54 {
55 return false;
56 }
57 flag = this.f;
58 BClassName = [this.class_dis,this.class_undis,this.class_hiton,this.class_hitno];
59 Tags=document.getElementById(this.titleid).getElementsByTagName('p');
60 TagsCnt=document.getElementById(this.bodyid).getElementsByTagName('dl');
61 len=Tags.length;
62 for(var i=0;i
最佳答案
- 五星知识达人网友:雾月
- 2021-04-29 06:59
就是技术的意思
全部回答
- 1楼网友:有你哪都是故乡
- 2021-04-29 10:43
三国中是剑侍
- 2楼网友:风格不统一
- 2021-04-29 09:46
很简单 剑侍—Jian Shi— JS
- 3楼网友:夜余生
- 2021-04-29 09:25
JS 是剑士!
- 4楼网友:荒野風
- 2021-04-29 08:24
在Q三国中JS是一种角色 ...
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯