reveal icon indicating copy to clipboard operation
reveal copied to clipboard

Embedded Video is displayed on webpage.

Open ghost opened this issue 14 years ago • 6 comments

I have a youtube video embedded within the 'Modal Display' div.

I have linking to this page through PHP referencing - ?page=videos etc...

When the page loads, the video is already 'shown' on the page, where it should be when the user clicks the link to reveal the Modal.

The video should not be shown until the visitor has clicked on the appropriate link. An example of the embed code used is:

<div id="addYoutube" class="reveal-modal">
 <h1>Add a YouTube Business Video.</h1>
<object width="425" height="349"><param name="movie" value="http://www.youtube.com/v/zoMYU_nOGNg"></param>  
<param name="allowFullScreen" value="false" autoplay="1" modestbranding="1"></param>
<param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/zoMYU_nOGNg?
version=3&amp;hl=en_US" type="application/x-shockwave-flash" width="425" height="349" allowscriptaccess="always"
allowfullscreen="false"></embed></object>
<a class="close-reveal-modal">Exit</a>
</div>

Would this issue be solved by editing a parameter within the embedded code?

Many thanks.

ghost avatar Aug 10 '11 18:08 ghost

Are you including the reveal.css on this page? Without this the modal will not be hidden by default.

If you are, then can you please provide a link to a live example of the code, so I can see why the content is not being hidden inside the display: none; div.

Thanks!

mkelly12 avatar Aug 11 '11 17:08 mkelly12

I have a similar issue in IE7. I have a table inside of the modal that has 1px borders on the tops of the table rows. It seems that everything is hidden except these 1px lines from the table on page load.

It's odd because, if you click any button that opens the same or different modal the lines disappear.

isoceles avatar Aug 16 '11 15:08 isoceles

Another issue also, any videos in the background that aren't inside the div, also show through the faded background.

ghost avatar Aug 20 '11 10:08 ghost

I'm having this problem too - the video is already 'shown' on the page, until either a scroll or mouse click.

http://www.deeside.ac.uk/build/

Please, any suggestions?!

brd1984 avatar May 09 '12 10:05 brd1984

Try setting the wmode to opaque http://stackoverflow.com/questions/4050999/youtube-iframe-wmode-issue

mkelly12 avatar May 09 '12 15:05 mkelly12

Works like a charm - thank you so much!

brd1984 avatar May 10 '12 08:05 brd1984

Had the same trouble with embedding a Vimeo video, tried solution by mkelly12 with no luck My solution: add to styles css: iframe {display:none} added an id to vimeos iframe code [#contentIframe]

added class to modal href [a href="#" data-reveal-id="mymodal" class="vidshow"]

  • created 2 simple jquery scripts to display/hide iframe $(".vidshow").click(function(){ $("#contentIframe").css({'display':'block'});

$(".vidhide").click(function(){ $("#contentIframe").css({'display':'none'});

on close of modal window [a href="#" class="close-reveal-modal vidhide"]

coldes avatar Jul 17 '13 02:07 coldes