Adobe GoLive

100
Adobe GoLive Edit and FTP your web pages to a web server

description

Adobe GoLive. Edit and FTP your web pages to a web server. Objectives. Open Adobe GoLive Create and Edit Web Pages Use the Layout and Source Editor modes FTP to the horacemann.org web server Import text. Objectives. Import images Import video Edit pages live on the web. - PowerPoint PPT Presentation

Transcript of Adobe GoLive

Page 1: Adobe GoLive

Adobe GoLive

Edit and FTP your web pages to a web server

Page 2: Adobe GoLive

Objectives

Open Adobe GoLive Create and Edit Web Pages Use the Layout and Source Editor

modes FTP to the horacemann.org web

server Import text

Page 3: Adobe GoLive

Objectives

Import images Import video Edit pages live on the web

Page 4: Adobe GoLive

Video Introduction to GoLive

This video will preview GoLive

QuickTime™ and aSorenson Video decompressorare needed to see this picture.

Page 5: Adobe GoLive

Open up GoLive

On a Mac, go to the Applications folder and open up the GoLive folder and click on GoLive

On a PC go to the Start Menu and on the Adobe GoLive Folder select GoLive

Page 7: Adobe GoLive

Layout

In the Layout mode, you can create or edit a web page by dragging and dropping items such as text or images. This is very similar to building a web page in MS Word. This part of the program does the HTML for you.

Page 8: Adobe GoLive

Source

In the Source mode, you can edit the HTML just as you would in Notepad or BBEdit. This mode gives you greater control over your page.

Page 9: Adobe GoLive

Syntax Checking

In the Source mode GoLive will check your HTML to make sure it is written properly. The colors indicate that the HTML is working correctly by grouping tags with colors. If the colors all look the same, you may have an error

Video 1 Video 2 Video 3

Page 10: Adobe GoLive

Importing Text

You can add text to document in GoLive by typing it in directly into the HTML or Layout mode. You can also copy and paste text into this area.

Video 1 Video 2

Page 11: Adobe GoLive

Importing Images & Video

You can import images by dragging them into the layout program, or by using the Object window in GoLive. You can do the same for any videos you may have.

Page 12: Adobe GoLive

FTP to the Web

To set up a connection to an FTP or WebDAV server: Choose Edit > Servers. Click the New button  in the Available Servers dialog box. Type a name in the Nickname text box (This prevents confusion if you add more servers to the available servers list.)

Type an address in the Server text box. The address must start with "ftp://" for FTP servers and "http://" for WebDAV servers. (ftp://www.horacemann.org)

Page 13: Adobe GoLive

FTP to the Web

Type a path name in the Directory text box.

Type a user ID in the User Name text box. Select the Save option and type a password in the Password text box.

DO NOT SAVE YOUR PASSWORD ON THE COMPUTER!

FTP Video

Page 14: Adobe GoLive

Working with a Web Server

Once you are connected, go to your folder.

In your folder you have two main options to choose from

Page 15: Adobe GoLive

Uploading Files

To upload files you should 1. Open up the window where the files

are located 2. Open up the folder on the server

where you want to place the files

Page 16: Adobe GoLive
Page 17: Adobe GoLive

Uploading Files

Simply drag your files one by one, OR all together into the folder

Depending on the size of your files, it should take between 5 seconds up until a minute

Page 18: Adobe GoLive

Opening up a Live Page

You can open up documents posted on a web server by double clicking on the document and making any changes that are needed. After you make your changes save the document and preview in a web browser to make sure it works correctly.

Page 19: Adobe GoLive

Summary

You should review this presentation and the associated videos to make sure you have the full knowledge you need to FTP.

You can also test your FTP login from home using GoLive, or Microsoft Internet Explorer by typing in the following address:

ftp://www.horacemann.org

Page 20: Adobe GoLive

Project 8Integrating JavaScript

with HTML

Page 21: Adobe GoLive

Objectives

Discuss how to integrate JavaScript with HTML Insert <SCRIPT> tags on a Web page Write start and end <SCRIPT> tags Define and use flickering to draw attention Describe the background color property of the

document object

Page 22: Adobe GoLive

Objectives

Set the background color of a Web page using JavaScript

Save the HTML file Test the Web page Discuss JavaScript variables Extract the system date Use several variables to construct a message

Page 23: Adobe GoLive

Objectives

Describe the write() method of the document object Write a user-defined function that displays a

message and links visitors to a new Web site Describe how the setTimeout() method works Use the lastModified property to display the last

modified document date Print an HTML Notepad file

Page 24: Adobe GoLive

Introduction

JavaScript is an object-based language Uses built-in objects

Properties are attributes of objects Methods are actions performed on an

object

Page 25: Adobe GoLive
Page 26: Adobe GoLive

Introduction

An event is the result of a user’s action Event handlers are the way to associate

that action with the set of JavaScript codes you want executed

Page 27: Adobe GoLive

Opening a Web Page

Open the Public Folder. Start Notepad, and maximize the window. Click File on the menu bar and then click Open. When the Open dialog box displays, type *.htm in the File name text box

Page 28: Adobe GoLive

Open from the Public Folderthe Project 8 folder, clickfun.htm and then point to

the open button

Page 29: Adobe GoLive

Click the Open button

Page 30: Adobe GoLive
Page 31: Adobe GoLive

Inserting <SCRIPT> Tags on a Web Page

JavaScript code can go anywhere in HTML Place all JavaScript code between the <SCRIPT>

and </SCRIPT> tags Set the LANGUAGE attribute so the browser knows

how to interpret your code The HTML comment line hides any script language

the browser might not be able to interpret<SCRIPT LANGUAGE=“JAVASCRIPT”><!– Hide from old browsers

Page 32: Adobe GoLive

Entering the Start <SCRIPT> Tag and Comment

Click the blank line (line 10) above the </BODY> tag

Page 33: Adobe GoLive

Type <SCRIPT LANGUAGE = “JAVASCRIPT”> and then pressthe ENTER key. Type <!– Hidefrom old browsers and then

press the ENTER key

Page 34: Adobe GoLive
Page 35: Adobe GoLive

Using a Flicker on a Web Page

Changes the background color in rapid succession

JavaScript allows you to set the background color multiple times, while HTML only allows you to set it once (in the BODY tag)

Page 36: Adobe GoLive

Creating Flicker on the Web Page

Click line 12. Press the SPACEBAR four times. Type document.bgColor=“red” and then press the ENTER key. Type document.bgColor=“white” and then press the ENTER key

Page 37: Adobe GoLive

With the insertion pointon line 14, enter the four

remaining lines of code asshown on the next slide

Page 38: Adobe GoLive
Page 39: Adobe GoLive

Setting the Background Color to a Static Color

The last color you specify will be the browser’s final background color

With the insertion point on line 18, type document.bgColor=“blanchedalmond” and then press the ENTER key

Page 40: Adobe GoLive
Page 41: Adobe GoLive

Completing the JavaScript Selection

It is now necessary to end the comment tag and close the <SCRIPT> tag

If necessary, click line 19. Press the ENTER key to create another blank line

With the insertion point on line 20, type //-> and then press the ENTER key. Type </SCRIPT> and then press the ENTER key

Page 42: Adobe GoLive
Page 43: Adobe GoLive

Saving the HTML File

Make sure you save this file in your folder, not on the Public Folder!

Page 44: Adobe GoLive

Type funwithphonics.htmin the File name text box, andthen double-click the Project 8

folder. Point to the Save button

Page 45: Adobe GoLive

Click the Save button

Page 46: Adobe GoLive
Page 47: Adobe GoLive

Testing the Web Page

Start your browser Open funwithphonics.htm and then

press the ENTER key

Page 48: Adobe GoLive
Page 49: Adobe GoLive

JavaScript Variables

Used to store values temporarily Global variables Local variables Variables are considered global, except

if they are declared in a user-defined function, in which case they are local

Page 50: Adobe GoLive

JavaScript Variables

Page 51: Adobe GoLive

JavaScript Variables

JavaScript variables are loosely typed You are not required to define the data type JavaScript defines the data type for you

String data types var LastName = “Simon”

Numeric data types var pageCnt = 1

Boolean data types var Done = false

Page 52: Adobe GoLive

Extracting the System Date

Built-in Date() object Can be manipulated only by creating a new object instance

var variable = new object var birthDay = Date(“Jul, 13, 1975”)

Returns July 13, 1975 to birthDay var curDate = new Date()

Returns the current system date and time information as an object instance

Page 53: Adobe GoLive

Extracting the System Date

The variable curDate cannot be manipulated

To extract the date, convert curDate to a string using the toLocaleString() and substring methods

Page 54: Adobe GoLive
Page 55: Adobe GoLive

Extracting the System Date

Define a new object for the date in MM/DD/YY HH:MM:SS format

var tNow = new Date()

Extract the date and time and store it in MM/DD/YY HH:MM:SS format

var tlocDate = tNow.toLocaleString()

Extract only the date portion from the tlocDate variable using relative addressing

var tDate = tlocDate.substring(0,10)

Page 56: Adobe GoLive

Extracting the System Date

Relative addressing

Page 57: Adobe GoLive

Extracting the Current System Date Using the Date() Object

Click the Notepad button on the taskbar to activate the Notepad window. Click line 19 below the document.bgColor=“blanchedalmond” statement

Page 58: Adobe GoLive

Type var tNow = new Date() and thenpress the ENTER key. Type

var tlocDate = tNow.toLocaleString()and then press the ENTER key. Type

var tDate = tlocDate.substring(0,10)and then press the ENTER key

Page 59: Adobe GoLive
Page 60: Adobe GoLive

Displaying the Current System Date

Use plus signs (+) to concatenate (join) strings and variables

Page 61: Adobe GoLive

Displaying the Current System Date in the Initial Greeting

Click line 22. Press the SPACEBAR four times. Type document.write(“<H2><CENTER>Welcome, today is “+tDate+”</CENTER></H2>”) and then press the ENTER key

Page 62: Adobe GoLive
Page 63: Adobe GoLive

Constructing a Message Using Several Variables

Click line 23. Type var intro1 = “Hi, thanks for visiting our Web site, but we have moved. Please make a note “ and then press the ENTER key

Type var intro2 = “of our new URL (www.funphonics.com) and notify the Webmaster about our new “ and then press the ENTER key

Page 64: Adobe GoLive

Constructing a MessageUsing Several Variables

Type var intro3 = “location. Click<A Href=‘http://www.scsite.com/’>here</A> or wait 15 seconds “ and then press the ENTER key

Type var intro4 = “to be moved automatically to our new site.” and then press the ENTER key

Page 65: Adobe GoLive

Constructing a MessageUsing Several Variables

Type var introMsg = intro1+intro2+intro3+intro4 and then press the ENTER key

Page 66: Adobe GoLive
Page 67: Adobe GoLive

Writing the Message on the Web Page

Click line 28. Press the SPACEBAR four times. Type document.write(“<H4><FONT Color=‘firebrick’>”+introMsg+”</H4></FONT>”) and then press the ENTER key

Page 68: Adobe GoLive
Page 69: Adobe GoLive

Saving a File

Save your file in your folder

Page 70: Adobe GoLive

Click Save

Page 71: Adobe GoLive

Testing the Web Page in the Browser

Click the Fun with Phonics button on the taskbar to activate the browser. Click the Refresh button on the browser toolbar

Page 72: Adobe GoLive
Page 73: Adobe GoLive

Activating the Notepad Window

Click the Notepad button on the taskbar to activate the Notepad window

Page 74: Adobe GoLive

Calling a JavaScript Function

Two basic methods to call a function Event handlers and object methods Code the function name in a JavaScript

section at the logical point of execution setTimeout() method

Causes a delay before an instruction is executed

Page 75: Adobe GoLive

Calling a JavaScript Function

Page 76: Adobe GoLive

Writing the setTimeout() Method to Execute the chngSite() Function

If necessary, click line 29. Press the SPACEBAR four times

Type setTimeout(“chngSite()”, 15000) and then press the ENTER key

Page 77: Adobe GoLive
Page 78: Adobe GoLive

Displaying the Last Modified Document Date

If necessary, click line 30. Press the SPACEBAR four times

Type document.write(“<BR><H4><CENTER>This document was last modified “+document.lastModified+”</CENTER></H4>”) and then press the ENTER key

Page 79: Adobe GoLive
Page 80: Adobe GoLive

Writing a JavaScript User-Defined Function

A function is JavaScript code written to perform certain tasks repeatedly

Built-in functions

Page 81: Adobe GoLive

Writing a JavaScript User-Defined Function

User-defined functions Written by the Web developer

Functions can have data passed to it To call a function means to have

JavaScript execute the function

Page 82: Adobe GoLive
Page 83: Adobe GoLive
Page 84: Adobe GoLive

Entering the chngSite() User-Defined Function in the HEAD Section

Click the blank line (line 4) between the end </TITLE> tag and the end </HEAD> tag

Page 85: Adobe GoLive

Type <SCRIPT LANGUAGE=“JAVASCRIPT””>and then press the ENTER key. Type

<!—Hide from old browsers and thenpress the ENTER key

Page 86: Adobe GoLive

Entering the chngSite() User-Defined Function in the HEAD Section

Press the SPACEBAR four times. Type function chngSite() { and then press the ENTER key. Press the SPACEBAR eight times. Type alert(“You are about to be transported to the new site location!”) and then press the ENTER key. Press the SPACEBAR eight times. Type location = “http://www.scsite.com/” and then press the ENTER key. Press the SPACEBAR four times. Type } and then press the ENTER key. Type //-> and then press the ENTER key. Type </SCRIPT> and then press the ENTER key

Page 87: Adobe GoLive
Page 88: Adobe GoLive

Saving the File

Click Save on the File menu

Page 89: Adobe GoLive

Testing the Web Page

Click the Fun with Phonics button on the taskbar

Click the Refresh button on the browser toolbar

If you are connected to the Internet, click the OK button when the dialog box displays with the alert message

Click the Back button on the browser toolbar to return to the Fun with Phonics Web page

Page 90: Adobe GoLive
Page 91: Adobe GoLive
Page 92: Adobe GoLive

Printing the HTML File Using Notepad

If necessary, click the Notepad button on the taskbar. Click File on the menu bar and then point to Print

Page 93: Adobe GoLive

Click Print

Page 94: Adobe GoLive
Page 95: Adobe GoLive

Closing Notepad and Your Browser

Click the Close button on the browser title bar

Click the Close button on the Notepad window title bar

Page 96: Adobe GoLive

Summary

Discuss how to integrate JavaScript with HTML Insert <SCRIPT> tags on a Web page Write start and end <SCRIPT> tags Define and use flickering to draw attention Describe the background color property of the

document object

Page 97: Adobe GoLive

Summary

Set the background color of a Web page using JavaScript

Save the HTML file Test the Web page Discuss JavaScript variables Extract the system date Use several variables to construct a message

Page 98: Adobe GoLive

Summary

Describe the write() method of the document object Write a user-defined function that displays a

message and links visitors to a new Web site Describe how the setTimeout() method works Use the lastModified property to display the last

modified document date Print an HTML Notepad file

Page 99: Adobe GoLive

What You Should Know

Page 100: Adobe GoLive

Project 8 Complete

PLEASE REVIEW FOR EXAM!