Results 1 to 5 of 5

Thread: Embed Video in Parallax Slider?

  1. #1
    Join Date
    Sep 2004
    Location
    Tallahassee, FL USA
    Posts
    264
    Thanks
    71
    Thanked 2 Times in 2 Posts

    Default Embed Video in Parallax Slider?

    1. Script: Parallax Slider
    2. URL: http://www.dynamicdrive.com/dynamici...ider/index.htm
    3. Issue: Would like to embed a video into the slide. I have it set up on a sample page here: http://www.cisfl.org/sample1.html The video is embedded as the 4th slide, but it only works in Internet Exploder, not Chrome or
    FF.

    I tried changing
    Code:
    <div class="bgoverlay" data-bgimage="/graphics/slider03.jpg"></div>
    to
    Code:
    <div class="bgoverlay"></div>
    to lose the image, but no luck.
    Any help getting a video embedded and working on all major browsers would be greatly appreciated.
    Thanks,
    Deborah
    Deborah Whipp
    Web Designer
    Tallahassee, FL
    www.DWWebDesigns.com

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Try this:
    Code:
    <div class="slide" >
    <div class="bgoverlay"></div>
    <div class="desc">
    <iframe style="position: relative; width: 100%; height: 100%"  src="http://www.youtube.com/embed/7OmAiEvGp7A" frameborder="0" allowfullscreen></iframe>
    </div>
    </div>
    </div>

  3. The Following User Says Thank You to molendijk For This Useful Post:

    dmwhipp (11-18-2014)

  4. #3
    Join Date
    Sep 2004
    Location
    Tallahassee, FL USA
    Posts
    264
    Thanks
    71
    Thanked 2 Times in 2 Posts

    Default

    Thank you!
    Deborah Whipp
    Web Designer
    Tallahassee, FL
    www.DWWebDesigns.com

  5. #4
    Join Date
    Sep 2004
    Location
    Tallahassee, FL USA
    Posts
    264
    Thanks
    71
    Thanked 2 Times in 2 Posts

    Default

    Okay, I have a new request - remove the video title and add a caption instead. I moved the iframe up into the bgoverlay so I could use the desc div for the caption, and everything appears to be working, except of course the video doesn't appear at the top of the div, which I know they will ask me to try to rectify.

    Here is the coding:
    Code:
    <div class="slide">
       <div class="bgoverlay"><iframe id="thevidiframe" style="position:relative; width:100%; height:100%; border:0;" src="http://www.youtube.com/embed/7OmAiEvGp7A?&amp;wmode=transparent&amp;showinfo=0&amp;" allowfullscreen></iframe></div>
       <div class="desc">
    	<div style="position:absolute; width:300px; top:45px; left:15px; background:#000; padding:10px; border-radius:10px;">
    	This is where the video caption will go.	
    	</div>
       </div>
    </div>
    Here is the result: http://www.cisfl.org/sample1.html

    The video is the 3rd slide. I'm testing out different methods on different sample pages (add vertical-align, YouTube parameters, etc.) with no luck so far.

    I'm not sure what is causing that blank black bar across the top of the video, even after using Google Developer Tools - is that padding from somewhere, or the empty YouTube title bar?

    Deborah
    Deborah Whipp
    Web Designer
    Tallahassee, FL
    www.DWWebDesigns.com

  6. #5
    Join Date
    Sep 2004
    Location
    Tallahassee, FL USA
    Posts
    264
    Thanks
    71
    Thanked 2 Times in 2 Posts

    Default

    I have it working with the video displaying at the top (http://www.cisfl.org/sample1.html) by including inline style with a negative top margin:
    Code:
    <div class="slide">
       <div class="bgoverlay"><iframe id="thevidiframe" style="position:relative; width:100%; height:100%; border:0; margin-top:-38px;" src="http://www.youtube.com/embed/7OmAiEvGp7A?&amp;wmode=transparent&amp;showinfo=0&amp;" allowfullscreen></iframe></div>
       <div class="desc">
    	<div style="position:absolute; width:300px; top:15px; left:15px; background:#000; padding:10px; border-radius:10px;">
    	<span style="font-size:20px;">Whatever It Takes</span><br>Featuring CIS Chair Elaine Wynn.	
    	</div>
       </div>
    </div>
    I think I'll determine the proper dimensions for embedding videos to get rid of the negative margin (960 x 540?) and adjust the CSS file and rest of the slides accordingly.
    Deborah
    Deborah Whipp
    Web Designer
    Tallahassee, FL
    www.DWWebDesigns.com

Similar Threads

  1. Parallax Slider - there is no attribute "data-bgimage"
    By Absintheur in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 10-08-2014, 07:09 PM
  2. embed youtube video problem
    By biomike in forum HTML
    Replies: 6
    Last Post: 01-14-2010, 09:03 AM
  3. Embed Video and Audio files
    By kennyzita in forum PHP
    Replies: 2
    Last Post: 10-20-2009, 02:30 PM
  4. How to embed video to a page?
    By jayakrishnan in forum PHP
    Replies: 3
    Last Post: 01-22-2009, 10:53 PM
  5. Embed video player
    By bbilal in forum JavaScript
    Replies: 2
    Last Post: 10-12-2007, 07:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •