<div class="codetitle"> <span><a style="CURSOR: pointer" data="66119" class="copybut" id="copybut66119" onclick="doCopy('code66119')"><u>复aze代码</u></a></span> 代码如下:</div> <div class="codebody" id="code66119"> <br><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 전환//EN" "http://www.w3.org/TR/html4/loose.dtd"> <br><html> <br><머리> <br><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <br><script type="text/javascript" src="../src/YESBRAIN.js"></script> <br><script type="text/javascript" src="../src/JSQL.js"></script> <br><script type="text/javascript" src="../src/JSQL-DOM.js"></script> <br><title>로고 이미지 전환</title> <br></head> <br><본문> <br><button onClick="switchlogos();"> 切换 로고 </button> <br><br><script type="text/javascript"> <br>title1 = "구글"; <br>title2 = "바이두"; <br>logo1 = "images/google.gif"; <br>logo2 = "images/baidu.gif"; <br>function switchlogos() { <br>//alert('switch'); <br>var tmplogo = 로고1; <br>var tmptitle = title1; <br>로고1 = 로고2; <br>제목1 = 제목2; <br>logo2 = tmplogo; <br>title2 = tmp제목; <br>("update logolist set src='" logo1 "', title='" title1 "'").ForDOM().execute(); <br>}; <br>'테이블 로고 목록 생성'.ForDOM().executeSQL(); <br>for(var i=0;i<100;i ) { <br>"logolist(nodename,title,src) 값에 삽입('img','google','images/google.gif')" .ForDOM().execute(); <br>}; <br>//("(1=1)인 로고 목록에서 삭제").ForDOM().execute(); <br><br></script> <br></body> <br></html> <br> </div> <br>其中 ,还用到了JSQL의 DOM 머니원素插入操작: <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="57833" class="copybut" id="copybut57833" onclick="doCopy('code57833')"><u>复代码</u></a></span> 代码如下: </div> <div class="codebody" id="code57833"> <br>'테이블 로고 목록 생성'.ForDOM().executeSQL(); <br>for(var i=0;i<100;i ) { <br>"logolist(nodename,title,src) 값에 삽입('img','google','images/google.gif')" .ForDOM().execute(); <br>};<br> </div> <br>欢迎各位拍砖! <br><a href="http://www.jb51.net/jiaoben/26138.html" target="_blank">jsql javascript</a> 下载地址