473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Navigating between several Google Videos on a single page

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?

Aug 17 '06 #1
3 1105

le****@gmail.com wrote:
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.

Aug 19 '06 #2
supercoder wrote:
<snip>
//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.
Aug 20 '06 #3
This is great - just what I've been looking for.

Thanks!

supercoder wrote:
le****@gmail.com wrote:
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.
Aug 22 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: DavidM | last post by:
Hello - I recently purchased Camtasia for our training folks to begin recording videos on how to use various inhouse applications both for our customers and internal users that access our Extranet...
15
by: brundlefly76 | last post by:
As a Perl programmer for many years, this week I decided to stick my toe back into C for a specific project. During which I was tinkering with C++, which I have no production experience in. I...
17
by: Danny J. Lesandrini | last post by:
The following code works with a standard MDB to navigate to a particluar record (with a DAO recordset, of course) but it's giving me problems in an ADP I'm working on. Dim rs As ADODB.Recordset...
2
by: Daveyman | last post by:
Hi, I'm having a problem navigating to/from a subweb using forms authentication. The setup in IIS is as follows: TestSite +----SecureDir +----ReportsSubWeb In VS.Net 2003 this has been...
3
by: Greg Krzeszkowski | last post by:
Hi, This might be a little odd but I need to implement a back/"return to previous page" function from different pages within my asp.net application. The page the back button on has a property...
5
by: Roy Lawson | last post by:
I am having no problems connecting to a DB, creating a DataAdapter, and creating a dataset...and connecting to the data. Using the builtin data objects to do all this. My only problem now is...
16
by: Rex | last post by:
Hi All - I have a question that I think MIGHT be of interest to a number of us developers. I am somewhat new to VIsual Studio 2005 but not new to VB. I am looking for ideas about quick and...
1
by: JohnMOsborn | last post by:
I am designing an Access database that will use tab controls. Normally, you place different sets of fields on each page of the tab control – like Fields1-3 on Page 1, Fields 4-6 on Page 2, etc. In...
0
by: in10se | last post by:
I have a .NET 2.0 application that uses the WebBrowser control. Because all of my pages are generated dynamically, I am catching the Navigating event, cancelling it, and performing my own operations...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.