Navigating between several Google Videos on a single page

L

lewcio

I have a question about using embedded Google Videos on my site. Does
anyone have tips for allowing user to switch between videos (5) on the
same page? The caveat is that only one would be showing at a time. I
imagine it would require javascript coding. If so, would you have any
examples?
 
S

supercoder

I have a question about using embedded Google Videos on my site. Does
anyone have tips for allowing user to switch between videos (5) on the
same page? The caveat is that only one would be showing at a time. I
imagine it would require javascript coding. If so, would you have any
examples?

I would do something with changing the inner HTML of a div, as such:
<div id="video"> </div>

//in the calling function to change to a specific video:
document.getElementById("video").innerHtml = "whatever HTML it takes to
embed a google video";

That calling function could be called from a button, a link, or
anything.
 
R

Richard Cornford

supercoder wrote:
//in the calling function to change to a specific video:
document.getElementById("video").innerHtml = "...
^^^^^^^^^

In case-sensitive javascript, writing to the Microsoft originating,
proprietary - innerHTML - properties of elements will be more effective
if the correct case is use in the property name.

(It may also be a good idea to read what the FAQ has to say on
formatting code for use in newsgroup posts <URL:
http://jibbering.com/faq/ >).

Richard.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,710
Members
48,796
Latest member
Greg L.
Top