Reply LinkBack Thread Tools Search this Thread
Old 05-04-2003, 15:05   #1 (permalink)
mantis25
Registered User
 
Join Date: Apr 2003
Posts: 5
Send a message via Yahoo to mantis25
HTML - how do I....multiple target urls with a single link?

I have been making webpages for like 5 years - if you believe it..
Still a newbie - I'm mostly an illustrator.

heres my thing:

I tried:

<p><a href="#" onClick=
"parent.frame1.location='http://www.url1.com';
parent.frame2.location='http://www.url2.com';
return false;
">link</a>

And that works good. Two pages open up in two target frames from a single link.

EXCEPT - - now I want one of those target frames to be the parent frame the link resides in.

Now this script wants to get stupid and not work for me.
Anybody know a way to do this??
Its gotta be an easy one, right?..

Thanks
  Reply With Quote
Old 29-04-2003, 13:28   #2 (permalink)
mantis25
Registered User
 
Join Date: Apr 2003
Posts: 5
Send a message via Yahoo to mantis25
So - nobody knows???

I doubt that.... Thanks anyway I guess....

Sorry Im not a more special programmer dude who's cool or anything...

  Reply With Quote
Old 29-04-2003, 13:35   #3 (permalink)
oli
I Call Shenanigans™
 
oli's Avatar
 
Join Date: Feb 2003
Location: Manchester, England.
Posts: 9,973
sorry I cant help m8, I never use frames.
__________________
Linked In :: Last.fm :: Twitter me
..................
  Reply With Quote
Old 29-04-2003, 14:02   #4 (permalink)
lucidcreations
Part of the 3 out of 4
 
lucidcreations's Avatar
 
Join Date: Feb 2003
Location: cheshire
Posts: 2,079
Yeah I stay away from frames aswell because they can get really complicated and also confus the user with to many scrollable areas.

Sorry I can't help either
__________________
Jase
  Reply With Quote
Old 30-04-2003, 08:50   #5 (permalink)
And
Senior Member
 
And's Avatar
 
Join Date: Apr 2003
Posts: 103
Send a message via AIM to And Send a message via MSN to And
Is he still here?

I'm no javascript expert but I was just wondering if you couldn't do it with this function;

[quote:a0c8511445]
function unFrame() {
if (self != top)
top.location.href = self.location.href;
}
[/quote:a0c8511445]

and call that.
  Reply With Quote
Old 30-04-2003, 10:22   #6 (permalink)
ewarwoowar
Registered User
 
Join Date: Apr 2003
Posts: 33
er...am i being stupid here, or could the parent link just go in the href and have only one onclick event for the other?
  Reply With Quote
Old 30-04-2003, 13:26   #7 (permalink)
mantis25
Registered User
 
Join Date: Apr 2003
Posts: 5
Send a message via Yahoo to mantis25
Thanks for the replies guys!!
Means a lot..
unfortunately I slept in this morning, and I can't work on it -gotta wait till I get home.....
I'll let you know how it goes..
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8