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

📄 adzone.aspx

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 ASPX
📖 第 1 页 / 共 3 页
字号:
                                            移动平滑度:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="TxtCoupletDelay" MaxLength="7" Text="0.015" TextMode="singleLine"
                                                runat="server" Width="36px" />
                                            (取值在0.001至1之间)
                                        </td>
                                    </tr>
                                    <tr class="tdbg">
                                        <td>
                                            是否显示关闭标签:
                                        </td>
                                        <td>
                                            <asp:RadioButtonList ID="RadlCoupletShowCloseAD" runat="server" RepeatDirection="Horizontal"
                                                RepeatLayout="Flow">
                                                <asp:ListItem Value="true">是</asp:ListItem>
                                                <asp:ListItem Value="false" Selected="True">否</asp:ListItem>
                                            </asp:RadioButtonList>
                                        </td>
                                    </tr>
                                    <tr class="tdbg">
                                        <td>
                                            关闭标签的颜色:
                                        </td>
                                        <td>
                                            <pe:ColorPicker ID="TxtCoupletCloseFontColor" Text="#FFFFFF" runat="server" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>版位尺寸:</strong><br />
                IAB:互联网广告联合会标准尺寸。<br />
                带*号的为新增加的标准广告尺寸。
            </td>
            <td>
                <table>
                    <tr>
                        <td>
                            <asp:DropDownList ID="DropAdZoneSize" runat="server" AutoPostBack="false" EnableViewState="False">
                                <asp:ListItem Value="468x60">IAB - 468 x 60 IMU (横幅广告)</asp:ListItem>
                                <asp:ListItem Value="234x60">IAB - 234 x 60 IMU (半幅广告)</asp:ListItem>
                                <asp:ListItem Value="88x31">IAB - 88 x 31 IMU (小按钮)</asp:ListItem>
                                <asp:ListItem Value="120x90">IAB - 120 x 90 IMU (按钮一)</asp:ListItem>
                                <asp:ListItem Value="120x60">IAB - 120 x 60 IMU (按钮二)</asp:ListItem>
                                <asp:ListItem Value="728x90">IAB - 728 x 90 IMU (通栏广告) *</asp:ListItem>
                                <asp:ListItem Value="120x240">IAB - 120 x 240 IMU (竖幅广告)</asp:ListItem>
                                <asp:ListItem Value="125x125">IAB - 125 x 125 IMU (方形按钮)</asp:ListItem>
                                <asp:ListItem Value="180x150">IAB - 180 x 150 IMU (长方形) *</asp:ListItem>
                                <asp:ListItem Value="300x250">IAB - 300 x 250 IMU (中长方形) *</asp:ListItem>
                                <asp:ListItem Value="336x280">IAB - 336 x 280 IMU (大长方形)</asp:ListItem>
                                <asp:ListItem Value="240x400">IAB - 240 x 400 IMU (竖长方形)</asp:ListItem>
                                <asp:ListItem Value="250x250">IAB - 250 x 250 IMU (正方形弹出)</asp:ListItem>
                                <asp:ListItem Value="120x600">IAB - 120 x 600 IMU (摩天大楼)</asp:ListItem>
                                <asp:ListItem Value="160x600">IAB - 160 x 600 IMU (宽摩天大楼) *</asp:ListItem>
                                <asp:ListItem Value="300x600">IAB - 300 x 600 IMU (半页广告) *</asp:ListItem>
                                <asp:ListItem Value="0x0">自定义大小</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            宽度:
                            <asp:TextBox ID="TxtZoneWidth" MaxLength="4" Width="36px" Text="468" TextMode="singleLine"
                                runat="server" />
                            <pe:RequiredFieldValidator ID="ValrTxtZoneWidth" runat="server" ControlToValidate="TxtZoneWidth"
                                SetFocusOnError="true" ErrorMessage="" Display="Dynamic" />
                            &nbsp;&nbsp;&nbsp;&nbsp;高度:
                            <asp:TextBox ID="TxtZoneHeight" MaxLength="4" Width="36px" Text="60" TextMode="singleLine"
                                runat="server" />
                            <pe:RequiredFieldValidator ID="ValrTxtZoneHeight" runat="server" ControlToValidate="TxtZoneHeight"
                                SetFocusOnError="true" ErrorMessage="" Display="Dynamic" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>显示方式:</strong><br />
                当版位中有多个广告时按照此设定进行显示(依据广告的权重)。</td>
            <td>
                <asp:RadioButtonList ID="RadlShowType" runat="server">
                    <asp:ListItem Value="1" Selected="true">按权重随机显示,权重越大显示机会越大。</asp:ListItem>
                    <asp:ListItem Value="2">按权重优先显示,显示权重值最大的广告。</asp:ListItem>
                    <asp:ListItem Value="3">按顺序循环显示,此方式仅对矩形横幅有效。</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>版位状态:</strong><br />
                设为活动的版位才能在前台显示。</td>
            <td>
                <asp:CheckBox ID="ChkActive" Checked="true" runat="server" EnableViewState="False" />
                活动版位
            </td>
        </tr>
        <tr class="tdbgbottom">
            <td colspan="2">
                <asp:Button ID="EBtnAdZone" runat="server" Text="保存" OnClick="EBtnAdZone_Click" />&nbsp;&nbsp;
                <input name="Cancel" type="button" onclick="Redirect('ADZoneManage.aspx')" class="inputbutton"
                    id="Cancel" value="取消" style="cursor: pointer; cursor: hand;" />
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="HdnAction" runat="server" />
    <asp:HiddenField ID="HdnZoneId" runat="server" />

    <script language="javascript" type="text/javascript">
  
    function $(value)
    {
        return document.getElementById(value);
    }
  
    function ShowZoenTypePanel()
    {
        
       
        if($('<%=RadlZoneType.ClientID %>_0').checked==false)
        {
            $('<%=RadlShowType.ClientID %>_2').disabled = true;
            
            $('<%=RadlShowType.ClientID %>_0').checked=true;//$('<%=RadlShowType.ClientID %>_2').checked;
        } else{
            $('<%=RadlShowType.ClientID %>_2').disabled=false;
            $('<%=RadlShowType.ClientID %>_0').checked=true;
        }
        
        Zone_DisableSize($('<%=RadlZoneType.ClientID %>_5').checked);
        
        var obj=document.getElementsByName('<%=RadlZoneType.UniqueID %>');
        for (var j=0;j<obj.length;j++)
        {
            var ot = eval($('<%=ZoneTypeSetting.ClientID %>' + (j + 1)))
            if($('<%=RadlZoneType.ClientID %>_'+j).checked && $('<%=RadlDefaultSetting.ClientID %>_1').checked)
            {
                ot.style.display = '';
                
            }else{ 
                ot.style.display = 'none';
            }
        } 
         
     }
     
     function Zone_DisableSize(value)
     {
        $('<%=TxtZoneWidth.ClientID %>').disabled=value;
        $('<%=TxtZoneHeight.ClientID %>').disabled=value;
        $('<%=DropAdZoneSize.ClientID %>').disabled=value;
     }
   
    function Zone_SelectSize(o)
    {
        size = o.options[o.selectedIndex].value;
        if (size != '0x0')
        {
            sarray = size.split('x');
            height = sarray.pop();
            width  = sarray.pop();
            $('<%=TxtZoneWidth.ClientID %>').value=width;
            $('<%=TxtZoneHeight.ClientID %>').value=height;
        }else{
            $('<%=TxtZoneHeight.ClientID %>').value=100;
            $('<%=TxtZoneWidth.ClientID %>').value=100;
        }
     }
    
    function ChangePositonShow(drop)
    {
        var text=drop.options[drop.options.selectedIndex].text;
        var name=drop.id.replace("ctl00_CphContent_Drop","");
        name=name.replace("Position","");
        $(name+"Left").innerHTML=text.substring(0,1);
        $(name+"Top").innerHTML=text.substring(1,2);
    }
      ShowZoenTypePanel();
    </script>

</asp:Content>

⌨️ 快捷键说明

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