当前位置:网站首页>JQ implements tab switching
JQ implements tab switching
2022-06-25 19:33:00 【Bin daotianxia】
<!-- html Code begin -->
<div id="outer">
<ul id="tab" class="">
<li class="ck"> title 1</li>
<li> title 2</li>
<div class="clearfix"></div>
</ul>
<div id="content">
<ul style="display:block;">
11111111
</ul>
<ul style="display:none;">
222222222222
</ul>
</div>
</div>
<!-- html Code end --><script src="http://www.lanrenzhijia.com/ajaxjs/jquery.min.js"></script>
<script>
$(function(){
window.onload = function()
{
var $li = $('#tab li');
var $ul = $('#content ul');
$li.mouseover(function(){
var $this = $(this);
var $t = $this.index();
$li.removeClass();
$this.addClass('ck');
$ul.css('display','none');
$ul.eq($t).css('display','block');
})
}
});
</script>
边栏推荐
- Shell jump loop shift parameter left use of function
- Yum command
- Overview and trend analysis of China's foreign direct investment industry in 2020 [figure]
- Apifox simple understanding -- the integrator of web side testing
- Jump jump games auxiliary (manual version) py code implementation
- Is CICC wealth safe? How long does it take to open an account
- Tcp/ip test questions (4)
- Analyse du code source du processus d'acquisition et de connexion hikaricp II
- 网络安全检测与防范 练习题(三)
- 为什么生命科学企业都在陆续上云?
猜你喜欢

PHP Chinese regular

Ali vision AI training camp-day01
![2021 development status of China's cloud game industry and analysis of major service providers: Although cloud games are still in their infancy, the market prospect is huge [figure]](/img/82/84072a7b125f81363fb26ac56e9d27.jpg)
2021 development status of China's cloud game industry and analysis of major service providers: Although cloud games are still in their infancy, the market prospect is huge [figure]

Gbpnzd firm offer for 14 months, simulation for 19 months, test stable

SEO outsourcing reliable company, enterprise SEO outsourcing company which reliable?

Vulnhub range - the planes:venus

Vulnhub range the planes:earth

Vulnhub range - correlation:2

On location and scale in CNN

广州华锐互动VR全景为各行各业带来发展
随机推荐
谈谈CNN中的位置和尺度问题
How to quickly close port 8080
Idea common plug-ins
Can GoogleSEO only do content without external chain? (e6zzseo)
Solve the problem that sublime Text3 package control cannot install plug-ins
PHP database connection version1.1
Shell jump loop shift parameter left use of function
Solidity contract address to wallet, wallet address to contract
三、HikariCP获取连接流程源码分析三
Vulnhub range - the planes:venus
最新數據挖掘賽事方案梳理!
【C语言练习——打印上三角及其变形(带空格版)】
QQ机器人官方插件加载配置方法【beta2版本】
请问同花顺开户安全吗?
PHP Chinese regular
DataX script task development record
Cutting feet to fit shoes - talking about the ramp reconstruction on the track
MySQL prompt performance_ Schema missing table
Vulnhub range - darkhole 1
PHP synchronizes website content to hundreds of websites to improve SEO ranking