jquery_dom设置赋值id及表单内容
<button id="xj" type="button">设置class中的内容</button>
<button id="rxj" type="button">赋值class中的html代码及内容</button>
<button id="txj" type="button">赋值input表单是id的内容</button>
<button id="xj" type="button">设置class中的内容</button>
<button id="rxj" type="button">赋值class中的html代码及内容</button>
<button id="txj" type="button">赋值input表单是id的内容</button>
<button id="xj" type="button">获取class中的内容</button>
<button id="rxj" type="button">获取class中的html代码及内容</button>
<button id="txj" type="button">获取input表单中的内容</button>
<button id="gxj" type="button">左移动</button>
<button id="rxj" type="button">右移动</button>
<button id="txj" type="button">上移动</button>
<button id="txjb" type="button">下移动</button>
<body>
<button id="xj" type="button">向上滑动</button>
<button id="rxj" type="button">向下滑动</button>
<button id="gxj" type="button">上下切换滑动</button>
<body>
<button id="xj" type="button">淡出</button>
<button id="rxj" type="button">淡入</button>
<button id="txj" type="button">淡出/淡入</button>
<button id="hxjxjs" type="button">隐藏</button>
<button id="hxjn" type="button">显示</button>
<button id="xjswzr" type="button">显示/隐藏在一个按钮上</button>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("h2").mouseover(function(){
$(".chabox").css("display","block");
});
$("h2").mouseout(function(){
先引用jquery
<script type="text/javascript">
//底部浮层显示
var signUpMain=$(window).height();//获得浏览器高度
$(window).scroll(function(){
if($(window).scrollTop()>signUpMain){//如果鼠标划动大于浏览器高度,则fix-signup显示出来, fix-signup事先css设成了disp:none