Click to See Complete Forum and Search --> : Frames and off page links


gully300
05-22-2006, 10:05 AM
Hi, i'm sure there is a simple solution to this i just dont know how to solve it.

I have swf files that i want to display in a new window, the catch is this new window is actually and html page with a frame that i want to open up when the link is clicked.

The swf files need to be in a frame because of some protruding bits of the animations, i have created an <iframe> against a black background and its all good and proportioned etc.

what i need to do is create a link i post on another page that will open up that window and post the appropriate swf file in that page, cos there are about a 100 files and it isn't pratical to create a seperate page for each.

i would really appreciate any help, i have a feeling i has somthing to do with
(page address)?target=(somthing somthing)
or somthing like that

thanks in advance.

the tree
05-22-2006, 11:15 AM
If you have server-side scripting avaliable then you can create documents dynamically from infomation such as that in the URL (the "GET" variables).
If for instance, you had PHP avaliable, then you'd have a page saved with a .php extenstion with this in it:<object
type="application/x-shockwave-flash" data="movie.swf"
style="width: 400px; height:300px;">
<param name="movie" value="flashfiles/<? print $_GET['filename']; ?>.swf" />
<!-- et cetera -->
</object>and link to the page like like so<p>Watch <a href="flash.php?filename=foo">foo</a> or <a href="flash.php?filename=bar">bar</a>!</p>