Makking buttons open a url in a different html frame.
How would I make a button open a page in a different html frame? You can find an example of the site I'm developing at www.dreamlangames.com/trav/
Senior Member
Target the frame name from the button.
on(release){getURL("myPage.html","left");}
Last edited by green_eye; 09-19-2004 at 08:02 PM .
Originally posted by green_eye
Target the frame name from the button.
on(release){"myPage.html","left");}
Well I put:
"./newsframe.html","main"
or
"./newsframe.html","mainframe"
and it says it cant find the above lines when I hit the button. What am I doing wrong?
Oso polar
How is the whole action of your button?
Originally posted by Poco
How is the whole action of your button?
on (release) {
getURL("./newsframe.html", "_main");
}
I've also tried mainFrame(which is that it's called as a frame on the home.html page). It either doesn't open the window, or it opens just the newsframe alone. I need just the mainframe to change and to leave the header & menu frame alone.
Oso polar
code:
on (release) {
getURL("newsframe.html", "_main");
}
Now it should work if your frame is called "_main".
Originally posted by Poco
code:
on (release) {
getURL("newsframe.html", "_main");
}
Now it should work if your frame is called "_main".
The reason I have the ./newsframe.html is because it is located a folder up from where the .swf is.
(folder)newsframe.html < (folder)Menu.swf
Oso polar
In that case it should be:
"..//mainframe.html"
Originally posted by Poco
In that case it should be:
"..//mainframe.html"
No I'm sure, its not the page I'm targeting thats the problem. It's targeting the frame to open that page is what I need to get.
Oso polar
Uh, I am confused. Sorry to say but my English sucks. Look, here is an example (I made it long ago for a web page). Don't you mean this?
Attached Files
Oso polar
...because if you mean, (I see I forgot to put there the fla there) the action of the button is
code: on (release) {
getURL("onas.htm", "mainFrame");
}
If not, I give up.
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