Skip to main content

12 Months/ Finding the Events

 

<html>

<body style="background-color:#CBC6DC;">

<h2><p style="font-family:century gothic;"> ENTER NUMBER OF MONTH:</p></h2>

<br><input id="text_a" type="text;" />

<p id="answer"></p>

<button onclick="myFunction()">Submit</button>




<script>


function myFunction()


{


var a=document.getElementById("text_a").value;




if (a=="1")


  {


document.getElementById("answer").innerHTML="1 - January, New Year";


  }


else if (a=="2")


  {

Comments

Popular posts from this blog

Exercise 10: Animation (Finals Web Prog)

(Code for HTML:) <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Exercise 010 Animated Web page</title> <link rel="stylesheet" href="Exercise10AnimatedWebpage.css"> </head> <body> <div> <h1 style="font-size:40px;"> ABOUT MYSELF  </h1> </div> <br> <br> <br> <br> <br> <br> <br> <br>  <p style="text-align: justify; text-indent: 50px;">  Hi I'm Jillian Marren Dela Cruz. You can call me "Jill or Jillian" i'm currently 3rd year Multimedia Arts Student. 20 years of Age. I chose multimeida because i want to enchance my skills and i'm willing to learn about everything. I'm November Babies and My zodiac sign is Sagittarius. The Sagittarius Traits is Curious and energetic, Sagittarius is one of the biggest travelers among all...

Exercise 006: Order List Html (Interactive Media)

<!DOCTYPE html> <html> <head> <style>     h1 {     margin-left: 280px; font-family: "Consolas"; } h4 {     margin-left: 285px; font-family: Consolas; } p {     margin-left:40px; } label {     display: inline-block; width: 150px; height: 20px; padding: 10px; margin-left: 30px; font-family: "Consolas"; } fieldset {     margin-left: 280px;         margin-right: 280px;         background: #cbc6dc;         padding: 5px         font-family: "Consolas";     }     #demo {     position: relative;         margin-left: 280px;         margin-right: 280px;     }     #runthis {         margin-left: 105px;         margin-top:25px; } </style> </head...

Exercise 007: CSS Layout and Web Page Concept (Web Programming)

CODE FOR HTML; <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <title> CSS 3 Rows 3 Columns </title> <link rel="stylesheet" href="Exercise007CSSLayoutandWebpageConcept.css"> </head> <body> <div class="header"> <div class="header-text"> <h1 style="font-family: Consolas;"> Digital Artworks </h1> <h4 style="font-family: Consolas; margin-top: 30px;"> <i> Created by: Jillian Marren Dela Cruz </i> </h4> </div> </div> <div class="navbar"> <a href="#home"> HOME </a> <div class="subnav"> <a href="#blameless"> Blameless </a> </div> <div class="subnav"> <a href="#depression_section"> Depression </a> </div> <div class="subnav...