Results 1 to 2 of 2

Thread: How do I change an embedded video within a div?

  1. #1
    Join Date
    Apr 2012

    How do I change an embedded video within a div?

    I'm currently trying to create a gallery section for my website. I have thumbnails located in the body of the website that are setup as buttons linked to embedded videos. At the top of my page I have a div that contains an embedded video. What I would like to do is click on the thumbnails and have the embedded video change in the div with a new video - without reloading the page. Is this possible?

  2. #2
    Join Date
    Apr 2012
    JavaScript is a wonderful thing

    HTML Code:
    <script type="text/javascript">
        function optionCheck(){
            var option = document.getElementById("options").value;
            if(option == "show"){
                document.getElementById("hiddenDiv").style.visibility ="visible";
            if(option == "goto"){
                window.location = "http://google.com";

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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