PDA

View Full Version : Free JavaSccript codes



JavaScriptBank
12-11-2012, 09:52 PM
JavaScript codes for Web DEV

Best Christmas Countdown Timers for 2012

Years passed, I shared many Christmas countdown timers on these posts: 10 Awesome Christmas Countdown Timers</a... detail (http://www.javascriptbank.com/top-10-beautiful-christmas-countdown-timers.html) at JavaScriptBank.com - 2.000+ free JavaScript codes (http://www.javascriptbank.com/)


http://www.javascriptbank.com/javascript.images/article/best-christmas-countdown-timers-2012.jpg (http://www.javascriptbank.com/javascript/article/showcases/best-christmas-countdown-timers-2012/preview/en/)
Demo: JavaScript Best Christmas Countdown Timers for 2012 (http://www.javascriptbank.com/best-christmas-countdown-timers-2012.html/en/)


[U]How to setup







JavaScript Bookmark Page script (http://www.javascriptbank.com/bookmark-page-script.html) - JavaScript Color Wheel (http://www.javascriptbank.com/color-wheel.html) - JavaScript Image slideshow (http://www.javascriptbank.com/image-slideshow-transition.html)


The Site may provide, or third parties may provide, links to non-JavaScriptBank.com Internet World Wide Web sites or resources. Because JavaScriptBank.com has no control over such sites and resources, you acknowledge and agree that JavaScriptBank.com is not responsible for the availability of such external sites or resources, and does not endorse and is not responsible or liable for any content, advertising, products, or other materials on or available from such sites or resources. You further acknowledge and agree that JavaScriptBank.com shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods or services available on or through any such site or resource.

mitapaul16
12-12-2012, 06:06 AM
Simply insert the below into the <body> section of your page:
<script>

/*
Count up from any date script-
By JavaScript Kit (www.javascriptkit.com)
Over 200+ free scripts here!
*/

var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

function countup(yr,m,d){
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy
var paststring=montharray[m-1]+" "+d+", "+yr
var difference=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1)
difference+=" days"
document.write("It\'s been "+difference+" since the launch of JavaScript Kit!")
}
//enter the count up date using the format year/month/day
countup(1997,12,05)
</script>

<p align="center"><font face="arial" size="-2">This free script provided by</font><br>
<font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScript
Kit</a></font></p>

try out this.

abhirampathak3
12-13-2012, 02:08 AM
Free JavaSccript Code for Google’s Christmas Doodle

01 <!DOCTYPE html>
02
03 <html>
04 <head>
05 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
06 <title>Making Google's Christmas Doodle with jQuery | Tutorialzine Demo</title>
07
08 <link rel="stylesheet" type="text/css" href="css/styles.css" />
09
10 </head>
11 <body>
12
13 <div id="page"></div>
14
15 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
16 <script src="js/script.js"></script>
17
18 </body>
19 </html>

chelsea77
12-17-2012, 09:26 PM
thanks for the code this really help to brighten up the site