Why would you have to create 30 pages for each file? Or do you mean you have 30 videos, and you don’t want to create one page for each file? I’m confused.
Yes i have several videos and i dont want to embed them all in one page obivisouly so i want the standalone WMP to open them and start to steam so i dont have to creat 30 diffenernt pages each one having embded content.
Okay. Probably the easiest way to do this is, you can create the links to your embed HTML pages saying <A href=‘embed.html?vd_001.avi’>Click here for video 1</A>
What the code is doing is this: document.search gives you the portion of the current URL that is on and after a ? (if any) and before a # anchor. In this case, it’s ?vd_001.avi
The substring call should eliminate the ? and just leave the vd_001.avi
document.write will include that filename in the HTML source that the browser is rendering, as if it were in the HTML file from the start.
Depending on how the embed stuff works, you might need to document.write the entire tag instead of just the name, you can do that with “<tag whatever=’” + s + “>” or something like that
Hope that this helps start you off.
Thanks, i will give that a try. I will not need to create a page for each one correct? Java script is doing it on the fly?
EDIT: After looking at this it seems i will have to create an embed1 embed 2 embed 3 for every video files? Is there a way just to make WMP open and load the file when clicked?
Nah, what he’s saying is that your links would be like…
<a href=embed.html?avi1.avi>Video 1</a> <a href=embed.html?avi2.avi>Video 2</a> <a href=embed.html?avi3.avi>Video 3</a>
It’s a neato way to make a dynamic Web page without ASP or PHP.
Well I don’t know if that helped the OP, but it’s sure going to help me in future! Thanks.