|
-
I have a flash movie which runs in a bottom frame of my page. By clicking on lowres pic in the movie I want to load a high res pic in a different frame than the movie itself. Please, tell me if it can be done and how?
Thanks
-
You could use a GetURL to do a javascript function in the bottom frame. Pass it the URL of the image. This javascript function then loads the given URL targetting the other frame.
-
How do u pass the URL? Guess I'm too green to even get what u r talking about 
Say, I have the JavaScript:OpenNewWin() in my flash movie
and than the JS in my bottom frame:
function OpenNewWin()
{window.open("Climb.htm", "Climb",
"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=600, height=400");}
... and what next?
-
Well, first, you don't want to open a new window. You want to load a new page I presume.
In flash:
Get URL ("javascript:pushImg('/images/hires1.jpg')")
In HTML:
function pushImg(img) {
top.frames["topframe"].location.href="/top.html?img=" + img;
}
In top.html you'll have to put the javascript in to parse the search string and place the text in a document.write().
I could give you the code...but I'm really busy right now. Sorry....try irt.org.
-
-
sheesh - doesn't anyone do their own homework anymore?
<html>
<BODY BGCOLOR="#ffffff" TEXT="#000000" marginheight=0 marginwidth=0 topmargin=0 leftmargin=0 rightmargin=0 id=all>
<SCRIPT LANGUAGE="JavaScript">
<!--
var argv = location.search;
var img = "";
if (argv.length > 0) {
s = "img=";
a = argv.indexOf(s);
img = argv.substring(a + s.length, argv.length);
}
document.write("<img src='" + img + "'>");
//-->
</SCRIPT>
</body>
</html>
-
Casino, I do, honest. Just not when I have to have it solved by 8 the morning and its 1:30 a.m my time. But I'll be happy to help u anyway I can, always. THANK YOU
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|