简单的选择器
来源:互联网 发布:java api1.7文档下载 编辑:程序博客网 时间:2024/05/16 16:19
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title> New Document </title> <meta name="Generator" content="EditPlus" charset="utf-8"/> <meta name="Author" content=""> <meta name="Keywords" content=""> <meta name="Description" content=""> <style type="text/css">.select{background-color:#f00;} </style> </head> <script type="text/javascript" src="js/jquery-1.7.min.js"></script> <script type="text/javascript">function test(a,b,c,d){a.click(function(){if($("#div"+b+" .select").length==0){alert("请选择语言!");}else if($("#div"+b+" .select").length>1&&d==1){alert("不能同时对多种语言进行操作");}else{c.append($("#div"+b+" .select"));$("#div"+b+" .select").remove();}})}$(document).ready(function(){$("#div1 p").toggle( function(){ $(this).addClass("select");}, function(){ $(this).removeClass("select"); });test($("#b1"),1,$("#div3"),0);test($("#b2"),1,$("#div3"),1);test($("#b3"),3,$("#div1"),1);test($("#b4"),3,$("#div1"),0);}) </script> <body> <div id="div0" style="width:400px;heigth:200px;"><div id="div1" style="border:1px solid #000000;width:150px;height:250px;float:left;"> <p id="p1">俄语</p> <p id="p2">日语</p> <p id="p3">英语</p> <p id="p4">德语</p> <p id="p5">法语</p> <p id="p6">其他外语</p></div><div id="div2" style="width:40px;float:left;"><p><input type="button" value=">>" id="b1" style="width:40px;"></p><p><input type="button" value=">" id="b2" style="width:40px;"></p><p><input type="button" value="<" id="b3" style="width:40px;"></p><p><input type="button" value="<<" id="b4" style="width:40px;"></p></div><divid="div3" style="border:1px solid #000000;width:150px;height:250px;float:left;"></div></div> </body></html>
- Jquery-选择器-简单的选择器
- jquery 简单的选择器
- 简单的选择器
- 简单的选择器
- 简单选择器的使用
- 简单的时间选择器
- 一款简单的年月日选择器
- jquery选择器的简单应用
- 一个简单的日期选择器
- jQuery 的选择器 简单总结
- 简单的时间选择器DatePickerDialog
- android 选择器的简单使用
- 一个简单的图片选择器
- 简单的日历选择器 LDCalendarView
- Android selector 图片选择器 背景选择器的简单用法
- Jquery简单过滤选择器(应用最广泛的选择器)
- 关于日期选择器和时间选择器的简单应用
- 简单的面向对象的颜色选择器
- 百钱百鸡问题
- EL表达式
- “穷举法”
- Box2D v2.1.0用户手册翻译 - 第03章 公共模块(Common)
- 浅谈实时数据流计算
- 简单的选择器
- Jquery控制只能输入数字
- IOS中获取各种文件的目录路径的方法
- Box2D v2.1.0用户手册翻译 - 第04章 碰撞模块(Collision Module)
- 从程序员到项目经理(三):认识项目经理
- Box2D v2.1.0用户手册翻译 - 第05章 动态模块(Dynamics Module)
- 百钱百鸡问题。、
- 鸡
- linux 特殊权限