Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript / embed / frames problem

Status
Not open for further replies.

mistervague

Programmer
Dec 13, 2001
8
0
0
US
Hi all!
I wrote a javascript which does the following: Open a new window, write some HTML including an EMBED tag which embeds an MPG file, and write closing HTML tags.

The script works great when the source file (the one with the links) is NOT part of a frameset. If it IS part of a frameset, then everything still works, but the embedded MPG movie does not show up. What might be going on?
Thanks for reading!

-- Here's a line from the function tinyWindow(T,C) --
Code:
SW.document.write(&quot;<TR><TD ALIGN=MIDDLE><CENTER><EMBED SRC=\&quot;&quot; + T + &quot;\&quot; AUTOSTART=true LOOP=true CONTROLLER=false WIDTH=320 HEIGHT=240></EMBED></CENTER></TD></TR>&quot;)
T is the file name (a parameter)

-- Here is how I call it --
Code:
<A HREF=&quot;javascript:tinyWindow('Gallery/MOVIES/mov_1.mpg','Caption');&quot; window.status=&quot;&quot;; return true;&quot;><img src=&quot;images/still_1.gif&quot; border=&quot;0&quot; width=&quot;100&quot; height=&quot;75&quot;></A>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top