Help Please!

Discussion in 'HTML & Website Design' started by flwmtn, Dec 8, 2013.

  1. #1
    Hello all, new to the forums and I thought someone might be able to answer what might be a simple question to most.

    When you click on any of the images in the grid below, it transitions to what you see in the second image, but rather than it show the image I would like to embed a youtube video. Is this possible?

    [​IMG]

    [​IMG]

    Thank you in advance!
     
    flwmtn, Dec 8, 2013 IP
  2. goneinsane

    goneinsane Well-Known Member

    Messages:
    303
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    #2
    Do you mean that a video will start playing when you hover on a link? I'm not sure I understand what you mean.
     
    goneinsane, Dec 10, 2013 IP
  3. g3xo

    g3xo Member

    Messages:
    6
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    38
    #3
    You first need to design the new popup with a video inside. Then you need to analyse the database structure to see if you can stick a video link in there. After that, you need to create e checker to see if the link is a video or an image. I recommend doing that by appending a new column in the table from the database to specify which type is the media (image or video). Then you can easily check if media == 'video' than echo the video iframe code with the link from the db inside, else, echo the image. I hope you get the idea.
     
    g3xo, Dec 10, 2013 IP
    Padurariu Alexandru and nelutu like this.