|
-
Senior Member
This isn't a flash problem as such, but since i get shockwave help in here more than anywhere, i thought someone could help me out with this 'undoubtedly' simple html problem i have.
I want to Click on the "OPEN" text link, to open 2 .html's in 2 different frames at once.
I know how to refernce 'one':
__________________________________________________
<a href="Link1.htm" target="TargetFrame1">OPEN</a>
__________________________________________________
The problem i have is, how do i get this one link to also open "Link2.htm" in "TargetFrame2"?
I pitty myself for stumbling on this simple problem . . .
-
Afraid I can't help you with the code offhand, though I've seen your request asked before with solutions.
Dreamweaver does this easily enough, if you have a copy - it is a feature on the behaviour menu. If you don't have it you can download a demo to view the code.
-
a job for javascript (which incidentally is all Dreamweaver's "behaviours" really are)
best way I can think of to do this is write a function and call it:
(in between your HEAD tags)
function open_multiple (url1,url2) {
_top.frame1.src = url1;
_top.frame2.src = url2;
}
And then on your link:
<A HREF="#" onClick="javascript pen_multiple(blah1.html,blah2.html);">blah</A>
Now, you'll need to play with this because I am absolutely certain it will not work properly like this. It's been a while since I did any javascript and I don't remember some of the syntax I need here... but you get the idea of what you need to do here.
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
|