1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
.top { box-shadow: 0 -5px 5px -5px #333; } .right { box-shadow: 5px 0 5px -5px #333; } .bottom { box-shadow: 0 5px 5px -5px #333; } .left { box-shadow: -5px 0 5px -5px #333; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
.top { box-shadow: 0 -5px 5px -5px #333; } .right { box-shadow: 5px 0 5px -5px #333; } .bottom { box-shadow: 0 5px 5px -5px #333; } .left { box-shadow: -5px 0 5px -5px #333; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
addSpaceToPrice = function(value, count) { if (value != undefined) { price = value.replace(/ /g, "") if (price.indexOf(',') > 0) price = price.substring(0, price.indexOf(',')); fprice = ''; price_ln = price.length; if (price_ln > count) { for (i = price_ln; i >= 0; i--) { tmp = i % count === 0 ? ' ' : ''; fprice = fprice + tmp + price.substr(price_ln - i, 1); } } else { fprice = price; } return fprice; } } |