WebRoot/index.jsp

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.inloam.common.QueryAssistant"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="http://www.uur.cn/wp-content/themes/uur/images/favicon.ico" />
<title><%=com.inloam.common.Constant.SYS_NAME %></title>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/pages/style.css"/>
<script type="text/javascript" src="common/jquery.js" charset="utf-8"></script>
<style type="text/css" media="screen">
		/* Style the demo page */
		* { margin: 0; padding: 0; }
		h1 { font: normal 24px helvetica; color: #09afed; }
		p { padding-bottom: 20px; }
		
		/* Slideshow code from here */
		.slideshow { position: relative; background: #fafafa; width: 1000px; height: 205px; border: 1px solid #e5e5e5; margin-bottom: 20px; }
		.slideshow img { position: absolute; top: 3px; left: 3px; z-index: 1; background: #fff; }
		ul.recentlist { position: absolute; bottom: 12px; right: 4px; list-style: none; z-index: 2; }
		ul.recentlist li { margin: 0; padding: 0; display: inline; }
		ul.recentlist li a, ul.recentlist li a:visited { display: block; float: left; background: #e5e5e5; padding: 4px 8px; margin-right: 1px; color: #000; text-decoration: none; cursor: pointer; }
		ul.recentlist li a:hover, ul.recentlist li a:visited:hover { background: #666; color: #fff; }
		ul.recentlist li a.current { background: #f00; color: #fff; }
	</style><% 
	String username = (String)request.getSession().getAttribute("username"); 
	String flag = "yes";
	if(username==null||"".equals(username)){
		flag = "no";
	}
%>
	<script type="text/javascript">
	function buy(productId){
	if("no"=="<%=flag%>"){
		alert("请先登录!");
		window.location.href="<%=request.getContextPath()%>/login.action?method=index";
	}else{
		window.location.href="<%=request.getContextPath()%>/pages/productDetail.jsp?productId="+productId;
	}
}
	$(document).ready(function() {
		var imgWrapper = $('.slideshow > img');
		// only show the first image, hide the rest
		imgWrapper.hide().filter(':first').show();
		
		$('ul.recentlist li a').click(function () {
		
			// check if this item doesn't have class "current"
			// if it has class "current" it must not execute the script again
			if (this.className.indexOf('current') == -1){
				imgWrapper.hide();
				imgWrapper.filter(this.hash).fadeIn(500);
				$('ul.recentlist li a').removeClass('current');
				$(this).addClass('current');
			}
			return false;
		});
	});
	</script>
<body>
后面还有 76 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。