?? masterpage.master
字號:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<%@ Register Src="UserControls/ProductSearch.ascx" TagName="ProductSearch" TagPrefix="uc1" %>
<%@ Register Src="UserControls/Category.ascx" TagName="Category" TagPrefix="uc2" %>
<%@ Register Src="UserControls/Product.ascx" TagName="Product" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>無標題頁</title>
<SCRIPT language="JavaScript">
<!--
var thissize=20
var textfont="隸書"
var textcolor= new Array()
textcolor[0]="0022ff"
textcolor[1]="0022ff"
textcolor[2]="0022ff"
textcolor[3]="111111"
textcolor[4]="222222"
textcolor[5]="333333"
textcolor[6]="444444"
textcolor[7]="555555"
textcolor[8]="666666"
textcolor[9]="777777"
textcolor[10]="888888"
textcolor[11]="999999"
textcolor[12]="aaaaaa"
textcolor[13]="bbbbbb"
textcolor[14]="cccccc"
textcolor[15]="dddddd"
textcolor[16]="eeeeee"
textcolor[17]="ff2200"
textcolor[18]="ff1100"
var message = new Array()
message[0]="電子商務在線歡迎您的光臨!"
message[1]="優秀軟件開發!"
message[2]="網絡應用服務!"
i_message=0
var i_strength=0
var i_message=0
var timer
function glowtext() {
if(document.all) {
if (i_strength <=17) {
glowdiv.innerText=message[i_message]
document.all.glowdiv.style.filter="glow(color="+textcolor[i_strength]+", strength=4)"
i_strength++
timer=setTimeout("glowtext()",100)
}
else {
clearTimeout(timer)
setTimeout("deglowtext()",1500)
}
}
}
function deglowtext() {
if(document.all) {
if (i_strength >=0) {
glowdiv.innerText=message[i_message]
document.all.glowdiv.style.filter="glow(color="+textcolor[i_strength]+", strength=4)"
i_strength--
timer=setTimeout("deglowtext()",100)
}
else {
clearTimeout(timer)
i_message++
if (i_message>=message.length) {i_message=0}
i_strength=0
intermezzo()
}
}
}
function intermezzo() {
glowdiv.innerText=""
setTimeout("glowtext()",1000)
}
//-->
</SCRIPT>
</head>
<body onLoad="glowtext()">
<form id="form1" runat="server">
<div>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="~/images/logo.gif" NavigateUrl="~/Default.aspx" Width="218px">HyperLink</asp:HyperLink>
<table border="0" cellpadding="0" cellspacing="0" style="width: 231px; height: 148px">
<tr>
<td colspan="2" style="height: 19px"> <marquee id="Marquee1" direction="up" scrolldelay="150" scrollamount="2" width="250" onmouseover="this.stop();" onmouseout="this.start();" style="height: 104px">
歡迎來到本網站購物!</marquee>
</td>
</tr>
</table>
</td>
<td colspan="2">
<table border="0" cellpadding="0" cellspacing="0" style="width: 677px; height: 62px">
<tr>
<td style="height: 174px;">
</td>
<td style="height: 174px;">
<img src="images/1x1.gif" style="width: 47px; height: 24px" /></td>
<td style="height: 174px;">
<table border="0" cellpadding="0" cellspacing="0" style="width: 535px; height: 120px;">
<tr>
<td>
<asp:LoginName ID="LoginName1" runat="server" FormatString="Welcome: {0}" Width="221px" Font-Size="35px" Font-Names="華文行楷" />
</td>
<td style="width: 100px; height: 19px;">
</td>
<td style="width: 100px; height: 19px;">
</td>
<td style="width: 100px; height: 19px;">
</td>
</tr>
<tr>
<td style="width: 187px; height: 19px;">
</td>
<td style="width: 100px; height: 19px;">
</td>
<td style="width: 100px; height: 19px;">
</td>
<td style="width: 100px; height: 19px;">
</td>
</tr>
<tr>
<td align="center" style="height: 105px; width: 187px;">
<img src="images/1x1.gif" style="width: 117px; height: 17px" /><br />
<asp:LoginView ID="LoginView1" runat="server">
<LoggedInTemplate>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 109px; height: 19px">
<asp:HyperLink ID="HyperLink3" runat="server" Height="21px" NavigateUrl="~/ShopCartProduct.aspx"
Width="79px">Shop Cart</asp:HyperLink></td>
<td style="width: 100px; height: 19px">
<asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/OrderHistory.aspx" Width="91px">OrderHistory</asp:HyperLink></td>
</tr>
</table>
<img src="images/1x1.gif" style="width: 177px; height: 7px" />
</LoggedInTemplate>
<RoleGroups>
<asp:RoleGroup Roles="Admin">
<ContentTemplate>
<asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl="~/Admin/Default.aspx">管理員入口:</asp:HyperLink>|
</ContentTemplate>
</asp:RoleGroup>
</RoleGroups>
</asp:LoginView>
</td>
<td align="center" style="height: 105px;">
<asp:LoginStatus ID="LoginStatus1" runat="server" LogoutPageUrl="~/Default.aspx" LogoutAction="Redirect" />
|</td>
<td align="center" style="height: 105px;">
設為首頁|</td>
<td align="center" style="height: 105px;">
設為收藏夾|</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" style="width: 236px; height: 239px;">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 100px">
<uc1:ProductSearch id="ProductSearch1" runat="server">
</uc1:ProductSearch>
<br />
</td>
</tr>
<tr>
<td style="width: 100px; height: 147px">
<uc2:Category id="Category1" runat="server">
</uc2:Category></td>
</tr>
</table>
</td>
<td valign="top">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
<table border="0" cellpadding="0" cellspacing="0" style="width: 534px">
<tr>
<td style="width: 596px; height: 19px">
</td>
</tr>
<tr>
<td align="center" style="font-weight: bolder; font-size: 30px; text-transform: capitalize;
width: 596px; color: lime; font-style: italic; text-decoration: underline">
<img src="images/1x1.gif" style="width: 45px; height: 26px" /><br />
Welcome to our shop <br />
for Computer Accessories</td>
</tr>
<tr>
<td style="width: 596px; height: 19px">
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" rowspan="2">
</td>
</tr>
<tr>
</tr>
</table>
<br />
<br />
<div id="glowdiv" style="position:absolute;visibility:visible;width:800px;text-align:center; top:10px;left:130px;font-family:隸書;font-size:30pt;color:000000"></div>
<br />
</asp:ContentPlaceHolder>
</td>
<td valign="top" style="height: 239px">
<uc3:Product id="Product1" runat="server">
</uc3:Product></td>
</tr>
<tr>
<td style="width: 236px">
</td>
<td style="width: 613px; font-weight: bolder; font-size: large; color: #00ff00; font-family: 方正姚體; text-decoration: underline;">
版權所有: 安徽理工大學理學院信計04-4班 王明濤</td>
<td>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -