?? tag_style.ascx
字號:
<%@ Control Inherits="CuteEditor.EditorUtilityCtrl" Language="c#" AutoEventWireup="false" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%@ Register TagPrefix="uc1" TagName="Tag_Style_Font" Src="Tag_Style_Font.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Tag_Style_Background" Src="Tag_Style_Background.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Tag_Style_Text" Src="Tag_Style_Text.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Tag_Style_Other" Src="Tag_Style_Other.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Tag_Style_List" Src="Tag_Style_List.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Tag_Style_Border" Src="Tag_Style_Border.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Tag_Style_Layout" Src="Tag_Style_Layout.ascx" %>
<%
object[] p1={"Font","[[Font]]"};
object[] p2={"Text","[[Text]]"};
object[] p4={"Border","[[Border]]"};
object[] p5={"Layout","[[Layout]]"};
object[] p3={"Background","[[Background]]"};
object[] p6={"Other","[[Other]]"};
object[] ps={p1,p2,p3,p4,p5,p6};
string activepanel=Context.Request.QueryString["Style"];
if(activepanel==null||activepanel=="")activepanel="Font";
Control panel=FindControl("Panel"+activepanel);
panel.Visible=true;
string activetext="";
%>
<table border="0" cellspacing="0" cellpadding="0" style="width:100%;">
<tr>
<td width="94" valign=top id="navtd">
<%
foreach(object[] px in ps)
{
string pname=px[0].ToString();
string ptext=px[1].ToString();
bool iscurrent=activepanel==pname;
if(iscurrent)activetext=ptext;
%>
<a class='<%=iscurrent?"ActiveStyleNav":"StyleNav"%>' href='<%=CuteEditor.EditorUtility.ReplaceParam(Context.Request.RawUrl,"Style",pname)%>'>
<IMG src="../Images/style.<%=pname%>.gif" align="absMiddle" border="0"/>
<%=ptext%>
</a>
<%
}
%>
</td>
<td width="10px" nowrap></td>
<td valign=top>
<uc1:Tag_Style_Font id="PanelFont" runat="server" Visible="False"></uc1:Tag_Style_Font>
<uc1:Tag_Style_Background id="PanelBackground" runat="server" Visible="False"></uc1:Tag_Style_Background>
<uc1:Tag_Style_Text id="PanelText" runat="server" Visible="False"></uc1:Tag_Style_Text>
<uc1:Tag_Style_Border id="PanelBorder" runat="server" Visible="False"></uc1:Tag_Style_Border>
<uc1:Tag_Style_Layout id="PanelLayout" runat="server" Visible="False"></uc1:Tag_Style_Layout>
<uc1:Tag_Style_List id="PanelList" runat="server" Visible="False"></uc1:Tag_Style_List>
<uc1:Tag_Style_Other id="PanelOther" runat="server" Visible="False"></uc1:Tag_Style_Other>
</td>
</tr>
</table>
<script>
var OxOc431=["shiftKey","style"]; function navtd.ondblclick(){if(event[OxOc431[0x0]]){ alert(element[OxOc431[0x1]].cssText) ;} ;} ;
</script>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -