http://jsfiddle.net/arunpjohny/9w2gZ/
目前分類:JavaScript (48)
- Jan 14 Wed 2015 16:41
javascript 輸入文字變動顯示
- Jan 09 Fri 2015 09:57
jQuery取url變數
- Dec 15 Mon 2014 12:07
datatable Javascript sourced data
http://jquery-datatables-editable.googlecode.com/svn/trunk/media/js/jquery.dataTables.editable.js
- Oct 27 Mon 2014 10:13
javascript 取得網址的URL參數和值
http://smallpoint-program.blogspot.tw/2013/04/javascript-javascripturl.html
- Oct 24 Fri 2014 17:44
AngularJS
https://docs.angularjs.org/api/ng/provider/$interpolateProvider
- Sep 30 Tue 2014 10:35
javascript file upload size validation
<formaction="upload"enctype="multipart/form-data"method="post"> Upload image: <inputid="image-file"type="file"name="file"/><inputtype="submit"value="Upload"/><scripttype="text/javascript"> $('#image-file').bind('change',function(){ alert('This file size is: '+this.files[0].size/1024/1024+"MB");});</script></form>
- Sep 26 Fri 2014 09:28
ASP.NET C# MasterPage with jQuery DatePicker
- Sep 11 Thu 2014 12:28
javascript 刪除陣列
- Jul 24 Thu 2014 10:55
Javascript window.open
- Jun 30 Mon 2014 18:13
javascript 長按按鈕
<input id="button" type="submit" name="button" value="enter" onclick="setTimeout(check(),3000);"/>
- Jun 13 Fri 2014 12:14
JavaScript時間倒數 & FlipClock
<script type="text/javascript"> var clock; var year = 2014; var month = 5; //月份從0開始算 var date = 30; var h = 11; var m = 31; var s = 0; var ms = 0; var date = new Date(year, month, date, h, m, s, ms); var now = new Date(); var diff = date.getTime() / 1000 - now.getTime() / 1000; $(document).ready(function () { $(".indexLive").hide(); if (diff <= 0) { $(".clock").hide(); $(".indexLive").show(); } // Instantiate a coutdown FlipClock clock = $('.clock').FlipClock(diff, { clockFace: 'DailyCounter', countdown: true, }); }); </script> <script type="text/javascript"> var countdownnumber = diff+2; var countdownid; $(document).ready(countdownfunc()); function countdownfunc() { if (countdownnumber < 0) { //alert("倒數結束"); $(".clock").hide("slow"); $(".indexLive").show(); clearTimeout(countdownid); } else { countdownnumber--; if (countdownid) { clearTimeout(countdownid); } countdownid = setTimeout(countdownfunc, 1000); } } </script> <div class="indexTimer"> <div class="clock" style="margin:2em;"></div> <div class="indexLive"> <img src="_img/timeLive.png" /> </div> </div>
- Jun 12 Thu 2014 18:19
JavaScript時間倒數
<html>
<head>
- Jun 10 Tue 2014 17:41
create a button with onclick
function createButton(context, func){var button = document.createElement("input");
button.type ="button";
button.value ="im a button";
button.onclick = func;
context.appendChild(button);}
window.onload =function(){
createButton(document.body,function(){
highlight(this.parentNode.childNodes[1]);// Example of different context, copied function etc// createButton(this.parentNode, this.onclick);});}
- May 28 Wed 2014 09:13
JavaScript & ASP.NET C# Set/Get Cookies
- May 26 Mon 2014 16:24
JavaScript CheckBox全選、反選
- May 21 Wed 2014 11:23
javascript 常用函數集
- May 20 Tue 2014 18:15
[JavaScript] 當函式需要傳遞很多參數時
http://blog.rx836.tw/blog/javascript-simple-object/
- May 20 Tue 2014 13:51
Twitch 放大畫面、隱藏Chat room
- May 14 Wed 2014 15:24
Flip Clock
http://flipclockjs.com/faces/daily-counter