Making Pages Dynamic Chapter 8 JavaScript for the WWW.

Slides:



Advertisements
Similar presentations
Months of the year December January November October February
Advertisements

Chubaka Producciones Presenta :.
2012 JANUARY Sun Mon Tue Wed Thu Fri Sat
January 2012 Monday Tuesday Wednesday Thursday Friday Sat/ Sun / /8 14/15 21/22 28/
P Pathophysiology Calendar. SundayMondayTuesdayWednesdayThursdayFridaySaturday January 2012.
Chicas, este calendario si es pa' nosotras !!!!!.
MONDAYTUESDAYWEDNESDAYTHURSDAYFRIDAYSAT/SUN Note: You can print this template to use as a wall calendar. You can also copy the slide for any month to add.
You can print this template to use it as a wall calendar, or you can copy the page for any month to add it to your own presentation. If you’d like to change.
School Year Calendar You can print this template to use it as a wall calendar, or you can copy the page for any month to add it to your own presentation.
School Year Calendar You can print this template to use it as a wall calendar, or you can copy the page for any month to add it to your own presentation.
You can print this template to use it as a wall calendar, or you can copy the page for any month to add it to your own presentation. If you’d like to change.
2007 Monthly Calendar You can print this template to use it as a wall calendar, or you can copy the page for any month to add it to your own presentation.
MONDAYTUESDAYWEDNESDAYTHURSDAYFRIDAYSAT/SUN Note: You can print this template to use as a wall calendar. You can also copy the slide for any month to add.

January 2013 SundayMondayTuesdayWednesdayThursdayFridaySaturday.
You can print this template to use it as a wall calendar, or you can copy the page for any month to add it to your own presentation. If you’d like to change.
You can print this template to use it as a wall calendar, or you can copy the page for any month to add it to your own presentation. If you’d like to change.
6/23/11 FAIS, Ind PC Five Apple/Inpatient Specialist Case Study Patient Volume/LOS/ Payor Source Data.
WORD JUMBLE. Months of the year Word in jumbled form e r r f b u y a Word in jumbled form e r r f b u y a february Click for the answer Next Question.
DATE POWER 2 INCOME JANUARY 100member X 25.00P2, FEBRUARY 200member X 25.00P5, MARCH 400member X 25.00P10, APRIL 800member.
Months of the year. jANUARY New year’s day fEBRUARY Valentine’s day.
S F T W M January
Calendar for 2011 Months of the Year with Holidays.
2011 Calendar Important Dates/Events/Homework. SunSatFriThursWedTuesMon January
SunSatFriThursWedTuesMon January One month per page Space to write on your.
2017 monthly calendar template
SSFTWTM January SSFTWTM September.
TEMPORAL VISUALIZATION OF DATA FROM THE FRENCH SENTINEL NETWORK.
The Calendar.
July 2007 SundayMondayTuesdayWednesdayThursdayFridaySaturday
School Year Calendar You can print this template to use it as a wall calendar, or you can copy the page for any month to add it to your own.
FY16 Budget Build (Banner)
Dictation practice 2nd Form Ms. Micaela-Ms. Verónica.
TIMELINES PHOTOS This is an example text
TIMELINES PHOTOS This is an example text
McDonald’s Kalender 2009.
McDonald’s Kalender 2009.
School Year Calendar You can print this template to use it as a wall calendar, or you can copy the page for any month to add it to your own presentation.
13-block rotation schedule
1   1.テキストの入れ替え テキストを自由に入れ替えることができます。 フチなし全面印刷がおすすめです。 印刷のポイント.
January MON TUE WED THU FRI SAT SUN
January MON TUE WED THU FRI SAT SUN
2017/18 Payment Calendar Due Date Cut-off Day 1st of every month
McDonald’s Kalender 2009.
January MON TUE WED THU FRI SAT SUN
January MON TUE WED THU FRI SAT SUN
Problem Gambling Clicks to Opgr.org
2300 (11PM) September 21 Blue line is meridian..
January MON TUE WED THU FRI SAT SUN
McDonald’s calendar 2007.
1 - January - Sun Mon The Wed Thu Fri Sat
Proud As A Peacock! We are very proud of__________________
Teacher name August phone: Enter text here.
January MON TUE WED THU FRI SAT SUN
JANUARY 1 Sun Mon Tue Wed Thu Fri Sat
January MON TUE WED THU FRI SAT SUN
JANUARY 1 Sun Mon Tue Wed Thu Fri Sat
February 2007 Note: Source:.
Who Wants to be a Millionaire?
January MON TUE WED THU FRI SAT SUN
MONTHS OF THE YEAR January February April March June May July August
S M T W F S M T W F
JANUARY 1 Sun Mon Tue Wed Thu Fri Sat
McDonald’s calendar 2007.
Production Month Sun Hours K Monthly Kwh Tou Peak Value After Kwh
E W ©
Habitat Changes and Fish Migration
2015 January February March April May June July August September
Habitat Changes and Fish Migration
Presentation transcript:

Making Pages Dynamic Chapter 8 JavaScript for the WWW

Outline Detect if Java or JavaScript is enabled Put current date into Webpage Detecting the referrer page There’s lots more in Chapter 8, including a table of 42 date methods

Do you have Java? document.write("Java is ") if (!navigator.javaEnabled()) { document.write("not ") } document.write("enabled.") JavaScript is not enabled.

Detection of the current date Date methods reads client PC clock and converts to various formats This script simply outputs the current date, but to do so it has to have available the names of the days of the week, and months of the year in arrays There are several other date scripts in the chapter

Dynamic Date Display dayName = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Sat urday") monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December") now = new Date document.write(" Today is " + dayName[now.getDay()] + ", " + monName[now.getMonth()] + " " + now.getDate() + ". ")

Working with Referrer Page This is very easy if you can spell “referrer” However, you do need to have a link on the referrer page to this script’s page. Testing by entering the script’s URL into the File > Open or browser location box does not seem to work document.write (document.referrer) prints the URL of the previous Webpage onto this one.

Do you like me? if (document.referrer != "") { document.write(" I hope you like this page better than " + document.referrer + ". ") }