Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Is there a way to display the video in a website page as an arranges icons of videos or thumbnails, so whenever I click on one video it should open a new window to play that video? not play it in the same page.

as this code, but the target="_blank" not leading me to another page?
HTML
<a href="video1.aspx" target="_blank">
        <object type="video/x-ms-wmv" data="Videos/clock.avi" width="320" height="255" >
            <param name="src" value="Videos/clock.avi">
            <param name="autoStart" value="0">
            alt : <a href="Videos/clock.avi">clock.avi</a>
        </object>
    </a>
Posted
Updated 7-Aug-12 14:25pm
v4
Comments
Sergey Alexandrovich Kryukov 7-Aug-12 20:46pm    
The term "icon" has some quite clear technical meaning; and this is not video. So, please explain what do you mean. Just small video?
--SA

Why do you think a click to that element should show video in different page? This is not how it works. Basically, you should call a JavaScript on click, create a windows with the similar content (but perhaps a different size), with <object>, and show it:

http://www.blooberry.com/indexdot/html/topics/windowopen.htm[^],
http://www.w3schools.com/jsref/obj_window.asp[^].

You will need to use the window property document to write your content to it:
http://www.w3schools.com/jsref/dom_obj_document.asp[^].

Like in this sample:
http://www.javascripter.net/faq/writingt.htm[^].

—SA
 
Share this answer
 
you could make an animated GIF by sampling the video file, and use that an IMG tag into playing the video

The only issue there is the palette nature of GIFs creates some colour issues in the thumbnail
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900