随笔分类 - javascript
摘要:js代码块var xmlRequest;function getXMLRequestObject() { if (window.XMLHttpRequest) { //针对FireFox,Mozillar,opera,safari,IE7,IE8 xmlRequest = new XMLHttpRequest(); //针对某些特定版本的mozillar浏览器的bug修正 if (xmlRequest.overrideMimeType) { xmlRequest.overrideMimeType("text/xml") } } else if (window.ActiveX
阅读全文
摘要:function PopBubble(caption, content, see,action) { this.content = content; this.caption = caption; this.see = see; this.action=action; this.width = 250; this.height = 165; this.timeout = 500; this.speed = 15; this.step = 2; this.right = screen.width - 18; this.bottom = screen.height; this.left = th.
阅读全文
摘要:var myDate=new Date();var str="yyyy-MM-dd"; str=str.replace(/yyyy|YYYY/,myDate.getFullYear()); str=str.replace(/MM/,parseInt(myDate.getMonth())+1>9?(parseInt(myDate.getMonth())+1).toString():"0" + (parseInt(myDate.getMonth())+1).toString()); str=str.replace(/dd|DD/,myDate.getD
阅读全文

浙公网安备 33010602011771号