ai3rules
09-10-2003, 05:20 PM
<frameset rows="150,*">
<frame noresize="yes" scrolling="no" frameborder="no" src="Top.htm">
<frameset cols="15%,*">
<frame frameborder="no" noresize="yes" name="a" src="Contents.htm">
<frame frameborder="no" src="" name="b">
</frameset>
</frameset>
That is a couple of framesets i have on one page. Now, I have another page called Contents.htm which is the source of the frame named "a", as you can see.
What i want to do, is have a function load on Contents.htm that will check which page is currently in frame "b" - and based on that it will document.write either a link or only text.
Here is what i tried to do, and i know i messed up trying to reference the source of frame "b".
function homePageCheck() {
if (document.b == "WEBSITE") {
document.write(" <font color='gray'>Home</font>")
}
else {
document.write(" <a href='WEBSITE' target='b'>Home</a>")
}
}
If anyone happens to decipher this lol, I would appreciate if you could help me out. Thank You.
<frame noresize="yes" scrolling="no" frameborder="no" src="Top.htm">
<frameset cols="15%,*">
<frame frameborder="no" noresize="yes" name="a" src="Contents.htm">
<frame frameborder="no" src="" name="b">
</frameset>
</frameset>
That is a couple of framesets i have on one page. Now, I have another page called Contents.htm which is the source of the frame named "a", as you can see.
What i want to do, is have a function load on Contents.htm that will check which page is currently in frame "b" - and based on that it will document.write either a link or only text.
Here is what i tried to do, and i know i messed up trying to reference the source of frame "b".
function homePageCheck() {
if (document.b == "WEBSITE") {
document.write(" <font color='gray'>Home</font>")
}
else {
document.write(" <a href='WEBSITE' target='b'>Home</a>")
}
}
If anyone happens to decipher this lol, I would appreciate if you could help me out. Thank You.