<body class="hw">
<div class="container">
<h1>CSCI E-3 Project Unit #3a</h1>
<p class="whatlearn">Unit 3 Projects will cover the DOM, browser Events
and FORM handling, with a detour into Javascript closures.This part (a)
will focus on the DOM. </p>
<h3 class="whatlearn">What you're learning:</h3>
<p>Javascript is the "behavior" layer of the client-side Web experience.
This unit covers some of the common interactions between the components
of a Web page (structure, content, styles, forms) and Javascript, as
exposed by the DOM and the DOM Event model. <br>
</p>
<ol>
</ol>
<h3>What you need to do:</h3>
<ol>
<ol>
<li>DOM Exercise: Split a block of text into individual SPANs or DIVs</li>
</ol>
</ol>
<h4>1) DOM Exercise: Split a block of text into individual SPANs or DIVs</h4>
<p>The following exercise contains a block of text that represents the
written transcript of a video. Often, a transcript is provided with a
video so viewers can read along, or so the video can be captioned.
</p>
<p>In this exercise, we'll be doing the first step in building an
interface that could appear alongside a video player on a Web
page. The idea is that each word in the transcript will highlight
as the matching portion of the video is playing.</p>
<p>In order to do this, each word must be in its own HTML SPAN (or DIV).
In a real video transcript application, each SPAN would have a time
value in seconds associated with it, and as that moment of the video
played, we'd change the background color of the SPAN matching that time
period. </p>
<p> In a real application, we would also have the word be clickable, upon
which the video would seek to the appropriate moment and play from
there. We will do this in Unit 4 if this...