87,901
社区成员
发帖
与我相关
我的任务
分享
var caps = new Array("国家发改委将编", "adadadsdad ", "", "", ""); //定义文本
$('#cap').html(caps[0]); //输出文本cap 在前台页面时P标签
* http://cssglobe.com/post/4004/easy-slider-15-the-easiest-jquery-plugin-for-sliding
*
* Copyright (c) 2009 Alen Grakalic (http://cssglobe.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Built for jQuery library
* http://jquery.com
*
*/
/*
* markup example for $("#slider").easySlider();
*
* <div id="slider">
* <ul>
* <li><img src="images/01.jpg" alt="" /></li>
* <li><img src="images/02.jpg" alt="" /></li>
* <li><img src="images/03.jpg" alt="" /></li>
* <li><img src="images/04.jpg" alt="" /></li>
* <li><img src="images/05.jpg" alt="" /></li>
* </ul>
* </div>
*
*/
(function($) {
$.fn.easySlider = function(options) {
//add custom titles of images here
var caps = new Array("<a href='http://news.hexun.com/2010-05-27/123811962.html' target='_blank'> 国家发改委将编制“十二五”产业废物利用规划</a>"); //定义文本
this.each(function() {
$('#cap').html(unescape(caps[0])); //输出文本cap 在前台页面时P标签
}
}
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style/css/style.css" rel="Stylesheet" type="text/css"/>
<script src="JQuery/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="JQuery/easySlider1.5.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
$(function() {
$("#slider").easySlider({
controlsBefore: '<p id="controls">',
controlsAfter: '</p>',
auto:true,
continuous: true
});
});
</script>
</head>
<body >
<div id="caption">
<p id="cap"></p>
</div>
</body>
</html>
var caps = new Array("\u56fd\u5bb6\u53d1\u6539\u59d4\u5c06\u7f16", "adadadsdad ", "", "", ""); //定义文本
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>三行三列</title>
<style>
</style>
<script src="jquery-1.3.2.js"></script>
<script>
$(function(){
var caps = new Array("国家发改委将编", "adadadsdad ", "", "", ""); //定义文本
$('#cap').html(caps[0]); //输出文本cap 在前台页面时P标签
});
</script>
</head>
<body>
<p id="cap"></p>
</body>
</html>