Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3647
  • Last Modified:

Embedding video into web page

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!

Thanks,

Bick
0
bick2000
Asked:
bick2000
  • 3
  • 2
1 Solution
 
WeaveDaddyCommented:
Use layers and use the 'on click' show or hide layer function.  Embed each file on it own layer.
0
 
bick2000Author Commented:
Isn't there any type of java script that will just load a particular file in the page on click?
0
 
WeaveDaddyCommented:
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

http://www.yoursite.com/page.jps?locationID=1

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?
0
 
bick2000Author Commented:
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.

Bick
0
 
WeaveDaddyCommented:
Do the tutorial on dynamic pages.

http://www.macromedia.com/support/dreamweaver/documentation/dwmx_tutorials.html

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.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now