Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Pass the mouse over the image and get a video

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #190151
    jdrc12
    Participant

    I’m tried to show a video when you pass the mouse over a image but i failed so many times, i got the code form this page (http://www.htmlgoodies.com/beyond/javascript/article.php/3470881) and i tried to modify but there is no result for me.

    I use this video (http://gfycat.com/ShockingDependableHogget) that is from the “gfy” page that converts gifs into videos and load very fast. This is the code:

    <video id=”gfyVid1″ class=”gfyVid” width=”646″ height=”326″ autoplay=”” loop=”” muted=”muted” style=”display: block;”>

            <source id="webmsource" src="//fat.gfycat.com/ShockingDependableHogget.webm" type="video/webm">
            <source id="mp4source" src="//zippy.gfycat.com/ShockingDependableHogget.mp4" type="video/mp4">
    
        </video>
    

    if you can help me i will be very grateful because i don’t have much experience on javascript and css… and sorry for my english… Thank you for reading.

    #190155
    Paulie_D
    Member

    A demo in Codepen would be useful.

    #190240
    jdrc12
    Participant

    Ok Paulie_D, this is what i have: http://codepen.io/anon/pen/jEWwdx

    I want that when you pass the mouse over the players face you can get the video instead of the picture 1, 2 or 3.

    #190252
    jdrc12
    Participant

    Thank you for answer me, i know how to put the gifs, the problem is that are so slow to load that is a problem for my page, the video is the fastest thing that i can find to put… you know some example that i can use for that script? is very complicated?…

    #190348
    jdrc12
    Participant

    Thank you so much, you are a really good person!!!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.