日期:2014-05-17 浏览次数:20851 次
<!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" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
<title>多选项卡测试</title>
<link rel="stylesheet" type="text/css" href="CSS/publicStyle.css" />
<style type="text/css">
#programeBody{ height:30px; background-color:#66CCFF;}
#programeBody a{ display:block; height:30px; line-height:30px; width:90px; margin-right:5px; background-color:#003366; color:#FFFFFF; float:left; text-align:center; overflow:hidden; position:relative;}
#programeBody .sel{ background-color:#FF3300;}
#programeBody .close{ display:block; position:absolute; top:0px; right:0px; height:10px; width:10px; border:1px solid #FF0000; background-color:#FFFFFF; text-align:center; line-height:10px; color:#333333; overflow:hidden;}
#bottom{ height:30px; line-height:30px; background-color:#CCCCCC;}
</style>
<script language="javascript" src="js/jquery.js"></script>
<script language="javascript" src="js/iframe.js"></script>
</head>
<body>
<div id="mainpage">
<div id="programeBody" class="programeObject" moveButton="1" move="w" sel="1" content="programeContent">
<a href="http://www.csdn.net/article/2013-02-25/2814257-iWatch-will-usher-in-Time-Based-UI">查看A</a>
</div>
<div id="programeContent"></div>
</div>
<div id="bottom"><a href="http://www.csdn.net/article/2013-02-25/2814257-iWatch-will-usher-in-Time-Based-UI" class="programeButton" name="页面A" to="programeBody">查看A</a> <a href="http://www.csdn.net/article/2013-02-10/2814117-speculates-on-future-iwatch" class="programeButton" name="页面B" to="programeBody">查看B</a></div>
</body>
</html>
//================ 全局变量 =========================
var CW=0; //main页面内容框宽度
var CH=0; //main页面内容框高度
var PM=new Array(); //存放选项卡对象数组
$(document).ready(function(){
CW=$("body").width();
CH=$("body"