Isn't there any type of java script that will just load a particular file in the page on click?
Main Topics
Browse All TopicsHi! 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
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
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/pa
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?
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
Do the tutorial on dynamic pages.
http://www.macromedia.com/
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.
Business Accounts
Answer for Membership
by: WeaveDaddyPosted on 2005-04-14 at 11:45:25ID: 13784633
Use layers and use the 'on click' show or hide layer function. Embed each file on it own layer.