경량급 자바 script 라 이브 러 리 pj 소개
4201 단어 javascript 라 이브 러 리pj
")를 추출 합 니 다.//div pj 생 성("
내용
");/내용 이 있 는 div 정적 속성 과 방법 만 들 기 LEFTPOSITION RIGHT_POSITION TOP_POSITION BOTTOM_POSITION LEFT_TOP_POSITION LEFT_BOTTOM_POSITION RIGHT_TOP_POSITION RIGHT_BOTTOM_POSITION ready(fn); extend(target,fn); bind({method:function(){}}) isObject(elem) isFunction(elem) isArray(elem) isString(elem) trim(str) merge(target,src) getStyle(target,name) setStyle(target,{}) mouseX(e) mouseY(e) stopBubble(e) stopDefault(e) pageHeight() pageWidth() windowHeight() windowWidth() setOpacity(target,value) enableDrag(trigger,target) parseToQueryString(form) isContain(parent,child) id(id) tag(tag) resetCSS(target,{}) x(target) y(target) wh(target,name)pj 대상 속성 과 방법 timer length get()each()addListener()attr()removeAttr()stop()appendTo()remove()addClass()removeClass()setClass()cut()step()setLocationRelatedTo()isVisible()locate()bind()getStyle()setStyle()abort()blur()change()click()dblclick()error()focus()keypress()keypress()load()unload()moused()mousemove()mouseout()mouseover()mouseup()reset()resize()select()submit()left()top()right()bottom()high()width()animate()slideDown()slideRight()slideLeft()scrollDown()scrollUp()scroll 오른쪽()scroll 왼쪽()hide()show()fadeIn()fadeOut()작은 프레젠테이션
<!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=utf-8" />
<title> </title>
<style type="text/css">
.cmd{
width:300px;
height:150px;
background:#F9F;
border:1px solid #9F6;
}
</style>
<script type="text/javascript" src="http://users4.jabry.com/pengju/src/pj-2.1.0.mini.js"></script></head>
<body>
<input type="button" value="test" />
<div class="cmd"></div>
<div class="cmd"></div>
<div></div>
<script type="text/javascript">
pj("div.cmd:1").hide(800,function(){
pj("div.cmd:0").hide({duration:400,effect:tween.quint.easeIn});
});
pj("input").click(function(){
pj("<div>").appendTo(document.body).setStyle({position:"absolute",left:"0px",top:"0px",backgroundColor:"green"}).animate({width:200,height:80,left:200,top:240},{duration:1000,effect:{top:tween.bounce.easeOut,left:tween.linear}},function(){this.hide(1000)});
});
</script>
</body>
</html>
포장 다운로드 주소https://www.jb51.net/jiaoben/33561.html