1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Replacing a video loop with an image

Discussion in 'PHP' started by fuser00, Jun 10, 2016.

  1. #1
    Hi, I have a script with a video loop background. I want the site to load faster, so I need to replace that video background with an image.

    Heres the code:

    <div class="wrapper" style="position:absolute !important;height:100% !important;width:100% !important;margin-top:-200px !important;">
    <div class="embed-responsive embed-responsive-16by9">
    <video autoplay loop class="video" style="margin-top:200px;width:100%;">
    <source src=http://www.videoloopexample.com/video.m4v type=video/mp4>
    </video>
    </div>

    Im sure its pretty easy. How can I change it for an image?

    Thanks!
     
    fuser00, Jun 10, 2016 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    Just remove the video element and use an img element instead. If you want it to link to the video, wrap it in an a element with a link to the image.
     
    PoPSiCLe, Jun 10, 2016 IP