Frame Link problem - please help :(

liunx

Guest
I'm having to redesign my website to accomodate varying screen resolutions.<br />
<br />
As such, I've changed to a Three Frame Layout that is a stencil from MS Frontpage. The Stencil is the header contents.<br />
<br />
The three frames are named: contents, header and main.<br />
<br />
My menu is a series of combo boxes that when clicked will load a new page. <br />
<br />
My old webpage was a document with an iframe called main. When the combo box was clicked the new page loaded into the frame... worked fine.<br />
<br />
With my new site however I cannot get the new page to load in main. The code that worked before is below:<br />
<br />
------------------<br />
<select name=select4 style="background-color:#000000;font size:10; font-family:Tahoma;color:white;width=120" <br />
<br />
onChange='if (this.options[this.selectedIndex].value!="") {document.main.location.href=http://www.webdeveloper.com/forum/archive/index.php/this.options[this.selectedIndex].value}else{this.selectedIndex=0};'><br />
<br />
<option selected>MAIN</option><br />
<option>----------</option><br />
<option value="http://www.domain.com/Main2.htm" target="main">Main Page</option><br />
<br />
<option value="http://www.domain.com/News.htm" target="main">News</option><br />
<br />
<option value="http://www.domain.com/Products/product_list.php" target="main">Current Products</option><br />
<br />
<option value="http://www.domain.com/Site_Registration/login_entry.php" target="main">Member Login</option><br />
<br />
</select><br />
<br />
------------------------<br />
<br />
I know the problem is selecting the right document but don't know the correct syntax/code.<br />
<br />
Any help would be very appreciated at this time as I've spent well over four hours trying to figure it out.<br />
<br />
Thanks guys n girls.<!--content-->to target a frame in a frameset you'd need something like this<br />
<br />
parent.frameName.location.href=http://www.webdeveloper.com/forum/archive/index.php/"url"<!--content-->Thanks matey,<br />
<br />
That was perfect.<!--content-->
 
Back
Top