function functionAmount(e) {
if (window.event) {
code = event.keyCode;
if ((code >= 48 && code <= 57) || code == 46) {
}
else {
event.returnValue = false;
}
}
else {
code = e.which;
if ((code >= 48 && code <= 57) || code == 8 || code == 0 || code == 46) {
if (code >= 48 && code <= 57) {
}
}
else {
e.preventDefault();
}
}
}
Thursday, March 14, 2013
Hover box with arrow - after before
Html code
div id='rectangel' /divCSS code
#rectangel{ height:40px; width:100px; background:red; } #rectangel:hover{background:blue;} #rectangel:hover:after{border-top-color: blue;} #rectangel:after{ content: ""; height:0; position: absolute; width: 0; margin-top:40px; margin-left:40px; border: 10px solid transparent; border-top-color: red; }
Subscribe to:
Posts (Atom)
Javascript find highest and lowest from the given inputs
function highAndLow(numbers){ // numbers = "4 5 29 54 4 0 -214 542 -64 1 -3 6 -6" let numbersInArr = numbers.split(' ...
-
tantrum - an occasion when someone suddenly behaves in a very angry and unreasonable way, often screaming, crying, or refusing to obey so...
-
-------Html---------------- --------Html End-------------- ------------Jquery---------------- $("input[type='button'].btnClear...
-
This usually happens when there's another Terminal window open, it works after closing the other terminal window.