web foundations wednesday, november 20, 2013 lecture 32: dreamweaver slide show and google map

29
Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32 : DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

Upload: eleanor-chandler

Post on 13-Dec-2015

221 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

Web FoundationsWEDNESDAY, NOVEMBER 20, 2013

LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

Page 2: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

Inserting a Slideshow

Page 3: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

Inserting a Slideshow: Steps

Open the HTML file that will be used for the slideshow in Dreamweaver. The "Plain Page" file below can be used for this example.

Find the <section> or <div> that will contain the slideshow, and click in the space that will house the slideshow.

Alternative Online Slideshow Builder: http://www.barelyfitz.com/projects/slideshow/wizard/

Plain Page: http://faculty.cascadia.edu/cduckett/foundations/test/slideshow.html

JavaScript: http://faculty.cascadia.edu/cduckett/foundations/test/slideshow.js

1.

2.

Images for Slideshow: http://faculty.cascadia.edu/cduckett/foundations/test/images/

Page 4: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

From the menu bar, select Insert, then Layout Objects, then Div Tag

3.

Page 5: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

In the Insert Div Tag popup select the New CSS Rule button.

4.

Page 6: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

In the New CSS Rule popup, change the contextual selector type to ID, and name the selector slideshow.

5.

Page 7: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

In the CSS Rule Definition for #slideshow popup, select the box category from the left-hand column, and enter the following:

Width: 246 pxHeight: 187 pxPadding: 2px (Same for all)

6.

Page 8: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

Now select the Border category and enter the following:

Style: solid (Same for all)Width: 1 px (Same for all)Color: #666 (Same for all)

Click on OK, and then OK again.

7.

8.

Page 9: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

Examine the page in Design view.

Delete the "dummy" text that Dreamweaver has entered into the box.

9.

10.

Page 10: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

In <div id="slideshow"> enter the following script:

<script type="text/javascript"> var show = new SlideShow("", ["dude1.jpg","dude2.jpg","dude3.jpg","dude4.jpg","dude5.jpg","dude6.jpg", "dude7.jpg"], 240, 181); document.write(show.getHTML()); show.run(); </script>

11.

Page 11: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

Save and test your slideshow page in the browser. If the pixel width or height is off, the images may appear to overrun the slideshow by one image.

12.

Page 12: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

This can be fixed by manually resizing your various pixel width and height in the code until the overrun issue is repaired, or else you can simply add overflow:hidden; to #slideshow in the CSS code. Easy-peasy!

13.

Page 14: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

Inserting a Google Map

Page 15: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

Inserting a Google Map

Plain Page: http://faculty.cascadia.edu/cduckett/foundations/test/map.html

Open the HTML file that will be used for the Google map in Dreamweaver. The "Plain Page" file below can be used for this example.

Find the <section> or <div> that will contain the Google Map, and click in the space that will house the map.

1.

2.

Page 16: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

As before, from the menu bar, select Insert, then Layout Objects, then Div Tag

3.

Page 17: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

Also as before, in the Insert Div Tag popup select the New CSS Rule button.

4.

Page 18: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

In the New CSS Rule popup, change the contextual selector type to ID, and name the selector LocationMap.

5.

Page 19: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

In the CSS Rule Definition for #LocationMap popup, select the box category from the left-hand column, and enter the following:

Width: 600 px

6.

Page 20: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

Now select the Border category and enter the following:

Style: solid (Same for all)Width: 1 px (Same for all)Color: #666 (Same for all)

Click on OK, and then OK again.

7.

8.

Page 21: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP
Page 22: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

In your browser, go to maps.google.com and start typing Cascadia Community College in the search bar to bring up a map of Cascadia's location, then click on the little link icon (circled in red below)

9.

Page 23: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

This will bring up a URL that can be pasted into a browser, but instead click on Customize and preview embedded map

10.

Page 24: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

In the new popup window, select Custom then enter the following:

Width: 600Height: 300

Next, select all the HTML code from the lower code window and copy it which is going to be pasted into the <div id="LocationMap">

11.

Page 25: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

Return to Code view and highlight the "dummy" text that Dreamweaver put in

12.

Page 26: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

Now paste in the HTML code you previously copied from the Google Map popup13.

Page 27: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

Return to Design view to examine your map container. If you want, you can delete the View Larger Map link if you don't care to have it.

14.

Page 28: Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP

In my example I deleted the View Larger Map link. Save your work, then examine the page in the browser.

15.