📄 mb.aspx
字号:
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="gb2312" %>
<%@ Import Namespace="System" %>
<!--
#AdvDetailedId# 详细广告 ID
#width# 图片的长
#height# 图片的高
#picurl# 图片地址
#AdvImagePath# //图片路径
#CountFilePath# //统计路径
-->
<script runat="server">
string key;
string WebUserName;
int WebsiteId;
int AdvDetailedId=#AdvDetailedId#;
string fromurl;
string CountFilePath;
protected void Page_Load(Object Src, EventArgs E)
{
WebUserName=Codeschar(Request.Params["WebUserName"]); //取得用户名
fromurl=Server.UrlEncode(Request.Params["host"]);
WebsiteId=Convert.ToInt32(Codeschar(Request.Params["WebsiteId"]));
Random ro = new Random();
key=ro.Next(10000,999999).ToString()+WebUserName+WebsiteId+AdvDetailedId;
key=FormsAuthentication.HashPasswordForStoringInConfigFile(key ,"SHA1");
Session[WebUserName+"_key"]=key;
//Response.Write(fromurl);
CountFilePath="#CountFilePath#/count/count.aspx?AdvDetailedId="+AdvDetailedId+"&WebsiteId="+WebsiteId+"&WebUserName="+WebUserName+"&key="+key+"&fromurl="+fromurl;
//Response.Write(CountFilePath);
}
//字符过滤
public string Codeschar(string ch)
{
if(ch==null || ch=="")
{
return "";
}
else
{
ch=ch.Replace("\"","");
ch=ch.Replace(")","");
ch=ch.Replace("(","");
ch=ch.Replace(" ","");
ch=ch.Replace("[","");
ch=ch.Replace("]","");
ch=ch.Replace("20%","");
ch=ch.Replace(",","");
return ch;
}
}
</script>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
width:#width#;
height:#height#;
z-index:1;
}
-->
</style>
<div id="Layer1">
<a href="<%=CountFilePath%>" target="_blank">
<img src="../1.gif" width="#width#" height="#height#" border="0"/>
</a>
</div>
<img style="position:absolute;" src="#AdvImagePath##picurl#" width="#width#" height="#height#" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -