用js设置的
具体你可以看他的http://demo.phpcms.cn/images/js/css.js$(document).ready(function(){
$("input[type='text']").addClass('input_blur');
$("input[type='password']").addClass('input_blur');
$("input[type='submit']").addClass('button_style');
$("input[type='reset']").addClass('button_style');
$("input[type='button']").addClass('button_style');
$("input[type='radio']").addClass('radio_style');
$("input[type='checkbox']").addClass('checkbox_style');
$("input[type='textarea']").addClass('textarea_style');
$("input[type='file']").addClass('file_style');
$("input[type='file']").blur(function () { this.className='input_blur'; } );
$("input[type='file']").focus(function () { this.className='input_focus'; } );
$("input[type='password']").blur(function () { this.className='input_blur'; } );
$("input[type='password']").focus(function () { this.className='input_focus'; } );
$("input[type='text']").blur(function () { this.className='input_blur'; } );
$("input[type='text']").focus(function () { this.className='input_focus'; } );
$("textarea").blur(function () { this.className='textarea_style'; } );
$("textarea").focus(function () { this.className='textarea_focus'; } )
$(".table_list tr").mouseover(function () { this.className='mouseover'; } );
$(".table_list tr").mouseout(function () { this.className=''; } );
$("#title").focus(function () { this.className='inputtitle'; } );
$("#title").blur(function () { this.className='inputtitle'; } ); $('img[tag]').css({cursor:'pointer'}).click(function(){
var flag=$(this).attr('tag');
var fck=$('#'+$(this).attr('fck')+'___Frame'); var fckh=fck.height();
(flag==1)?fck.height(fckh+120):fck.height(fckh-120) ;
});});
具体你可以看他的http://demo.phpcms.cn/images/js/css.js$(document).ready(function(){
$("input[type='text']").addClass('input_blur');
$("input[type='password']").addClass('input_blur');
$("input[type='submit']").addClass('button_style');
$("input[type='reset']").addClass('button_style');
$("input[type='button']").addClass('button_style');
$("input[type='radio']").addClass('radio_style');
$("input[type='checkbox']").addClass('checkbox_style');
$("input[type='textarea']").addClass('textarea_style');
$("input[type='file']").addClass('file_style');
$("input[type='file']").blur(function () { this.className='input_blur'; } );
$("input[type='file']").focus(function () { this.className='input_focus'; } );
$("input[type='password']").blur(function () { this.className='input_blur'; } );
$("input[type='password']").focus(function () { this.className='input_focus'; } );
$("input[type='text']").blur(function () { this.className='input_blur'; } );
$("input[type='text']").focus(function () { this.className='input_focus'; } );
$("textarea").blur(function () { this.className='textarea_style'; } );
$("textarea").focus(function () { this.className='textarea_focus'; } )
$(".table_list tr").mouseover(function () { this.className='mouseover'; } );
$(".table_list tr").mouseout(function () { this.className=''; } );
$("#title").focus(function () { this.className='inputtitle'; } );
$("#title").blur(function () { this.className='inputtitle'; } ); $('img[tag]').css({cursor:'pointer'}).click(function(){
var flag=$(this).attr('tag');
var fck=$('#'+$(this).attr('fck')+'___Frame'); var fckh=fck.height();
(flag==1)?fck.height(fckh+120):fck.height(fckh-120) ;
});});
解决方案 »
- js怎么过滤特定符号
- JS confirm()对话框,如何让光标默认位置在取消按钮上?
- js动态生成table如何设置table样式(急。。。。在线等)
- 做过js+html打印的,来看一下。
- Ext.ux.UploadDialog大文件上传
- 当浏览器窗口移动的时候如何通过js捕获
- javascript showmodaldialog不能隐藏打开,想有没有其它办法实现我如下的功能。在线等。。。
- 如何让IE不屏蔽JAVASCRIPT、ActiveX和弹出对话框(不通过IE设置,完全用程序完成,非恶意,只是工作需要)
- 请问用js 怎么控制一个标签下(如TD)遍历所有图片 控制其显示高度和宽度
- 如何从子窗口去动态增加父窗口的控件??
- 新手问两个比较弱智的正则问题
- 用f c k的时候copy目标网页到编辑器得时候,如果目标页面有图片,如果这个网站做了防盗链
<a href="#" id="anchor">...</a>
如果有
<script>
var anchor = document.getElementById("anchor");
anchor.onclick = f();
</script>
那么它跟
<a href="#" id="anchor" onclick="f();">...</a>
大致上是一个意思
anchor.onclick = function() {...};
anchor.onclick = function() {...};
anchor.onclick = f; //相当于:anchor.onclick = function(){ alert('f') }<a href="#" id="anchor" onclick="f();">... </a> //相当于:anchor.onclick = function(){ f(); }