Skip to content

Instantly share code, notes, and snippets.

View mtmzorro's full-sized avatar
🌌
Warp Drive Active

mTmzorro mtmzorro

🌌
Warp Drive Active
View GitHub Profile
function HashTable() {
var size = 0;
var entry = new Object();
this.add = function (key, value) {
if (!this.containsKey(key)) {
size++;
}
entry[key] = value;
}
this.getValue = function (key) {
@mtmzorro
mtmzorro / list
Last active October 13, 2015 23:38
CSS 格式化: http://cssbeautify.com/
CSS 压缩: http://www.csscompressor.com/
HTML 格式化: http://tools.arantius.com/tabifier
HTML 压缩: http://htmlcompressor.com/compressor.html
Javascript 格式化: http://jsbeautifier.org/
Javascript 压缩: http://javascriptcompressor.com/
代码高亮: http://tohtml.com/jScript/
XML(To/From)JSON: http://www.utilities-online.info/xmltojson/
PNG压缩 http://tinypng.org/
loading maker http://preloaders.net/en/all
<li class="clearfix">
<span class="form-itemName fl" style="width: 150px;padding-top:5px;">最后,请设置您的日预算:</span>
<div class="fl">
<p>
<span><input type="text" value="56.00" class="textField12" id="adBudgetDay">&nbsp;元/天</span>
<span class="tips">温馨提示:欲保障投放时长可设置更高预算,最终费用按实际点击计算。</span>
</p>
<p>
<span class="mt5 disInBlock">您的账户可用余额为:<span id="availableamount">30000</span>&nbsp;元</span>
</p>
/*Make position:fixed work in IE6!*/
.fixed-top /* position fixed Top */{position:fixed;bottom:auto;top:0;}
.fixed-bottom /* position fixed Bottom */{position:fixed;bottom:0;top:auto;}
.fixed-left /* position fixed Left */{position:fixed;right:auto;left:0;}
.fixed-right /* position fixed right */{position:fixed;right:0;left:auto;}
* html,* html body /* IE6 Fixed Position Jitter Fix */{background-image:url(about:blank);background-attachment:fixed;}
* html .fixed-top /* IE6 position fixed Top */{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));}
* html .fixed-right /* IE6 position fixed right */{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,10)||0)-(parseInt(this.currentStyle.marginRight,10)||0));}
@mtmzorro
mtmzorro / ChinaUnionAD.js
Last active December 19, 2015 18:29
万恶的中国联通
if( top!==self ){ top.location = self.location }
var url = 'http://myfairland.net/block-unicom-ad/';
@mtmzorro
mtmzorro / BrowserTopShadow.css
Created July 16, 2013 06:54
Browser top shadow
body:before {
content: "";
position: fixed;
top: -10px;
left: 0;
width: 100%;
height: 10px;
box-shadow: 0px 0px 10px rgba(0,0,0,.8);
z-index: 100;
}
@mtmzorro
mtmzorro / unselectable.css
Created July 16, 2013 06:58
text unselectable 文字无法选中
.unselectable {
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
user-select: none;
}
@mtmzorro
mtmzorro / some.css
Last active December 19, 2015 19:29
#container{
max-width: 700px;
min-height: 700px;
}
* html #container{
width: expression( document.body.clientWidth > 699 ? "700px" : "auto" );/* ie6 */
height: expression( document.body.clientWidth < 701 ? "700px" : "auto" );/* ie6*/
}
@mtmzorro
mtmzorro / getPinyin.js
Last active December 22, 2015 04:58
Get Chinese characters Pinyin initials 获取中文字符拼音首字母
var strChineseFirstPY = "YDYQSXMWZSSXJBYMGCCZQPSSQBYCDSCDQLDYLYBSSJGYZZJJFKCCLZDHWDWZJLJPFYYNWJJTMYHZWZHFLZPPQHGSCYYYNJQYXXGJHHSDSJNKKTMOMLCRXYPSNQSECCQZGGLLYJLMYZZSECYKYYHQWJSSGGYXYZYJWWKDJHYCHMYXJTLXJYQBYXZLDWRDJRWYSRLDZJPCBZJJBRCFTLECZSTZFXXZHTRQHYBDLYCZSSYMMRFMYQZPWWJJYFCRWFDFZQPYDDWYXKYJAWJFFXYPSFTZYHHYZYSWCJYXSCLCXXWZZXNBGNNXBXLZSZSBSGPYSYZDHMDZBQBZCWDZZYYTZHBTSYYBZGNTNXQYWQSKBPHHLXGYBFMJEBJHHGQTJCYSXSTKZHLYCKGLYSMZXYALMELDCCXGZYRJXSDLTYZCQKCNNJWHJTZZCQLJSTSTBNXBTYXCEQXGKWJYFLZQLYHYXSPSFXLMPBYSXXXYDJCZYLLLSJXFHJXPJBTFFYABYXBHZZBJYZLWLCZGGBTSSMDTJZXPTHYQTGLJSCQFZKJZJQNLZWLSLHDZBWJNCJZYZSQQYCQYRZCJJWYBRTWPYFTWEXCSKDZCTBZHYZZYYJXZCFFZZMJYXXSDZZOTTBZLQWFCKSZSXFYRLNYJMBDTHJXSQQCCSBXYYTSYFBXDZTGBCNSLCYZZPSAZYZZSCJCSHZQYDXLBPJLLMQXTYDZXSQJTZPXLCGLQTZWJBHCTSYJSFXYEJJTLBGXSXJMYJQQPFZASYJNTYDJXKJCDJSZCBARTDCLYJQMWNQNCLLLKBYBZZSYHQQLTWLCCXTXLLZNTYLNEWYZYXCZXXGRKRMTCNDNJTSYYSSDQDGHSDBJGHRWRQLYBGLXHLGTGXBQJDZPYJSJYJCTMRNYMGRZJCZGJMZMGXMPRYXKJNYMSGMZJYMKMFXMLDTGFBHCJHKYLPFMDXLQJJSMTQGZSJLQDLDGJYCALCMZCSDJLLNXDJFFFFJC
@mtmzorro
mtmzorro / setCss3Style.js
Last active December 23, 2015 08:09
css3 Prefixer
/**
* css3Prefixer
*
* Example: document.getElementById('div').setCss3Style('transition', 'translateY(100px) translateX(500px) scale(3)');
*/
Object.prototype.setCss3Style = function(key, value){
if (typeof this.getAttribute !== 'undefined') {