<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>模拟Tabs效果</title>
<link rel="stylesheet" href="./css/ui-lightness/jquery-ui-1.8.18.custom.css">
<script type="text/javascript" language="JavaScript" src="./js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" language="JavaScript" src="./js/jquery-ui-1.8.18.custom.min.js"></script>
<script type="text/javascript" language="JavaScript">
$(function(){
$("#tabs").tabs({
event:"mousemove",
fx:{ opacity: 'toggle'},
selected:0
});
});
</script>
</head>
<body>
<h1>模拟tabs效果</h1>
<div id="tabs">
<ul>
<LI><a href="#tab-1">面板1</a></LI>
<LI><a href="#tab-2">面板2</a></LI>
<LI><a href="#tab-3">面板3</a></LI>
<!--ajax处理数据-->
<LI><a href="#tab-4">面板4</a></LI>
</ul>
<div id="tab-1">
新闻:
<img src="./pic/1.png">
</div>
<div id="tab-2">
体育新闻:
<img src="./pic/2.png">
</div>
<div id="tab-3">
<img src="./pic/3.png">
</div>
<div id="tab-4">
社会新闻:
<img src="./pic/4.png">
</div>
</div>
</body>
</html>
jQuery选项卡
最新推荐文章于 2024-08-22 14:32:34 发布