📄 readbrowsecookie.jsp
字号:
<%@ page language="java" contentType="text/html;charset=GBK" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="keywords" content="新华人寿保险股份有限公司,新华人寿,新华">
<link href="/NCL/global/css/ie.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin=0 topmargin=0>
<script>
var HTMLStr="";
<!-- 读cookie start -->
HTMLStr ='<table width=100% cellspacing=0 cellpadding=0 border=0 >';
HTMLStr+='<tr>';
HTMLStr+=' <td colspan=3><img src="/NCL/global/images/head/NCL_readCookie_top.jpg"></td>';
HTMLStr+='</tr>';
<%
String cookiebrowsehistory="";
String readstr="";
try{
Cookie readmyCookie[]=request.getCookies();
if (readmyCookie.length>0){
for(int i=0;i<readmyCookie.length;i++) {
if(readmyCookie[i].getName().equals("COOKIE_BROWSE_HISTORY")) {
cookiebrowsehistory = readmyCookie[i].getValue();
readstr = java.net.URLDecoder.decode(cookiebrowsehistory);
String[] BrowseList = readstr.split("&&");
for (int j=BrowseList.length-1;j>=0;j--){
String[] BrowseItemList = BrowseList[j].split("</channelName><channelUrl>");
%>
HTMLStr+=' <tr height=25>';
<%
for (int k=0;k<BrowseItemList.length-1;k++){
%>
HTMLStr+=' <td> </td><td> <img src="/NCL/global/images/head/title_index_right.gif"> </td><td><span style="cursor:hand;" onclick="gotoUrl(\'<%=BrowseItemList[k+1].replaceAll("</channelUrl>","")%>\');" ><%=BrowseItemList[k].replaceAll("<channelName>","")%></span></td>';
<% }%>
HTMLStr+=' </tr>';
HTMLStr+=' <tr>';
HTMLStr+=' <td colspan=3 background="/NCL/global/images/head/newslistline2.gif"></td>';
HTMLStr+=' </tr>';
<%}
break;
}
}
}
}catch(Exception e){
}
%>
HTMLStr+='<tr><td height=100%></td></tr>';
HTMLStr+='</table>';
window.parent.visitrecordcookie.innerHTML=HTMLStr;
</script>
<!-- 读cookie end-->
<body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -