473,396 Members | 1,990 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,396 software developers and data experts.

IFRAME closed captioning component???

1
Hello to all.

I just finished my first web development class so now I have a little knowledge and could be considered dangerous.

I have no real clue on how to make this idea work but it sure seems feasible and would immensely appreciate any assistance or direction to make this happen.


What I want to happen is to have the user have the ability to turn an IFRAME, ON and OFF at anytime say within a series of 25 continuously linked pages.

OK that doesn't sound like a big deal. The problem is how do I make the IFRAME stay open or closed as the user moves from page to page through the sequence of pages? I am trying to create closed captioning component for a training piece. So if the user decides to use the CC the IFRAME would stay open through all the pages of a section and the content of the IFRAME would automatically change to correspond to the new page as the user advances through a section.

I have done this in flash by loading and unloading movies. So to show the CC the user hit a button that unloaded the top layer movie to expose the CC on a lower layer and back on to close or hide it again. That was a pretty simple task but I can not get my head around JavaScript and IFRAME to make this happen and could sure use a whole lot of help.

Thank you
Clancy
May 5 '07 #1
2 1474
acoder
16,027 Expert Mod 8TB
Welcome to TSDN.

I assume you mean you want to hide/display the iframe. Use the display property:
Expand|Select|Wrap|Line Numbers
  1. document.getElementById(frameid).style.display='none'
to hide and st it to 'block' to display.
May 5 '07 #2
pbmods
5,821 Expert 4TB
If all you're doing is displaying text, an iframe is probably way overkill (plus it breaks web standards).

Instead, just put a DIV on your page and set its display property as acoder mentioned.

Whenever you need to change the text of the DIV, just use:
Expand|Select|Wrap|Line Numbers
  1. document.getElementById('theId').firstChild.nodeValue = text;
  2.  
May 5 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Vilmar Brazão de Oliveira | last post by:
Hi folk, How can I send a IFRAME element in a message with Cdonts or other component? the IFRAME follows below: I tried to send using webmail and outlook and I coudn'n sent yet. I doesn't appear...
1
by: boyscout | last post by:
On a page I'm offering file download links which are each targeted to an tiny 1-pixel X 1-pixel iframe on the same page. (If you care why, see below.) Under certain conditions, I want to popup a...
2
by: sebastiraj | last post by:
I have one JSP program in which one iframe is defined. And the source of which is an another jsp. Contents of an iframe is in hyperlink. When i click any of the hyperlinks one popup box will come....
3
by: Wraith Daquell | last post by:
Hello all! I'm trying (read: becoming frustrated) to write a DVD viewer in VB.NET. I can embed the DVD picture using DirectX technology, but it seems to be impossible to obtain closed captioning...
7
by: pb | last post by:
Hi all, I have some code that automatically generates a url depending on user selections. This url is then set as a hyperlink and the user clicks on the link that has the target as an iframe on...
0
by: PulkitZery | last post by:
Hi all, I have a question about windows media encoder (WME) closed captioning. Does WME maintains the Line-21 closed captioning? In other words, does windows media encoder pulls closed captioning...
3
by: PulkitZery | last post by:
Hi All, I am trying to get the Closed Captioning (if available) from the Windows media player and display it in my little dialog box. Can some one give me an example or point me to any...
16
by: vikas000000a | last post by:
Hello all, I am creating a report generation program with VB 6.0 as front-end and Oracle 10i as back-end. My reqiurements are 1. User will query the database through the front-end. 2. The...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.