15 กันยายน 2557

การสร้าง ปุ่ม submit ในรูปแบบสวยงาม ด้วย style css

input[type="submit"] {
   border: 1px solid #0596AF;
   color: #fff;
    display:inline-block;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
   height: 40px;
   margin-bottom: 30px;
   padding: 0px 25px;
   -moz-appearance: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    cursor: pointer;
    background: #06B8D7;
    background: -webkit-linear-gradient(#06B8D7, #05aac6);
    background: -moz-linear-gradient(#06B8D7, #05aac6);
    background: -ms-linear-gradient(#06B8D7, #05aac6);
    background: -o-linear-gradient(#06B8D7, #05aac6);
    background: -webkit-gradient(#06B8D7, #05aac6);
    background: linear-gradient(#06B8D7, #05aac6);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);   
}

input[type="submit"]:hover {
    background: -webkit-linear-gradient(#06C0E1, #05aac6);
    background: -moz-linear-gradient(#06C0E1, #05aac6);
    background: -ms-linear-gradient(#06C0E1, #05aac6);
    background: -o-linear-gradient(#06C0E1, #05aac6);
    background: -webkit-gradient(#06C0E1, #05aac6);
    background: linear-gradient(#06C0E1, #05aac6);
}

input[type="submit"]:active {
    -webkit-box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);   
}

10 กันยายน 2557

30 สิงหาคม 2557

23 สิงหาคม 2557

แสดง ip ในรูปแบบ text ตัวอักษร โดยใช้คำสั่ง ipconfig /all ในโหมด command line

วิธี การแสดงข้อมูล IP address ผ่านคำสั่ง ipconfig /all ในโหมด cmd command ให้เป็น ข้อความ สามารถนำไปใช้ได้ โดยไม่ต้องมานั่งจด

1.เข้าหน้าต่าง dos > พิมพ์ คำสั่ง ipconfig /all > details.txt > กด Enter
// คำสั่งนี้หมายถึง แสดงค่า ip ทั้งหมด โดยการสร้างไฟล์ ชื่อ details.txt (ตรงนี้ตั้งว่าอะไรก็ได้) ระบบจะำทำการใส่ข้อมูลลงไปในไฟล์ text ชื่อ details



2.ไปที่ RUN > พิมพ์คำสั่ง notepad details.txt > กด Enter
// หมายถึง เปิด ไฟล์ details.txt ใน notepad


3.ผลลัพธ์ ข้อมูล ip ในหน้าจอ dos มาเป็นไฟล์ Text สามารถ copy ไปใช้งานต่อได้แล้ว ไม่ต้องมานั่ง จดให้เสียเวลา รวดเร็วทันใจ สไตล์ IT

/* คำสั่งสามารถเพิ่มเติม option ได้ตามต้องการ เช่น จะให้เซฟไฟล์ไปไว้ที่ไหน ก็ใส่ path เช่น จาก details.txt ก็เป็น C:\document\details.txt ฯลฯ */


3 กรกฎาคม 2557

6 CSS HTML FORM STYLES

Smart Green

Smart green is perfect for soft green backgrounds. Copy CSS below in your project, change the class name of the form to “smart-green” to achieve this stylish form.
/*######## Smart Green ########*/
.smart-green {
width: 400px;
margin-right: auto;
margin-left: auto;
background: #FFF;
padding: 30px 30px 20px 30px;
box-shadow: rgba(194, 194, 194, 0.7) 0 3px 10px -1px;
-webkit-box-shadow: rgba(194, 194, 194, 0.7) 0 3px 10px -1px;
font: 12px Arial, Helvetica, sans-serif;
color: #666;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
}
.smart-green h1 {
font: 24px "Trebuchet MS", Arial, Helvetica, sans-serif;
padding: 20px 0px 20px 40px;
display: block;
margin: -30px -30px 10px -30px;
color: #FFF;
background: #9DC45F;
text-shadow: 1px 1px 1px #949494;
border-radius: 5px 5px 0px 0px;
-webkit-border-radius: 5px 5px 0px 0px;
-moz-border-radius: 5px 5px 0px 0px;
border-bottom:1px solid #89AF4C;
}
.smart-green h1>span {
display: block;
font-size: 11px;
color: #FFF;
}
.smart-green label {
display: block;
margin: 0px 0px 5px;
}
.smart-green label>span {
float: left;
margin-top: 10px;
color: #5E5E5E;
}
.smart-green input[type="text"], .smart-green input[type="email"], .smart-green textarea, .smart-green select {
color: #555;
height:24px;
width: 96%;
padding: 3px 3px 3px 10px;
margin-top: 2px;
margin-bottom: 16px;
border: 1px solid #E5E5E5;
background: #FBFBFB;
outline: 0;
-webkit-box-shadow: inset 1px 1px 2px rgba(238, 238, 238, 0.2);
box-shadow: inset 1px 1px 2px rgba(238, 238, 238, 0.2);
font: normal 14px/14px Arial, Helvetica, sans-serif;
}
.smart-green textarea{
height:100px;
padding-top: 10px;
}
.smart-green select {
background: url('down-arrow.png') no-repeat right, -moz-linear-gradient(top, #FBFBFB 0%, #E9E9E9 100%);
background: url('down-arrow.png') no-repeat right, -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FBFBFB), color-stop(100%,#E9E9E9));
appearance:none;
-webkit-appearance:none;
-moz-appearance: none;
text-indent: 0.01px;
text-overflow: '';
width:100%;
height:30px;
}
.smart-green .button {
background-color: #9DC45F;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-border-radius: 5px;
border: none;
padding: 10px 25px 10px 25px;
color: #FFF;
text-shadow: 1px 1px 1px #949494;
}
.smart-green .button:hover {
background-color:#80A24A;
}

More details : http://www.sanwebe.com/2013/10/css-html-form-styles