Alert Box:

More info: JavaScript Alert

What time is It?? !!!!! :D

Click the button to display the date.

This free script provided by
JavaScript Kit

expr:class='"loading" + data:blog.mobileClass'>

Linggo, Marso 9, 2014

Alert_23 Code


<html>
<body background="tabletennis.gif">
<font color="green">
<h1>My First JavaScript</h1>
<font color="orange">
<p id="demo">
<font color="red">
About My Classmates
</p>
<script>
function classmate1()
{
x=document.getElementById("demo");  // Find the element
x.innerHTML="My First Classmate is Joshua he is from San Manuel Tarlac City, he is good at basketball.!";    // Change the content
}
function classmate2()
{
x=document.getElementById("demo");  // Find the element
x.innerHTML="My second classmate is Tope he is very good and he have many Chicks XD!!";    // Change the content
}
function classmate3()
{
x=document.getElementById("demo");  // Find the element
x.innerHTML="My third classmate is Miggy he is fond at playing computer games!!";    // Change the content
}
function classmate4()
{
x=document.getElementById("demo");  // Find the element
x.innerHTML="My fourth classmate is Justin Sangalang his father is a Colonel and he likes playing Basketball.!";    // Change the content
}
function classmate5()
{
x=document.getElementById("demo");  // Find the element
x.innerHTML="My Fifth classmate is Toti he is a shooter in three in playing basketball, and he is kind too.!";    // Change the content        
}
function classmate6()
{
x=document.getElementById("demo");  // Find the element
x.innerHTML="My Sixth classmate is Rommel he is good at playing DoTa and he is kind too!";    // Change the content
}
function classmate7()
{
x=document.getElementById("demo");  // Find the element
x.innerHTML="My seventh classmate is James Romero he is good at playing football and he is good at computer games too!";    // Change the content
}
function classmate8()
{
x=document.getElementById("demo");  // Find the element
x.innerHTML="Jared Ganal is a Nba 2k14 master he had many shoes like the kd 6!";    // Change the content
}
function classmate9()
{
x=document.getElementById("demo");  // Find the element
x.innerHTML="Kim is good basketball player he is good at playing computer games!";    // Change the content
}
function classmate10()
{
x=document.getElementById("demo");  // Find the element
x.innerHTML="My last Classmate is Yvan Borra he is kind,good at studies and good at playing basketball too.!";    // Change the content
}
function reset()
{
x=document.getElementById("demo");  // Find the element
x.innerHTML="About My Classmates";    // Change the content
}
</script>

<button type="button" onclick="alert('Joshua Flores'), classmate1()">classmate1!</button>
<button type="button" onclick="alert('Tope Castaneda'), classmate2()">classmate2!</button>
<button type="button" onclick="alert('Miggy Maglalang'), classmate3()">classmate3!</button>
<button type="button" onclick="alert('Justin Sangalang'), classmate4()">classmate4!</button>
<button type="button" onclick="alert('Toti Vistro'), classmate5()">classmate5!</button>
<button type="button" onclick="alert('Rommel Sindayen'), classmate6()">classmate6!</button>
<button type="button" onclick="alert('James Romero'), classmate7()">classmate7!</button>
<button type="button" onclick="alert('Jared Ganal'), classmate8()">classmate8!</button>
<button type="button" onclick="alert('Kim Encarnacion'), classmate9()">classmate9!</button>
<button type="button" onclick="alert('Yvan Allen Borra'), classmate10()">classmate10!</button>
<button type="button" onclick="reset()">Reset!</button><br>
</br>
</font>
</body>
</html>

Walang komento:

Mag-post ng isang Komento