var _countDowncontainer=0;
var _currentSeconds=0;
function ActivateCountDown(strContainerID, initialValue) {
_countDowncontainer = document.getElementById(strContainerID);
if (!_countDowncontainer) {
alert("count down error: container does not exist: "+strContainerID+
"\nmake sure html element with this ID exists");
return;
}
SetCountdownText(initialValue);
window.setTimeout("CountDownTick()", 1000);
}
function CountDownTick() {
if (_currentSeconds <= 0) {
alert("your time has expired!");
return;
}
SetCountdownText(_currentSeconds-1);
window.setTimeout("CountDownTick()", 1000);
}
function SetCountdownText(seconds) {
//store:
_currentSeconds = seconds;
//get minutes:
var minutes=parseInt(seconds/60);
//shrink:
seconds = (seconds%60);
//get hours:
var hours=parseInt(minutes/60);
//shrink:
minutes = (minutes%60);
//build text:
var strText = AddZero(hours) + ":" + AddZero(minutes) + ":" + AddZero(seconds);
//apply:
_countDowncontainer.innerHTML = strText;
}
function AddZero(num) {
return ((num >= 0)&&(num < 10))?"0"+num:num+"";
}
Saturday, September 5, 2009
Countdown Time JavaScript
An example of Countdown Time JavaScript
Labels:
Java
Monday, July 27, 2009
My Top 10 Emerging Influential Blogs for 2009!
Hi Guys! It's me, your pinoy Java mogul. I'm addicted with Java and everything that I think of right now is Java. I'm Glen Balan (for those who don't know me yet, because I haven't created an about me page until now) a pinoy Java addict.
I would like to participate in the Top 10 Emerging Influential blogs for 2009 because if I participate, I will have a chance to win $100! That's the main reason I participated in this writing project.
Without much a do, here's my list of Top 10 Emerging Influential Blogs for this year!
1. Lakwatsero
2. Flair Candy
3. Kelvinonian Ideas 2.0
4. Patay Gutom
5. Candy Blush
6. Adaphobic
7. Millionaire Acts
8. Rick Spot
9. Video Chops
10. Let's Go Sago!
This writing project will not be possible without the support of sponsors such as Absolute Traders, My Brute Cheats, Business Summaries, Fitness Advantage Club, Events and Corporate Video, Events at Work, Dominguez Marketing Communications, Red Mobile, Budget hotel in Makati, and Blog4Reviews.com.
I would like to participate in the Top 10 Emerging Influential blogs for 2009 because if I participate, I will have a chance to win $100! That's the main reason I participated in this writing project.
Without much a do, here's my list of Top 10 Emerging Influential Blogs for this year!
1. Lakwatsero
2. Flair Candy
3. Kelvinonian Ideas 2.0
4. Patay Gutom
5. Candy Blush
6. Adaphobic
7. Millionaire Acts
8. Rick Spot
9. Video Chops
10. Let's Go Sago!
This writing project will not be possible without the support of sponsors such as Absolute Traders, My Brute Cheats, Business Summaries, Fitness Advantage Club, Events and Corporate Video, Events at Work, Dominguez Marketing Communications, Red Mobile, Budget hotel in Makati, and Blog4Reviews.com.
Labels:
Events
Wednesday, May 27, 2009
History of Java
I would like to share a brief history of Java that I've read in Wikipedia. But first of all, what is Java? Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to bytecode (class file) that can run on any Java virtual machine (JVM) regardless of computer architecture.
Here's a brief history: James Gosling initiated the Java language project in June 1991 for use in one of his many set-top box projects. The language, initially called Oak after an oak tree that stood outside Gosling's office, also went by the name Green and ended up later renamed as Java, from a list of random words. Gosling aimed to implement a virtual machine and a language that had a familiar C/C++ style of notation.
Sun released the first public implementation as Java 1.0 in 1995. It promised "Write Once, Run Anywhere" (WORA), providing no-cost run-times on popular platforms. Fairly secure and featuring configurable security, it allowed network- and file-access restrictions. Major web browsers soon incorporated the ability to run Java applets within web pages, and Java quickly became popular. With the advent of Java 2 (released initially as J2SE 1.2 in December 1998), new versions had multiple configurations built for different types of platforms. For example, J2EE targeted enterprise applications and the greatly stripped-down version J2ME for mobile applications. J2SE designated the Standard Edition. In 2006, for marketing purposes, Sun renamed new J2 versions as Java EE, Java ME, and Java SE, respectively.
Now Java is widely used as the main programming language in building web apps and softwares. If you don't know Java yet, you should learn about it because you can do a lot of wondrous applications with Java!
Here's a brief history: James Gosling initiated the Java language project in June 1991 for use in one of his many set-top box projects. The language, initially called Oak after an oak tree that stood outside Gosling's office, also went by the name Green and ended up later renamed as Java, from a list of random words. Gosling aimed to implement a virtual machine and a language that had a familiar C/C++ style of notation.
Sun released the first public implementation as Java 1.0 in 1995. It promised "Write Once, Run Anywhere" (WORA), providing no-cost run-times on popular platforms. Fairly secure and featuring configurable security, it allowed network- and file-access restrictions. Major web browsers soon incorporated the ability to run Java applets within web pages, and Java quickly became popular. With the advent of Java 2 (released initially as J2SE 1.2 in December 1998), new versions had multiple configurations built for different types of platforms. For example, J2EE targeted enterprise applications and the greatly stripped-down version J2ME for mobile applications. J2SE designated the Standard Edition. In 2006, for marketing purposes, Sun renamed new J2 versions as Java EE, Java ME, and Java SE, respectively.
Now Java is widely used as the main programming language in building web apps and softwares. If you don't know Java yet, you should learn about it because you can do a lot of wondrous applications with Java!
Labels:
Java
Subscribe to:
Posts (Atom)