码迷,mamicode.com
首页 > Web开发 > 详细

web程序前台视频插件

时间:2014-10-27 12:59:35      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:des   http   io   os   ar   java   sp   文件   on   

需要引入两个js文件

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.ArrayList"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!doctype html public "-/w3c/dtd html 4.01 transitional/en" "http://www.w3.org/tr/html4/loose.dtd">
<%
 String video_url = (String)request.getSession().getAttribute("url");
 String url = video_url.substring(46, video_url.length());
 String videoName = video_url.substring(70, video_url.length());
 System.out.println(url);
 
%>
<script type="text/javascript" src="${ctx}/resources/media/jquery.media.js"></script>
<script type="text/javascript" src="${ctx}/resources/media/jquery.metadata.js"></script>
<html>
<head>
 <title>JQuery视频插件</title>
    <meta http-equiv="pragma" content="no-cache">
 <meta http-equiv="cache-control" content="no-cache">
 <meta http-equiv="expires" content="0">
 <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
 <meta http-equiv="description" content="MMPS">
</head>
<body>
 <script type="text/javascript">
  $(‘a.media‘).media();
 </script>

 <a class="media {width:480, height:425}" href="<%=url%>"><%=videoName %></a>
</body>
</html>

web程序前台视频插件

标签:des   http   io   os   ar   java   sp   文件   on   

原文地址:http://my.oschina.net/u/1034481/blog/337647

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!