Embedding video into web page

Posted on 2005-04-13
Last Modified: 2007-12-19
Hi! I have a bunch of videos, images, and flash that I want to embed into my page. I'm new to this, but i've figured out how to embed with each file having it's own page. But thats really cluttered if i have like 50 things. Is there a way that I can load each video on click in the bottom section of my page? So if the user clicks link 1, it loads right below all of the links, or if they click link 2, it loads in the same location, at the bottom of the page.

Is there anyway i can do this? (without frames, because that still requires me to create a sperate page for each one, right?)

Thanks for your help in advance! If you need anymore info, let me know!


Question by:bick2000
    LVL 1

    Expert Comment

    Use layers and use the 'on click' show or hide layer function.  Embed each file on it own layer.

    Author Comment

    Isn't there any type of java script that will just load a particular file in the page on click?
    LVL 1

    Accepted Solution

    you could build a database of file locations and the embed code and just have the page read an ID code from the url and dynamically populate the page with the appropriate code.  One page handles all the requests

    would find the first bid of html code in the database and replace a dynamic variable in the page with the appropriate html code to complete the page and display the right, image or movie.

    Have you done any dynamic html from databases?  Do you use dreamweaver?

    Author Comment

    I use dreamweaver and I have database access, but have no familiarity with such an idea. And I don't expect you to give me a lesson on it, but if you could point me in the direction of some useful learning resources, that would be very much appreciated. I really like how that sounds.

    Thank you.

    LVL 1

    Expert Comment

    Do the tutorial on dynamic pages.

    You will learn how to, let's insert an image from a database... which will reall just be the code for the image in the databse, not the actual image.  The principle will be the same.  If the dynamic call for the image location is a variable named "ImageLocation" the code for ASP VBscript will look like <%= ImageLocation%>  In your database the value for that might be "<img src="/images/image1.jpg">  Your code can be whatever.  It can be the entire code to embed a movie.  In your database, your code snippets with have unique IDs 1,2,3,4,5 etc.

    So when you make links on your page, you just send them to the same page they are on and have the recordset for the database read from the url... it's called request.querystring.

    Any way, do the tutorial for dynamic pages... it might make more sense.  Then repost here with questions.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Read about why website design really matters in today's demanding market.
    I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
    The viewer will learn how to dynamically set the form action using jQuery.
    Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    6 Experts available now in Live!

    Get 1:1 Help Now