i'm back again!!!

admin

Administrator
Staff member
ok...i need to know how i can make a page with links on it so that ALL of the links refer to one page, but will load different files<br />
<br />
ie:<br />
want to make one MOVIE page, but have it able to play a file based on link that was clicked.<br />
Any help would be greatly appreciated.<!--content-->I would use IFRAMES for something like that,<br />
that way, the links are always the same and refer to different pages..<!--content-->that doesn't solve the ability to embed media in a page, and be able to load different files through the links, and i don't believe that any frames at all work on MSN pages.<!--content-->you didnt say anything about MSN, I have my own hosting..<br />
and then I use frames to load my music so it plays through the whole site and not just the page youre on..<br />
the way that your question is presented thats what it sounds like.. when you click a link, a different MOVIE will be loaded..<!--content-->ok...well now that I've mentioned it, can you please help<br />
<br />
I still don't know how to have a file embeded in a page, and have it open a different file depending on a link that has been pushed, and it NEEDS to work on msn.:D :D :D :confused: :confused: :confused:<!--content-->what type of link does it depend on?<br />
still not understanding the question.. please detail..<!--content-->ANY kind of link, i don't care, the main thing is getting the page to play a different video file upon the pressing of a link, if a person wants to see movie one, then they click the link for that move, but remain on the page.<!--content-->why not use php? i think that would be perfect for this, if I understand what you are trying to do.<br />
<br />
you can make one file called 'movieplayer.php'. start out by doing all your html to get it to look nice, and then insert some simple PHP at the beginning like this<br />
<br />
<?php<br />
<br />
$myimage = $_REQUEST["myimage"];<br />
<br />
?><br />
<br />
That just makes a variable which is easier to use than the $_REQUEST format... Now you can replace the file name in your embed tag for the movie with a php tag like this<br />
<br />
<br />
<img.src=http://www.webdeveloper.com/forum/archive/index.php/"images/<?php echo $myimage; ?>"><br />
<br />
I don't know what your embed code will look like, so I am just using an image for an example.<br />
<br />
Once you save your document as movieplayer.php, it will then expect a value to be passed in with the URL link.<br />
<br />
So from your first page you can set up all the links like this<br />
<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"movieplayer.php?myimage=movie1">First</a><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"movieplayer.php?myimage=movie2">Second</a><br />
<br />
<br />
and so on. So they all link to one page, but pass in the correct movie to play - I've just done this with flash movies, and it saves an awful lot of page creation...<br />
<br />
Hope that helps.<!--content-->Will PHP work on MSN??<!--content-->one simple word. NO:(<!--content-->thought so, hmm.. well by the looks of it,<br />
this project is simply impossible with free hosting. but there are always ways around things..<!--content-->What do you mean by doing it on MSN? Isn't this going to be a normal web page?<!--content-->I have found that although MSN is very good for making websites, they don't support much code editing. HTML included.<!--content-->
 
Back
Top