Using an HTML image (img) element’s onclick event to change the source (src) of an iframe to an embedded youtube video.

Slides:



Advertisements
Similar presentations
PART IV - EMBED VIDEO, AUDIO, AND DOCUMENTS. Find a video on Youtube.com: Search for a video, then look for the Embed code. Copy this code into the HTML/JavaScript.
Advertisements

DREAMWEAVER Welcome to our website!
Microsoft FrontPage Monday January 28, The Basic FrontPage Setup.
KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
Html: getting started HTML is hyper text markup language. It is what web browsers look at on the Internet. HTML documents should be created in a simple.
CREATE A WEBPAGE WEB DESIGN. EXAMPLE LAYOUT 2 WEB COMPONENTS Header Banner and logo Footer Copyright information or Address Horizontal Navigation For.
Smart Board Tricks and Tips Ann Zier & Jen Miller October 13, 2014.
ETT 429 Spring 2007 Web Design I.
Creating Tables in a Web Site Using an External Style Sheet HTML5 & CSS 7 th Edition.
Using Frames in a Web Site
JavaScript “Hello World” in Microsoft Visual Studio August 2012.
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
Google Earth How to create a Google Earth Tour and place it in your Wiki.
Designing a Classroom Web Site Using NVU Beginning Level.
CHAPTER 8: Enhancing a Website Session 1. Objectives Embed a YouTube video in your website Insert a slideshow in your website Use Google fonts in your.
Images: HTML and CSS. The Bells page without images in Source View and Design View.
Transferring Course Materials to the Web. Creating a Web Site With a Template To create a Web site with a template 1.Start FrontPage. 2.On the File menu,
A guide for UICET for using Wikispaces.  A wiki is a web page or collection of web pages that can be linked together as a website.  Wikis are often.
Lesson 13: Building Web Forms Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
Creating Tables in a Web Site
Using Dreamweaver. Slide 1 Dreamweaver has 2 screens that do different things The Document window where you create your WebPages The Site window where.
Dreamweaver CS4 Concepts and Techniques Chapter 7 Page Layout with Frames.
Dreamweaver – Setting up a Site and Page Layouts Web Design Section 7-2 Part or all of this lesson was adapted from the University of Washington’s “Web.
MIS 201 Web Design. Website Planning Before even considering the practical aspects of creating a website, there are some important fundamental questions.
Creating your Webpage with tables. This is a 2 column by 1 row table!
Analysing Data with Excel Importing Data from a Text File To import data from a text file: 1.Start Excel. 2.Click File, click New, click Workbook,
Using FrontPage Express. Slide 1 Standard toolbars and menus Time indicator: gives an approximation of download time of the page.
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
Open Dreamweaver Start All programs Adobe design and web premium Adobe Dreamweaver.
Creating webpages in Google Sites. 1- Create a Gmail account.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit G Using Forms to Control Input.
Moodle with Style Integrating new technologies to empower learning and transform leadership.
Chapter 5 Quick Links Slide 2 Performance Objectives Understanding Framesets and Frames Creating Framesets and Frames Selecting Framesets and Frames Using.
Sports Website Creation. In this project you will design and produce your own website.
USING WORDPRESS TO CREATE A WEBSITE (RATHER THAN A BLOG) STEP-BY-STEP INSTRUCTIONS.
Put your assignment on the page. Embed a document for students to complete and send back to you. Have students complete the document and submit it to.
CSD 340 (Blum)1 Using Visual Studio CSD 340 (Blum)2 Start/Microsoft Visual Studio 2005/Microsoft Visual Studio 2005.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
MIS 201 Web Design 1. Website Planning Before even considering the practical aspects of creating a website, there are some important fundamental questions.
Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP.
Updated on: September 4, 2010 CIS67 Foundations for Creating Web Pages Professor Al Fichera.
USING WORDPRESS TO CREATE A WEBSITE (RATHER THAN A BLOG) STEP-BY-STEP INSTRUCTIONS.
HTML Concepts and Techniques Fifth Edition Chapter 4 Creating Tables in a Web Site.
HTML Concepts and Techniques Fifth Edition Chapter 3 Creating Web Pages with Links, Images, and Formatted Text.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
Creating and Editing a Web Page
1 Creating Links Lesson 2. 2 In the center column type : Home | Order Now | Contact Us This is the navigation button which will link to the other pages.
Web Site Development - Process of planning and creating a website.
Creating and Editing a Web Page Using Inline Styles
Wikis: Creative Collaboration in The Classroom  A wiki is a website that allows the user to easily add, remove, or edit information  A wiki can be accessible.
1 Creating a Menu Bar on a Secondary Web Page  It is important for visitors to be able to move easily from one page to another  You will create a menu.
Make an HTML table using Visual Studio. Approach 1: drag table from Toolbox.
Creating a Google Site For a Digital Portfolio Purpose.
Dreamweaver – Setting up a Site and Page Layouts Web Design Section 7-2 Part or all of this lesson was adapted from the University of Washington’s “Web.
HTML Help book. HTML HTML is the programming language used to make web pages for the Internet. HTML stands for Hyper Text Markup Language. HTML is made.
1 Word Processing Intermediate Using Microsoft Office 2000.
Weebly is Your Friend. * To Enhance And Promote Your Curriculum * To Provide A Student Resource * Add Efficiency to Your Planning * Informational * Promote.
Advanced HTML Tags:.
Introduction to HTML.
Dreamweaver – Setting up a Site and Page Layouts
Using Tables in Canvas.
With Microsoft FrontPage 2000
JavaScript “Hello World” in Microsoft Visual Studio 2012
Creating Tables in a Web Site Using an External Style Sheet
Simple steps of using Google Earth to prepare Field Study report
MIS 201 Web Design.
Basic HTML and Embed Codes
Select tags CSD 340 (Blum).
Using FrontPage Express
Presentation transcript:

Using an HTML image (img) element’s onclick event to change the source (src) of an iframe to an embedded youtube video

Start an HTML file, give it a title and header, then Save it.

Navigate to right click on image and save to same location as HTML filehttp://

Repeat for

Go to Design tab (at the bottom) and click on Table on the menu, choose Insert Table

Using the Insert Table dialog, choose 2 rows and 2 columns and click OK.

Return to the Source view tab. Notice the open and close table tags and. Notice the open and close table row tags and -- there are two sets because there are two rows. Notice the open and close table data (cell) tags and there are four sets because there are four cells (two rows with two columns each).

The HTML code stands for a non-breaking space Spaces in HTML code do not always translate into spaces seen by the user (person looking at the page), but the code does correspond to a space seen by the user

Drag from the Image icon in the Toolbox to between the first open cell and close cell tags Remember that if you do not have the Toolbox, you can get it by going to View/Toolbox on the menu

Click on the image so it appears in in the Properties Window on the left. Scroll to the src property (attribute) and click on the ellipsis (…) button that appears after you click in the cell next to src Remember that if you don’t have the Properties Window, you can get it by going to View/Properties Window on the menu. (Properties Window is near the bottom of the list.)

Use the dialog to select the abraham.gif file and click OK. It is really convenient when you are just starting to make webpages to put the image file and HTML file in the same location.

See the result – and remember you can always just type the code provided you know it.

Repeat for the second cell which should have an img element with the martin.gif file as its source.

Go to File/View in Browser to see the result so far

Next we Googled “html youtube” and choose the w3schools link (third).

Copy example code from

Paste the code between the open cell and close cell tags for both cells in the second row of the table

Result so far

Search youtube for a video on the Gettysburg Address and pick one.

We want the video’s code which appears after the ?v= in the URL

Paste the copied video code after the embed/ in the src attribute of the iframe

Result so far.

Repeat for the “I have a dream speech.”

Result so far

Give the Lincoln image an onclick event: And add the corresponding script section and function to the head.

Give the Abraham iframe an id attribute (ifAbe)

Add the code document.getElementById("ifAbe").src = " to your function. Make the src of the iframe equal to “”

The effect is to eliminate the iframe src (youtube video) until the image is clicked.

Repeat for Martin: give iframe an id, give image an onclick, write function to handle onclick