该插件的效果为:
以下为源代码: 欢迎转载但请注明出处Email:See7di@Gmail.com,Seven的部落格http://hi.baidu.com/see7di/home
<!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>
<script type="text/javascript" src="img/jquery-1.5.2.min.js"></script>
<script type='text/javascript'>
(function($){
//擴展:前臺clayer,針對常用項目使用
//$.clayer($(this));
//$.clayer("#id");
//onfocus="$.clayer(this);"
//onmouseover="$.clayer(this,29);"
//onmouseover="$.clayer(this,187,'line-height:24px;text-indent:30px;');"
//参数(初始對象或id,手柄的宽度,手柄的css)
$.clayer=function(_this,_width,_css){
$("#l_y").remove();
$("#c_y").remove();
$("#t_y").remove();
$("#p_y").remove();
if(typeof(_this)=='object'){_this=_this;}else{_this="#"+_this;}if(!_this){return;}
var _O,_H,_I;
try{
_O=$(_this).offset();
_width=(!_width)?(parseInt($(_this).css("width"))+6):parseInt(_width);
_H=parseInt($(_this).css("height"));
}catch(e){}
_I='<div ]},
];
相关文章: