|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
Join Date: Jan 2002
Location: UK
Posts: 389
|
Small html question
Im using frames for something im doing for smoeone (i no tut tut to frames)
but im wondering if i can have a normal href link changing two frames at the same time For example the normal link would be like href="one.html" target="frameone" So if someone clicked one that it would load page one.html into frame one What im trying to do is make it load into another frame too, like on the same click load one.html target="frameone" two.html target="frametwo" Can this be done? (sorry if im not very clear) |
|
|
|
|
|
#2 |
|
Member (10 bit)
|
You could just the onClick function and change frameTwo using javascript. Or you could put in the 'one.html' page in the body onLoad you could have it load up frameTwo.
|
|
|
|
|
|
#3 |
|
Member (9 bit)
Join Date: Jan 2002
Location: UK
Posts: 389
|
Would it be possible for you to give some examples?
|
|
|
|
|
|
#4 |
|
Member (10 bit)
|
Here ya go:
Create a function in Javascript Code:
function multiLoad(doc1, doc2)
{
parent.frameOne.location.href=doc1;
parent.frameTwo.location.href=doc2;
}
PHP Code:
|
|
|
|
|
|
#5 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
No need for a space char between "java" and "script":
<a href="javascript:multiLoad('one.html', 'two.html')">Load 'Em</a> |
|
|
|
|
|
#6 |
|
Member (10 bit)
|
Yea i know, the PHP tags put that in there. How do you insert an HREF in these boards? The CODE tags didn't work and I turned off the Automatically parse URLs.
|
|
|
|
|
|
#7 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
I use < for < and > for >
|
|
|
|
|
|
#8 |
|
Member (10 bit)
|
Thanx. Seems like there should be a way to do it. The code tags should just insert text as is without any converting. Oh well..
|
|
|
|
|
|
#9 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
Yep, I've noticed this before, but they are useful for keeping source code formatted.
|
|
|
|
|
|
#10 |
|
Member (9 bit)
Join Date: Jan 2002
Location: UK
Posts: 389
|
Thx loads for the help, and i've found the adding hrefs can be a pain - i've always used the methode aym_7 mentioned
thx again for the help |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|