上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 69 下一页
摘要: window.open()函数是三个参数window.open(url,name,param)url是打开的地址name是窗口标识名称param是打开窗口的一些参数<script language="javascript">function open1(){window.open('buy.htm','Leftd');//Leftd是target的名字}</script> 阅读全文
posted @ 2012-08-27 11:29 沐雪架构师 阅读(1110) 评论(0) 推荐(0) 编辑
摘要: 1substring() (1)用于提取字符串中介于两个指定下标之间的字符。语法:stringObject.substring(start,stop) start:必需。一个非负的整数,规定要提取的子串在第一个字符在 stringObject 中的位置。 stop;可选。一个非负的整数,比要提取的子串的最后一个字符在 stringObject 中的位置多 1。如果省 略该参数,那么返回的子串会一直到字符串的结尾。(2)返回值一个新的字符串,该字符串值包含 stringObject 的一个子字符串,其内容是从 start 处到 stop-1 处的所有字符,其长度为 stop 减 start。(下 阅读全文
posted @ 2012-08-27 11:28 沐雪架构师 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 1.在原来的窗体中直接跳转用window.location.href="你所要跳转的页面";2、在新窗体中打开页面用:window.open('你所要跳转的页面');window.history.back(-1);返回上一页3、一些用法按钮式:<INPUT name="pclog" type="button" value="/GO" onClick="location.href='连接地址'">链接式:<a href="javascri 阅读全文
posted @ 2012-08-27 11:28 沐雪架构师 阅读(694) 评论(0) 推荐(0) 编辑
摘要: <td onmouseover="this.style.cursor='hand'" onmouseout="this.style.cursor='normal'" ><span onmouseover="this.style.cursor='hand';" onmouseout="this.style.cursor='normal'>asfd</span> cursor其他取值 auto :标准光标 default :标准箭 阅读全文
posted @ 2012-08-27 11:26 沐雪架构师 阅读(4879) 评论(0) 推荐(0) 编辑
摘要: $(document).ready(function(){ $("html").die().live("keydown",function(event){ if(event.keyCode==13){ alert("捕获到回车键!"); } }); ); 注意 方法 要有参数 event 阅读全文
posted @ 2012-08-27 11:24 沐雪架构师 阅读(1990) 评论(0) 推荐(0) 编辑
摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title></title><script src="http://www.cnblogs.com/scripts/jquery-1.3.1.js" type="text/javascript"& 阅读全文
posted @ 2012-08-27 11:23 沐雪架构师 阅读(7067) 评论(0) 推荐(0) 编辑
摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title></title><script src="http://www.cnblogs.com/scripts/jquery-1.3.1.js" type="text/javascript"& 阅读全文
posted @ 2012-08-27 11:23 沐雪架构师 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 2种方法:View Code <!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/htm 阅读全文
posted @ 2012-08-27 11:22 沐雪架构师 阅读(367) 评论(0) 推荐(0) 编辑
摘要: <script src="http://www.cnblogs.com/scripts/jquery-1.3.1.js" type="text/javascript"></script><script type="text/javascript"> $(function(){ $('#btn').bind("myClick", function(){ $('#test').append("<p>我的自定义事件.</p&g 阅读全文
posted @ 2012-08-27 11:21 沐雪架构师 阅读(174) 评论(0) 推荐(0) 编辑
摘要: <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- 引入jQuery --><script src="http://www.cnblogs.com/scripts/jquery-1.3.1.js" type="text/javascript"></script> <script> 阅读全文
posted @ 2012-08-27 11:21 沐雪架构师 阅读(9245) 评论(0) 推荐(0) 编辑
上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 69 下一页