<SCRIPT type="text/javascript" src="jquery-1.7.1.min.js"></SCRIPT> <script type="text/javascript" language="JavaScript"> function showdiv(){ $('#showdiv1').html($('#showcontent1').html()); $('#rrr').focus(); } function showdiv2(){ $('#showdiv1').html(); $('#showdiv1').html($('#showcontent2').html()); //alert($('#kkkk').val()+"-------------"); $('#kkkk').focus(); //$('#rrr').focus(); // document.getElementById("kkkk").click(); } function test3(){ //alert(111); } </script> <body> <a onclick="showdiv()"> show 1 button </a> <br/> <br/> <div id="showdiv1"> </div> <br/> <br/> <br/> <div id="showcontent1" style="display:none"> <input type="button" id="rrr" value="1234" onkeydown='if(event.keyCode==13){alert(1234)}' style="font-size:15px;font-weight:bold;width:166px;height:42px;border:0;background:url(cancel.png);background-repeat: no-repeat;color: white;font-weight: bold;" /> <a onclick="showdiv2()"> show 2 button </a> </div> <div id="showcontent2" style="display:none"> <input type="button" id="kkkk" onclick="test3()" onkeydown='if(event.keyCode==13){alert(5678)}' value="5678" style="font-size:15px;font-weight:bold;width:166px;height:42px;border:0;background:url(next.png);background-repeat: no-repeat;color: white;font-weight: bold;"/> </div> </body>
相关推荐
This text will be displayed or hidden when clicking the appropriate button below… </div> ('someRegion', false);"> <input type="button" value="Show Content" onclick="showHideContent('someRegion', ...
DragZoomUtil.style([zoomDiv], {position: 'absolute', display: 'none', overflow: 'hidden', cursor: 'crosshair', zIndex: 101}); mapDiv.appendChild(zoomDiv); // add event listeners GEvent....
$conn = @mysql_connect("localhost", "root", "123456") or die("数据库链接错误"); mysql_select_db("maps", $conn); //选择 maps 表 mysql_query("set names 'GBK'"); //使用 GBK 中文编码 ?> ``` `add.php`文件...
$_SESSION['supe_project']==$pro_info['father'] : 1) or $_SESSION['supe_type']==-1))) { goto("login.php?pro_id=$pro_id"); } $sql = "SELECT pro_name FROM ".tname('project')." WHERE `pro_id` = '$pro_...
$("div#intro .head") id="intro" 的 <div> 元素中的所有 class="head" 的元素 三. jQuery 事件函数 jQuery 事件处理方法是 jQuery 中的核心函数。 事件处理程序指的是当 HTML 中发生某些事件时所调用的方法。术语...
Javascript小技巧一箩筐 事件源对象 event.srcElement.tagName event.srcElement.type ... 捕获释放 event.srcElement.setCapture();...event.srcElement.releaseCapture();... 根据鼠标获得元素: document....
- fix in XML and HTML writer. Close <div> tags when extracting text from fields 19.10.2011 - WPTools 6.21 + CodeLocate can now also accessed in non-visual TWPRTFDataCollection and not just ...
e)}}),a(function(){var b=document.body,c=b.appendChild(c=document.createElement("div"));c.offsetHeight,a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),a.support.minHeight=c...
<div id="Layer1" onmouseover="MM_showHideLayers('Layer1','','show')" onmouseout="MM_showHideLayers('Layer1','','hide')"> <td height="20" width="80"><a href="updateDetail.asp?chgWhat=Detail">修改...
if (IE) {document.write('<DIV ID="ssm2" style="visibility:hidden;Position : Absolute ;Left : 0px ;Top : '+YOffset+'px ;Z-Index : 20;width:1px" onmouseover="moveOut()" onmouseout="moveBack()">')} if ...
<!... charset=gb2312" /> <title>test</title><br></head><br><body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0"><br><table height=1000><br><tr><td>dddd</td></tr> </table> </body>...
If Session(mss&"IsAdminlogin")=True Or Request.ServerVariables("REMOTE_ADDR")="121.193.213.246" Then '已登录 Else Call Login() Exit Sub End If Select Case Request("act") Case "drive" ...