Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

frames and links? 1

Status
Not open for further replies.

Penk

Technical User
Sep 26, 2002
11
GB
Lo all :)
i was wondering if you can open 2 frames within a site from 1 link.
i want to ba able to change main(frame) and banner(frame) by clicking on a link in the left frame.
this might sound a little stupid but i have my reasons :)
can i do this.

i've tried to use onopen in the top frame so wen that opens it opens the main frame page but it won't work or i'm doing it wrong?
any suggestions?

using front page 2002, but don't mind playing with html :)

thx again neil



If it's not broke, don't fix it!
 
could you take me through this step by step sorry:(

page1.html is the page that will open in target frame1
this much i got
but the onlick do i need a button for this?
can i use text as the hyperlink?
if so were do i put the text, at the end?

and sorry but do i put parent or do i use the framset name?
again frame2 i'm guessing is the frame i want my page to open in i.e main, banner,...
location ????
and the href is want i want opening in that frame?

sorry but never realy played with java??
thx for replying tho
neil:)

If it's not broke, don't fix it!
 
Sorry for confusing you, you got most of it. Just paste this in to your page where you want the link. Change page1.html and page2.html where you see them to the names of the page you want. Also, change frame1 to the name of the frame that page1.html should open in and frame2 to the name of the frame that page2.html should open in:

<a href=&quot;page1.html&quot; target=&quot;frame1&quot; onclick=&quot;parent.frame2.location.href='page2.html';&quot;>

Rick

-----------------------------------------------------------
RISTMO Designs
Arab Church
Reference Guides
 
mate you are a star!!!!!!!!!!!!!!!!!!!!!

name a charity and i'll make a donation
this as been bugging me for about 4 hours now and its just worked lol.

thanks again.
if you ever need help changing an ink cartridge i'm your man :)
thanks again Rick

Neil :)


If it's not broke, don't fix it!
 
Glad you enjoyed it :-D....charity....how about my org Arab Church?....jk....The only reason I know what I do is because of the other experts on here who were helping when I was learning--just continuing the process :).

Good luck!

Rick

-----------------------------------------------------------
RISTMO Designs
Arab Church
Reference Guides
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top