Forum Moderators: open

Message Too Old, No Replies

Flash buttons linking to Framesets

I want Flash to open index_a.html and another page which needs to open in

         

anubis

8:39 am on Aug 21, 2002 (gmt 0)

10+ Year Member



hi
I have created a Flash intro which has a number of buttons to click. The page with the Flash intro is index.html this page has no framesets. What I want to do is when you click one of the buttons in the intro it loads index_a.html (in the same window) which is a frameset. This frameset consists of 4 frames left, navigation, content and right.

Going back to the button in the intro Flash I want to open index_a.html and another page which needs to open in the contents frame of index_a.html.

My question is how do I get Flash to do this? Any suggestions would be most appreciated.

Cheers

Johnathan

korkus2000

12:38 pm on Aug 21, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here is a tutorial that explains what you do.
[flashkit.com...]

If you want to control multiple frames then duplicate the action with the url and frame name to send.

example of handling 2 frames with one click:

on(release){
getURL ("example.html", "navFrame");
getURL ("example2.html", "sideFrame");
}

korkus2000

1:42 pm on Aug 21, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ok I reread your post and guess thats not exactly what you want.
We can use a little javascript by passing your page name in the querystring.

In the getURL parameter put your page.htm followed by ?name=nameofyourpage.htm
It should look like this page.htm?name=nameofyourpage.htm

on(release){
getURL ("page.htm?name=nameofyourpage.htm");
}

Then in your frameset call a page that has a javascript query search.

<html>
<head>
<title>Master frameset</title>
</head>

<script language="JavaScript" type="text/javascript">

var querystring = window.location.search;
var querystringValue = querystring.substring(querystring.indexOf("=") +1, querystring.length);

document.write('<frameset cols="20%,80%"><frame src="nav.htm" name="nav"><frame src="' + querystringValue + '" name="content"><\/frameset>')

</script>

</html>

another great way is to follow tedsters orphan page javascript and just link directly to that framed page and have it call the frameset around it.
[webmasterworld.com...]