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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

frames javascript in Netscape 4.72 problem

Status
Not open for further replies.

Aschie81

Programmer
Joined
Dec 14, 2001
Messages
1
Location
US
I am working on a website, now being tested:


I am using the javascript (below) to change two frames at once when clicking on a link:


<head>
function newPages1() {
parent.main.document.location.href=&quot;main.html&quot;;
parent.left.document.location.href=&quot;left_edu_ads.html&quot;;
setTimeout('self.location.href=&quot;left_edu_ads.html&quot;', 250);
}
</head>

<body>
<a href=&quot;JavaScript:newPages1()&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('edu_ads','','gfx/edu_ads_r2.gif',1)&quot; target=&quot;main&quot;><img name=&quot;edu_ads&quot; border=&quot;0&quot; src=&quot;gfx/edu_ads_r1.gif&quot; width=&quot;150&quot; height=&quot;17&quot; alt=&quot;Rice &amp; Rice, Ltd. ads, advertisements&quot;></a>
</body>


So far in my testing, this javascript has worked in the newer browsers, except there is some problem with Netscape 4.72 (it even works in Netscape 4.04!) I'm not sure what the problem is. Can someone help me fix this?

Thank you!
 
I've never had any problem getting two frames to change, one using a link and the other use get url behaviour in dreamweaver.

For the behaviour to work in netscape, you need to ensure that when you usebehaviours from dreamweaver that you have &quot;version 4 browsers&quot; selected other wise the behaviours will not work.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top