`
sohighthesky
  • 浏览: 34707 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
我的小站: http://uedsky.com/ 我的博客地址: http://www.cnblogs.com/sohighthesky/ 或者我在csdn: http://blog.csdn.net/sohighthesky http://hi.csdn.net/sohighthesky
Set iee = CreateObject("InternetExplorer.Application") iee.Navigate "http://mail.sunupcg.cn:81/default.asp" iee.Visible = True WScript.Sleep 1000 iee.Document.f1.usernameshow.value="aa@sunupcg.com" iee.Document.f1.pwshow.value ="123456" Set sh=WScript.C ...
/** * Evalulates a script in a global context. */ globalEval: function(data) { if (data && REG_NOT_WHITE.test(data)) { // Inspired by code by Andrea Giammarchi // http://webreflection.blogspot.com/2007/08/gl ...

向前兼容

/** * Converts object to a true array. */ makeArray: function(o) { if (o === null || o === undefined) return []; if (S.isArray(o)) return o; // The strings and functions also have 'length' if (typeof o.length ...
老文章,在cnblogs里找的,有524个推荐。。。转载 今天是2008年的最后一天,为大家奉上今年的最后大餐,这篇文章将为大家总结08年国外一些比较不错的前端开发相关的教程、技巧、脚本、实例及工具资源等,有一些是翻译文章。实在是丰盛的需要消化很久…无论您是刚入门的前端开发菜鸟,还是有多年前端开发经验的高手,我相信下面的这些日志总会有您需要的! 工具&Web应用
实现代码: <iframe id="frame_content" src="iframe_b.html" frameborder="0" onload="this.height=100"></iframe> <!--这里onload不能去掉--> (function(ifr){ var b,d,h,t; setInterval(function(){ try { b=ifr.contentWindo ...
加第一条,添加文档的doctype<!doctype html> 现在也可以是:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   作为 Web 设计师,你的网站在各种浏览器中有完全 ...
<img src="http://www.uedsky.com/sky/demo/images/imagezoom/tong_s.jpg" id="img1"/> <input type="button" id="btn1" value="Copy Image"/> <script> function CopyImage(img) { if (img.tagName === 'IMG' && document.body.create ...
js对文字进行编码涉及3个函数:escape,encodeURI,encodeURIComponent,相应3个解码函数:unescape,decodeURI,decodeURIComponent 1、   传递参数时需要使用encodeURIComponent,这样组合的url才不会被#等特殊字符截断。                             例如:<script language="javascript">document.write('<a href="http://passport.baidu.com/?logo ...
(Confused? Read Detecting HTML5 Features for a conceptual introduction. Want an all-in-one library instead? Try Modernizr.) <audio> return !!document.createElement('audio').canPlayType; <audio> in MP3 format var a = document.createElement('audio'); return !!(a.canPlayType & ...
今天 用qq邮箱给一个朋友发excel文件内容时,由于excel列太多,而行不多时,qq邮箱里内容不会显示滚动条,这样就无法查看到右边的内容于是有了下面的内容: 当qq邮箱里因为不能显示滚动条而不能将内容显示完整时,可以打开邮件后将下面的内容 复制到浏览器的地址栏,然后回车,应该就能显示滚动条了 IE: javascript:var w=document.getElementById("mainFrame").contentWindow;w.document.getElementById("contentDiv").style.overflow=&qu ...
New in JavaScript 1.8.1(Firefox3.5) Object.getPrototypeOf() This new method returns the prototype of a specified object. Using native JSON Firefox 3.5 has native support for JSON. New trim methods on the String object The String object now has trim(), trimLeft(), and trimRight() methods. //faste ...
小贤是一条可爱的小狗(Dog),它的叫声很好听(wow),每次看到主人的时候就会乖乖叫一声(yelp)。 从这段描述可以得到以下对象: function Dog() { this.wow = function() { alert(’Wow’); } this.yelp = function() { this.wow(); } }小芒和小贤一样,原来也是一条可爱的小狗,可是突然有一天疯了(MadDog),一看到人就会每隔半秒叫一声(wow)地不停叫唤(yelp)。 请根据描述,按示例的形式用代码来实现(提示关键字: 继承,原型,setInterval) ...
群里出了个题: 下面弹出的结果是什么 ? var a = Function.prototype.call.apply(function (a) {return a}, [0,4,3]) alert(a) 滚动条到底部查看结果 相关链接:关于call和apply 结果 是4,下面是过程: 先执行apply方法,然后就相当于构造了下面的方法 var b = (function(a) {alert(this);//0 return a; }).call(0, 4, 3); alert(b) 相关应 ...
IE下setTimeout不能参数,如: setTimeout(function(a,b){ alert(a+"|"+b); },1000,123,456); 在非ie下都是可以的 //修复setTimeout bug,使用window.setTimeout调用 if(!+'\v1') { (function(f){ window.setTimeout =f(window.setTimeout); window.setInterval =f(window.setInterval); })(function(f){ ...
Global site tag (gtag.js) - Google Analytics