• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
PHP开发记录
PHP以及web前端(ajax,js,jquery等)
博客园 首页 新随笔 管理
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 83 下一页

2008年12月29日

托拽购物车
摘要: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> <!-- saved from url=(0052)http://bbs.okajax.com/ximen/kj/jqinterface/cart.html --> <HTML xmlns="http://www.w3.org/1999/xhtml">&l 阅读全文
posted @ 2008-12-29 12:48 corange 阅读(100) 评论(0) 推荐(0)
 
jQuery双色表格的实现
摘要: <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>jquery</title><scripttype="text/javascript"src="jquer 阅读全文
posted @ 2008-12-29 12:47 corange 阅读(257) 评论(0) 推荐(0)
 
 

2008年12月28日

从iframe中打开文件,并检测iframe存在否...
摘要: 如果说只是检测页面存在否,直接设置target用伪协议就可以解决了... 不过是iframe[name]的话,就涉及onload的问题了...所以就麻烦了许多.... 以下只是加了延迟...并没有"真正"的处理onload的问题....其实可以循环window.open来解决,不过懒的弄就略了...^^ <a href="javascript:void(0);" onclick="openC('http://www.google.cn/', 'cs', this)">google</a 阅读全文
posted @ 2008-12-28 20:34 corange 阅读(137) 评论(0) 推荐(0)
 
Javascript typeof用法
摘要: 在js里用到数组,比如 多个名字相同的input, 若是动态生成的, 提交时就需要判断其是否是数组. if(document.mylist.length != "undefined" ) {} 这个用法有误. 正确的是 if( typeof(document.mylist.length) != "undefined" ) {} 或 if( !isNaN(document.mylist.length) ) {} typeof的运算数未定义,返回的就是 "undefined". 运算数为数字 typeof(x) = "numbe 阅读全文
posted @ 2008-12-28 20:33 corange 阅读(158) 评论(0) 推荐(0)
 
 

2008年12月27日

js中的继承实现
摘要: 在JavaScript中,继承可以用四种方式实现, 1、对象冒充 感觉这种方式利用了js中类和函数的模糊性,同是function关键字申明方法,既可以说他是函数,也可以说他是类,js太灵活了,下面的例子说明下: function ClassA(sColor){ this.color=sColor; this.sayColor=function(){ alert(this.color); } } function ClassB(sColor){ this.newMethod=ClassA;//把ClassA方法赋给newMethod. this.newMethod();//调用newMethod 阅读全文
posted @ 2008-12-27 19:12 corange 阅读(147) 评论(0) 推荐(0)
 
 
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 83 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3