http://www.slht.net/web/domain/Script/mootools.js
解决方案 »
- JS打印页面,怎么把地址栏的地址也打印出来了??怎么隐藏?
- 在元素内部拖动到元素外部,onmouseup事件失效怎么办?
- 很简单的问题,请大哥帮帮我。急。在线等。
- 怎么让文本框里面的内容隐藏
- jquery accordion 动态增加内容,效果就不显示了
- 关于在网页中用DOM动态添加jar文件的语句,编写后出问题,求助!
- script type="text/javascript中的问题
- 大家好, 如果用js判断一个对象的存在?
- button 上webdings字体,怎么让他们对齐?
- chrome扩展里面 批量UNFOLLOW twitter的代码,求大佬给写个中文的注释
- JavaScript 中 window.open() 问题 急急急!!
- 从服务器下载图片 请大家帮我看看吧 20号就要 急死我了
var MooTools={'version':1.1};function $defined(obj){return(obj!=undefined)};function $type(obj){if(!$defined(obj))return false;if(obj.htmlElement)return'element';var type=typeof obj;if(type=='object'&&obj.nodeName){switch(obj.nodeType){case 1:return'element';case 3:return/\S/.test(obj.nodeValue)?'textnode':'whitespace'}}if(type=='object'||type=='function'){switch(obj.constructor){case Array:return'array';case RegExp:return'regexp';case Class:return'class'}if(typeof obj.length=='number'){if(obj.item)return'collection';if(obj.callee)return'arguments'}}return type};function $merge(){var mix={};for(var i=0;i<arguments.length;i++){for(var property in arguments[i]){var ap=arguments[i][property];var mp=mix[property];if(mp&&$type(ap)=='object'&&$type(mp)=='object')mix[property]=$merge(mp,ap);else mix[property]=ap}}return mix};var $extend=Object.extend=function(){var args=arguments;if(!args[1])args=[this,args[0]];for(var property in args[1])args[0][property]=args[1][property];return args[0]};var $native=Object.Native=function(){for(var i=0,l=arguments.length;i<l;i++){arguments[i].extend=function(props){for(var prop in props){if(!this.prototype[prop])this.prototype[prop]=props[prop];if(!this[prop])this[prop]=$native.generic(prop)}}}};$native.generic=function(prop){return function(bind){return this.prototype[prop].apply(bind,Array.prototype.slice.call(arguments,1))}};$native(Function,Array,String,Number);var Abstract=function(obj){obj=obj||{};obj.extend=$extend;return obj};var Window=new Abstract(window);var Document=new Abstract(document);document.head=document.getElementsByTagName('head')[0];function $chk(obj){return!!(obj||obj===0)};function $pick(obj,picked){return $defined(obj)?obj:picked};function $random(min,max){return Math.floor(Math.random()*(max-min+1)+min)};function $time(){return new Date().getTime()};function $clear(timer){clearTimeout(timer);clearInterval(timer);return null};window.xpath=!!(document.evaluate);if(window.ActiveXObject)window.ie=window[window.XMLHttpRequest?'ie7':'ie6']=true;else if(document.childNodes&&!document.all&&!navigator.taintEnabled)window.khtml=window.webkit=window[window.xpath?'webkit420':'webkit419']=true;else if(document.getBoxObjectFor!=null)window.gecko=true;if(typeof HTMLElement=='undefined'){var HTMLElement=function(){};if(window.webkit)document.createElement("iframe");HTMLElement.prototype=(window.webkit)?window["[[DOMElement.prototype]]"]:{}}HTMLElement.prototype.htmlElement=true;if(window.ie6)try{document.execCommand("BackgroundImageCache",false,true)}catch(e){};var Class=function(properties){var klass=function(){return(arguments[0]!==null&&this.initialize&&$type(this.initialize)=='function')?this.initialize.apply(this,arguments):this};$extend(klass,this);klass.prototype=properties;klass.constructor=Class;return klass};Class.empty=function(){};Class.prototype={extend:function(properties){var proto=new this(null);for(var property in properties){var pp=proto[property];proto[property]=Class.Merge(pp,properties[property])}return new Class(proto)},implement:function(){for(var i=0,l=arguments.length;i<l;i++)$extend(this.prototype,arguments[i])}};Class.Merge=function(previous,current){if(previous&&previous!=current){var type=$type(current);if(type!=$type(previous))return current;switch(type){case'function':var merged=function(){this.parent=arguments.callee.parent;return current.apply(this,arguments)};merged.parent=previous;return merged;case'object':return $merge(previous,current)}}return current};var Chain=new Class({chain:function(fn){this.chains=this.chains||[];this.chains.push(fn);return this},callChain:function(){if(this.chains&&this.chains.length)this.chains.shift().delay(10,this)},clearChain:function(){this.chains=[]}});var Events=new Class({addEvent:function(type,fn){if(fn!=Class.empty){this.$events=this.$events||{};this.$events[type]=this.$events[type]||[];this.$events[type].include(fn)}return this},fireEvent:function(type,args,delay){if(this.$events&&this.$events[type]){this.$events[type].each(function(fn){fn.create({'bind':this,'delay':delay,'arguments':args})()},this)}return this},removeEvent:function(type,fn){if(this.$events&&this.$events[type])this.$events[type].remove(fn);return this}});var Options=new Class({setOptions:function(){this.options=$merge.apply(null,[this.options].extend(arguments));if(!this.addEvent)return this;for(var option in this.options){if($type(this.options[option]=='function')&&option.test(/^on[A-Z]/))this.addEvent(option,this.options[option])}return this}});Array.extend({forEach:function(fn,bind){for(var i=0,j=this.length;i<j;i++)fn.call(bind,this[i],i,this)},filter:function(fn,bind){var results=[];for(var i=0,j=this.length;i<j;i++){if(fn.call(bind,this[i],i,this))results.push(this[i])}return results},map:function(fn,bind){var results=[];for(var i=0,j=this.length;i<j;i++)results[i]=fn.call(bind,this[i],i,this);return results},every:function(fn,bind){for(var i=0,j=this.length;i<j;i++){if(!fn.call(bind,this[i],i,this))return false}return true},some:function(fn,bind){for(var i=0,j=this.length;i<j;i++){if(fn.call(bind,this[i],i,this))return true}return false},indexOf:function(item,from){var len=this.length;for(var i=(from<0)?Math.max(0,len+from):from||0;i<len;i++){if(this[i]===item)return i}return-1},copy:function(start,length){start=start||0;if(start<0)start=this.length+start;length=length||(this.length-start);var newArray=[];for(var i=0;i<length;i++)newArray[i]=this[start++];return newArray},remove:function(item){var i=0;var len=this.length;while(i<len){if(this[i]===item){this.splice(i,1);len--}else{i++}}return this},contains:function(item,from){return this.indexOf(item,from)!=-1},associate:function(keys){var obj={},length=Math.min(this.length,keys.length);for(var i=0;i<length;i++)obj[keys[i]]=this[i];return obj},extend:function(array){for(var i=0,j=array.length;i<j;i++)this.push(array[i]);return this},merge:function(array){for(var i=0,l=array.length;i<l;i++)this.include(array[i]);return this},include:function(item){if(!this.contains(item))this.push(item);return this},getRandom:function(){return this[$random(0,this.length-1)]||false},getLast:function(){return this[this.length-1]||false}});Array.prototype.each=Array.prototype.forEach;Array.prototype.test=Array.prototype.contains;function $A(array){return Array.copy(array)};function $each(iterable,fn,bind){if(iterable&&typeof iterable.length=='number'&&$type(iterable)!='object')Array.forEach(iterable,fn,bind);else for(var name in iterable)fn.call(bind||iterable,iterable[name],name)};String.extend({test:function(regex,params){return(($type(regex)=='string')?new RegExp(regex,params):regex).test(this)},toInt:function(){return parseInt(this,10)},toFloat:function(){return parseFloat(this)},camelCase:function(){return this.replace(/-\D/g,function(match){return match.charAt(1).toUpperCase()})},hyphenate:function(){return this.replace(/\w[A-Z]/g,function(match){return(match.charAt(0)+'-'+match.charAt(1).toLowerCase())})},capitalize:function(){return this.replace(/\b[a-z]/g,function(match){return match.toUpperCase()})},trim:function(){return this.replace(/^\s+|\s+$/g,'')},clean:function(){return this.replace(/\s{2,}/g,' ').trim()},rgbToHex:function(array){var rgb=this.match(/\d{1,3}/g);return(rgb)?rgb.rgbToHex(array):false},hexToRgb:function(array){var hex=this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);
<style type="text/css">
body {
font-size:14px;
line-height:20px;
}
</style>
<script type="text/javascript">
var string = (那个eval里的内容挪过来);document.write(
string.replace(/(<(?:\\\/)?script)/g, function () {
var s = arguments[0], a = [], i = 0;
for (; i < s.length ; i ++) a[i] = "&#" + s.charCodeAt(i) + ";";
return a.join("");
})
);
</script>