⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.htm

📁 6个网页标准全站代码
💻 HTM
📖 第 1 页 / 共 4 页
字号:
        var choiceControl;
        
        for(var choice in tempChoices)
        {
            anthorChoice=tempChoices[choice];
            choiceControl=document.getElementById("Choice"+anthorChoice);
            if(choiceControl.checked)
                checkCounter++;
        }
       
        if(checkCounter==chooseNumberRequired)
        {            
            result=true;
            //Disable other choice in the same group
            for(var choice in tempChoices)
            {
                anthorChoice=tempChoices[choice];
                choiceControl=document.getElementById("Choice"+anthorChoice);
                if(!choiceControl.checked)
                    choiceControl.disabled=true;
            }
        }
      
        
        else if(checkCounter<chooseNumberRequired)
        {
            result=true;
            //Enable other choice in the same group
            for(var choice in tempChoices)
            {
                anthorChoice=tempChoices[choice];
                choiceControl=document.getElementById("Choice"+anthorChoice);
                //if(!choiceControl.checked)
                choiceControl.disabled=false;
            }
        }
        
        else if(checkCounter>chooseNumberRequired)
        {
            alert("在一个小组中,选择不能超过"+chooseNumberRequired+"个!");   
            obj.checked=false;          
            result=false;
        }
        
        return result;
    }
    
    function CheckAllCheckbox()
    {
        var result=true;
                
        for(var group in myGroups.Groups)
        {        
            var counterInGroup=0;
            var choicesInGroup=myGroups.Groups[group].GetAllChoices();   
            for(var choice in choicesInGroup)
            {
                var tempChoice=choicesInGroup[choice];
                var choiceControl=document.getElementById("Choice"+tempChoice);
                if(choiceControl.checked)
                    counterInGroup++;
            }
            if(counterInGroup < chooseNumberRequired)
            {
               //alert("注意:在每组中只能选出"+chooseNumberRequired+"项,\n您少选了某些项,请检查!");
               result=false;               
               break;
            } 
            else if(counterInGroup==chooseNumberRequired)
            {
                
            }
            else// if(counterInGroup> chooseNumberRequired)
            {
                result=false;
                alert("在小组赛中,您多选了某些项,请检查!");
                break;
            }
        }
        return result;
    }
    
    function HasSelectAllRequired()
    {        
        var result=true;                                
        for(var group in myGroups.Groups)
        {        
            var counterInGroup=0;
            var choicesInGroup=myGroups.Groups[group].GetAllChoices();   
            for(var choice in choicesInGroup)
            {
                var tempChoice=choicesInGroup[choice];
                var choiceControl=document.getElementById("Choice"+tempChoice);
                if(choiceControl.checked)
                    counterInGroup++;
            }
            if(counterInGroup < chooseNumberRequired)
            {
               //alert("注意:在每组中只能选出"+chooseNumberRequired+"项,\n您少选了某些项,请检查!");
               result=false;               
               break;
            } 
            else if(counterInGroup==chooseNumberRequired)
            {
                
            }
            else// if(counterInGroup> chooseNumberRequired)
            {
                result=false;
                alert("在小组赛中,您多选了某些项,请检查!");
                break;
            }
        }
        return result;    
    }
    
    function ClearAllCheckbox()
    {
        var result=true;
                
        for(var group in myGroups.Groups)
        {        
            var counterInGroup=0;
            var choicesInGroup=myGroups.Groups[group].GetAllChoices();   
            for(var choice in choicesInGroup)
            {
                var tempChoice=choicesInGroup[choice];
                var choiceControl=document.getElementById("Choice"+tempChoice);
                if(choiceControl.checked && !choiceControl.disabled)
                    choiceControl.checked=false;
            }
           
        }
    }
   

    function selectChange(obj,enableSubmitButtonId)
    {
        if(adminActivateTopic==false)
        {
            var SubmitButton=document.getElementById(enableSubmitButtonId);
            var BottomSubmitButton;
            var hasSelected;
            if(SubmitButton)
            {
                if(obj)
                {
                    if(Votable)
                    {
                        hasSelected=!(obj.selectedIndex == 0);
                        var BottomSubmitButton;
                                               
                        if(hasSelected)
                        {
                            SubmitButton.style.width='100%';
                            if(adminSetAnswer)
                            {
                                BottomSubmitButton=document.getElementById("BottomSubmitButton");
                                if(BottomSubmitButton)
                                    BottomSubmitButton.disabled=false;
                            }
                        }
                        else
                        {
                            SubmitButton.style.width='0%';
                            if(adminSetAnswer)
                            {
                                BottomSubmitButton=document.getElementById("BottomSubmitButton");
                                if(BottomSubmitButton)
                                    BottomSubmitButton.disabled=true;
                            }
                        }
                    }
                }
            }
        }
    }
  </SCRIPT>

            <FORM id=topicVote style="MARGIN: 0px" action=ConfirmVote.aspx 
            method=post><INPUT id=PublishId type=hidden value=1 name=PublishId> 
            <INPUT id=PublishTitle type=hidden value=本届世界杯的冠军 name=PublishTitle> 
            <INPUT id=vid type=hidden value=-1 name=vid> <INPUT id=ResultString 
            type=hidden name=ResultString> <INPUT id=UserId type=hidden value=0 
            name=UserId> <INPUT id=Edit type=hidden value=0 name=Edit> <INPUT 
            id=vpurl type=hidden 
            value=https://guess.msn.ynet.com/Viewpublish.aspx?PublishId=1&amp;rs=21,&amp;wa=wsignin1.0 
            name=vpurl> 
            <STYLE type=text/css></STYLE>

            <SCRIPT language=JavaScript type=text/javascript>
  </SCRIPT>

            <DIV>
            <DIV class=HeaderItem>
            <DIV class=LeftTextOfHeader 
            style="OVERFLOW: hidden; WIDTH: 250px; HEIGHT: 15px"><B><FONT 
            color=#663300>本届世界杯的冠军</FONT></B></DIV>
            <DIV class=MiddleTextOfHeader 
            style="DISPLAY: block; VISIBILITY: visible; WIDTH: 190px"><SELECT 
            id=selectChoices 
            onchange="selectChange(this,'EnableSubmitButtonId');" 
            name=selectChoices> <OPTION value=-1 selected 
              name="nochoose">请选择</OPTION> <OPTION value=1 name="1">德国</OPTION> 
              <OPTION value=2 name="2">哥斯达黎加</OPTION> <OPTION value=3 
              name="3">波兰</OPTION> <OPTION value=4 name="4">厄瓜多尔</OPTION> 
              <OPTION value=5 name="5">英格兰</OPTION> <OPTION value=6 
              name="6">巴拉圭</OPTION> <OPTION value=7 name="7">特立尼达和多巴哥</OPTION> 
              <OPTION value=8 name="8">瑞典</OPTION> <OPTION value=9 
              name="9">阿根廷</OPTION> <OPTION value=10 name="10">科特迪瓦</OPTION> 
              <OPTION value=11 name="11">塞黑</OPTION> <OPTION value=12 
              name="12">荷兰</OPTION> <OPTION value=13 name="13">墨西哥</OPTION> 
              <OPTION value=14 name="14">伊朗</OPTION> <OPTION value=15 
              name="15">安哥拉</OPTION> <OPTION value=16 name="16">葡萄牙</OPTION> 
              <OPTION value=17 name="17">意大利</OPTION> <OPTION value=18 
              name="18">加纳</OPTION> <OPTION value=19 name="19">美国</OPTION> 
              <OPTION value=20 name="20">捷克</OPTION> <OPTION value=21 
              name="21">巴西</OPTION> <OPTION value=22 name="22">克罗地亚</OPTION> 
              <OPTION value=23 name="23">澳大利亚</OPTION> <OPTION value=24 
              name="24">日本</OPTION> <OPTION value=25 name="25">法国</OPTION> 
              <OPTION value=26 name="26">瑞士</OPTION> <OPTION value=27 
              name="27">韩国</OPTION> <OPTION value=28 name="28">多哥</OPTION> 
              <OPTION value=29 name="29">西班牙</OPTION> <OPTION value=30 
              name="30">乌克兰</OPTION> <OPTION value=31 name="31">突尼斯</OPTION> 
              <OPTION value=32 name="32">沙特</OPTION></SELECT>
            <SCRIPT language=JavaScript type=text/javascript>var selectControl=document.getElementById('selectChoices');
 selectControl.value='21';</SCRIPT>
             </DIV>
            <DIV class=RightTextOfHeader id=SubmitButton 
            style="DISPLAY: block; VISIBILITY: visible"><A 
            onclick="return TopicSubmitForSelectControl()" 
            href="file:///C:/Documents%20and%20Settings/xixi/桌面/www.htm#">
            <DIV class=SubmitButtonDisable>
            <DIV class=SubmitButtonEnable id=EnableSubmitButtonId 
            style="WIDTH: 0%"></DIV></DIV></A></DIV>
            <DIV class=RightTextOfHeader 
            style="MARGIN-TOP: 3px; DISPLAY: none; VISIBILITY: hidden; WIDTH: 180px; MARGIN-RIGHT: 2px; HEIGHT: 15px; TEXT-ALIGN: right"></DIV></DIV>
            <DIV class=DarkItem style="BACKGROUND-REPEAT: repeat-y">
            <DIV class=LeftTextOfHeader 
            style="WIDTH: 510px; WORD-WRAP: break-word"><B>请从32支球队选出冠军</B></DIV></DIV>
            <DIV class=LightItem>
            <DIV class=LeftPart 
            style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none">
            <DIV class=LeftTextOfHeader 
            style="OVERFLOW: hidden; WIDTH: 150px; HEIGHT: 15px">德国</DIV>
            <DIV class=RightGrayImageOfHalfItem style="VISIBILITY: visible">
            <DIV class=RightOrangeImageOfHalfItem 
            style="WIDTH: 20%"></DIV></DIV></DIV>
            <DIV 
            style="BORDER-RIGHT: #dbdbdb 1px solid; FLOAT: left; WIDTH: 1px; HEIGHT: 31px"></DIV>
            <DIV class=RightPart>
            <DIV class=LeftTextOfHeader 
            style="OVERFLOW: hidden; WIDTH: 150px; HEIGHT: 15px">哥斯达黎加</DIV>
            <DIV class=RightGrayImageOfHalfItem style="VISIBILITY: visible">
            <DIV class=RightOrangeImageOfHalfItem 
            style="WIDTH: 0%"></DIV></DIV></DIV></DIV>
            <DIV class=DarkItem>
            <DIV class=LeftPart 
            style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none">
            <DIV class=LeftTextOfHeader 
            style="OVERFLOW: hidden; WIDTH: 150px; HEIGHT: 15px">波兰</DIV>
            <DIV class=RightGrayImageOfHalfItem style="VISIBILITY: visible">
            <DIV class=RightOrangeImageOfHalfItem 
            style="WIDTH: 0%"></DIV></DIV></DIV>
            <DIV 
            style="BORDER-RIGHT: #dbdbdb 1px solid; FLOAT: left; WIDTH: 1px; HEIGHT: 31px"></DIV>
            <DIV class=RightPart>
            <DIV class=LeftTextOfHeader 
            style="OVERFLOW: hidden; WIDTH: 150px; HEIGHT: 15px">厄瓜多尔</DIV>
            <DIV class=RightGrayImageOfHalfItem style="VISIBILITY: visible">
            <DIV class=RightOrangeImageOfHalfItem 
            style="WIDTH: 0%"></DIV></DIV></DIV></DIV>
            <DIV class=LightItem>
            <DIV class=LeftPart 
            style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none">
            <DIV class=LeftTextOfHeader 
            style="OVERFLOW: hidden; WIDTH: 150px; HEIGHT: 15px">英格兰</DIV>
            <DIV class=RightGrayImageOfHalfItem style="VISIBILITY: visible">
            <DIV class=RightOrangeImageOfHalfItem 
            style="WIDTH: 20%"></DIV></DIV></DIV>
            <DIV 
            style="BORDER-RIGHT: #dbdbdb 1px solid; FLOAT: left; WIDTH: 1px; HEIGHT: 31px"></DIV>
            <DIV class=RightPart>
            <DIV class=LeftTextOfHeader 
            style="OVERFLOW: hidden; WIDTH: 150px; HEIGHT: 15px">巴拉圭</DIV>
            <DIV class=RightGrayImageOfHalfItem style="VISIBILITY: visible">
            <DIV class=RightOrangeImageOfHalfItem 
            style="WIDTH: 0%"></DIV></DIV></DIV></DIV>
            <DIV class=DarkItem>
            <DIV class=LeftPart 
            style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none">
            <DIV class=LeftTextOfHeader 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -