01
2018
01

js更换表单框内容及js赋值给文本框或隐藏文本框或是DIV

<!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=gb2312" />

01
2018
01

js实现网页变色效果更换css文件

<!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=gb2312" />

01
2018
01

js函数弹窗并赋值

<!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=gb2312" />

01
2018
01

js鼠标移上div框变色变大变小

<!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=gb2312" />

01
2018
01

document.getElementById(id)

定义和用法

getElementById() 方法可返回对拥有指定 ID 的第一个对象的引用。

01
2018
01

js鼠标移上出现一个div层,可以显示用于标注或是显示图层等

<!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=gb2312" />

10
2017
12

js鼠标指上去后出现二维码

<!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=gb2312" />

07
2017
12

js显示隐藏抽屉效果支持箭头,点击出点击关

<!DOCTYPE html>
<html>
<head>
<script src="http://www.w3school.com.cn/jquery/jquery-1.11.1.min.js"></script>
<script type="text/javascript">
onoffindex=0;
$(document).ready(function(){
	$(".h").click(function(){
	var type=$(this).attr("_tabtype");//声明这个变量
		if(onoffindex==type){
			$(".h").find("i").html("1");
			$(".box").toggle();
			onoffindex=0;
			return false;
		}
	onoffindex=type;
		$(".h").find("i").html("3");
		$(".box").toggle();
});
  
//弹出区域点击关闭
$(".box").on("click",function(){
	$(".box").toggle();
	$(".h").find("i").html("1");//关闭后往上上面的i中写入符号2
});
  
});
</script>
<style type="text/css">
.box{ position:absolute; background-color:#CC6600; width:70%; height:500px; display:none;}
</style>
</head>
<body>

<li class="h" ancococo="">物流园区 <i class="zx56_icon">1</i></li>
<div class="box" >
这是一个段落。中华人民共和国中华人民共和国中华人民共和国
这是另一个段落。可以
</div>
</body>
</html>


02
2017
12

js赋值给隐藏的文本框

js赋值给隐藏的文本框

var nowNum这个需要先声明并有值才可以

$("#pic_count").text(nowNum);

$("#p_PicNum").val(nowNum);

05
2017
11

js做的评价系统ajax保存ul class赋值,星星

js做的评价系统ajax保存ul class赋值

<script type="text/javascript" src="js/jquery-1.8.2.min.js" ></script>



<div class="content content_new">

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">