一、问题描述类比一下,我用input.select()做了测试,却能响应select事件。这个原因先放一边,我们看看先怎么把眼下的问题解决了。不响应事件的代码示例:[html]<formid="form1"action="http://www.jb51.net"></form><scripttype="text/javascript">varform=document.getElementById('form1');form.onsubmit=function(){alert(1);};form.submit();</script>[/html]...
http://www.jb51.net//article/16196.htm
如果直接调用mysql_connect会出现:Fatalerror:Calltoundefinedfunctionmysql_connect()的错误解决办法,找到zendstudiophp.ini所在的位置我的zendstudio安装在D:\ProgramFiles\所以php.ini所在位置为:D:\ProgramFiles\Zend\ZendStudioforEclipse-6.0.0\plugins\org.zend.php.debug.debugger.win32.x86_5.2.12.v20071210\resources\php5在此文件夹中新建ext文件夹,并copyphp_m...
http://www.jb51.net//article/16161.htm
[html]<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><metahttp-equiv="Content-Type"content="text/html;charset=gb2312"><title>zhou'shtml</title></head><body>一共三个层,下面还有一个,把他拖上来<divid="test"st...
http://www.jb51.net//article/16122.htm
functionClear(DataType,DataThis,DataTime,DataInterval)DataType布尔值--是否隐藏或显示DataThis元素--被操作元素DataTime数字--发生渐变时间DataInterva数字--渐变刷新间隔以下是HTML网页特效代码,[html]<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN"><html><head><metahttp-equiv="Content-Type"content="text/html;charset=gb2...
http://www.jb51.net//article/16121.htm
<?phpob_start();setcookie("username","宋岩宾",time()+3600);echo"theusernameis:".$HTTP_COOKIE_VARS["username"]."\n";echo"theusernameis:".$_COOKIE["username"]."\n";print_r($_COOKIE);?>Warning:Cannotmodifyheaderinformation-headersalreadysentby出错的原因我在php程序的头部加了,header("cache-control:no-cache,must-rev...
http://www.jb51.net//article/16106.htm
完整的css代码为[code]word-wrap:break-word;overflow:hidden;[/code]这段代码应添加到td标签的样式中。另外,应该在外层的table标签中添加样式[code]table-layout:fixed;[/code]...
http://www.jb51.net//article/16099.htm
IE与火狐下可以跑.//回车事件处理$(document).keydown(function(event){if(event.keyCode==13){alert($('#idone').val());//回车键盘ISBN获取if($('#idone').val()=='isbn'){//isbncheck();$('#ztm').focus();}elseif($('#idone').val()=='ztm'){$('#bltm').focus();}if($('#idone').val()=='bltm'){$('#ftm').focus();}elseif($('#idone').val...
http://www.jb51.net//article/16059.htm
[html]<html><head><title>测试for..in</title><scriptlanguage="javascript"><!--varanObject=document;varpropertyInfo="";for(varpropertyNameinanObject){propertyInfo=propertyName+"="+anObject[propertyName];document.write(propertyInfo+"[br]");}//--></script></hea...
http://www.jb51.net//article/16014.htm
页面中有一个数据列表,是table,放在一个div窗口中,结构如下:[code]<body><divid="container"><tableid="grid">....列表数据....</table></div></body>[/code]给container设置了样式#container{width:100%;margin:10px;}给grid设置了样式#grid{width:100%}测试结果在IE中正常,在Firefox下container的实际宽度会超过100%而出现横向滚动条,因为Firefox把margin...
http://www.jb51.net//article/15782.htm
在IE下,我们可以轻松使用以下代码来实现设置主页:[html]<aclass="chlnk"style="cursor:hand;font-weight:bold;color:#004080;font-family:Verdana"HREFonClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.jb51.net');">Clickheretomakedevdao.comyourdefaulthomepage!</a>[/html]然而,在firefox下是不行的...
http://www.jb51.net//article/15750.htm
Hihi,大家好~ 最近有不少人都提及了网页上该如何选择字体的问题。问题虽然小,但是却是前端开发中的基本,因为目前的网页,还是以文字信息为主,而字体,作为文字表现形式的最重要参数之一,自然有着相当重要的地位。可惜字体的重要性在很长时间内并没有得到足够的重视。很多人对字体的概念还是停留在font-family:"宋体",Arial,Helvetica,serif的阶段,却不明白为什么这样设置,这样设置是否合理等等。现在就让我说说字体的来龙去脉吧。-font-family大家知道CSS规则中定义字体是通过font-family这条规则来实现的。仔细翻翻CSS的文档,却没有发现任何能指定某...
http://www.jb51.net//article/15646.htm
