我把hao123的这段代码 截取下来后 发现tab模块无法切换。怎么解决?
截取下来的代码是:- <!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>
- <base target="_blank" />
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <link rel="stylesheet" />
- <link rel="stylesheet" />
- <link rel="Stylesheet" />
- <link rel="Stylesheet" />
- </head>
- <body>
- <div class='m-tabl' id='m-tab' >
- <span data-id='hot' data-height='201'>热门彩种</span><span data-id='fc' data-height='201'>福彩</span><span data-id='tc' data-height='201'>体彩</span><span data-id='gp' data-height='201'>高频彩</span><span data-id='jj' data-height='168'>竞技彩</span>
- </div>
- <div class='m-box1 caipiao-list'>
- <!--[if lte IE 8]>
- <div class='m-box1-corner m-box1-corner_rt'></div>
- <div class='m-box1-corner m-box1-corner_lb'></div>
- <div class='m-box1-corner m-box1-corner_rb'></div>
- <![endif]-->
- <div id='caipiao-list' style='height:201px'>
- <div class='caipiao-g-info1' id='caipiao-g-info1'>
- <p >正在加载</p>
- <p><img src="/images/caipiao/ajax-loader.gif" alt='loading' /></p>
- </div>
- </div>
- <div class='caipiao-search'>
- <label>更多开奖查询:</label>
- <select id="area"><option selected="selected" value="none">选择地区</option></select>
- <select id="category"><option selected="selected" value="none">选择彩种</option></select>
- <select id="phase"><option selected="selected" value="none">选择期号</option></select>
- <button id="request"></button>
- <span class="info" id="info"></span></div>
- </div>
- <script type="text/javascript">var pageId = "hao123-caipiao";</script>
- <script type="text/javascript" src="http://www.hao123.com/js/subpage21.js"></script>
- <script type="text/javascript">
- var predictions = {50: 'http://baidu.lehecai.com/cms/list/3/'
- ,52: 'http://baidu.lehecai.com/cms/list/12/'
- ,51: 'http://baidu.lehecai.com/cms/list/24/'
- ,1: 'http://baidu.lehecai.com/cms/list/46/'
- ,3: 'http://baidu.lehecai.com/cms/list/16/'
- ,4: 'http://baidu.lehecai.com/cms/list/28/'
- ,2: 'http://baidu.lehecai.com/cms/list/48/'
- ,200: 'http://baidu.lehecai.com/cms/list/92/'
- ,201: 'http://baidu.lehecai.com/cms/list/53/'
- ,22: 'http://baidu.lehecai.com/cms/list/84/'
- ,7: 'http://baidu.lehecai.com/cms/list/40/'
- ,8: 'http://baidu.lehecai.com/cms/list/41/'
- ,20: 'http://www.lehecai.com/cms/list/317/'
- ,544: 'http://baidu.lehecai.com/cms/list/350/'
- }
- ;
- </script>
- <script type="text/javascript" src='http://www.hao123.com/js/caipiao/caipiao21.js'></script>
- <script type="text/javascript" src="http://s0.hao123.com/global/js/widget/g.sug.js"></script>
- <script type="text/javascript" src="http://www.hao123.com/static/js/public/head-base20.js"></script>
- <script src="http://www.hao123.com/js/monitor.js"></script>
- </body>
- </html>
复制代码 其他功能正常,就是TAB模块无法切换。但是我重新建立一个模板把所有的代码放进去后,前面的这段代码TAB切换就正常了。
是缺少哪段代码呢?大侠帮忙指出来。谢谢了。
原代码太长了,就不发了,你们可以自己去 caipiao.hao123.com 查看源文件。 |