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

Javascript menus frame spill over 1

Status
Not open for further replies.

potsie

Programmer
Jul 20, 2001
1
CA
I am having a few problems with my Javascript menus. I have a web page that is two frames, a top frame and a main frame. I would like to place my javascript drop down menu on the top frame and have it spill over top of the main frame. The one problem I have no idea how a person would go about doing that. Can anyone offer me some suggestions? Thank you.

Potsie
 
potsie,
to my understanding, frames are each an individual html documents. layers are contained in an html document, therefore they cannot "spill over" into another html document.

a work around may be to use coldfusion includes or some other method of having the page "act" like it was frames, while actually being one html document which could then have the layers drop anywhere on the page that you might like.

wish i could help more, good luck! ~ jsLove ;)
 
Use This...

//////// FRAMESET USED
<frameset rows=&quot;100,*&quot;>
<frame name=&quot;top&quot; src=&quot;top.html&quot;>
<frame name=&quot;bottom&quot; src=&quot;bottom.html&quot;>
</frameset>
//////// END FRAMSET

///// top.html
<html>
<script>
<!---
function formHandler(){
var URL = document.myForm.site.options[document.myForm.site.selectedIndex].value;
window.location.href = URL;
}
---->
</script>
<body>
<form name=&quot;myForm&quot;>
<select name=&quot;site&quot; size=1 onChange=&quot;javascript:formHandler();&quot;>
<option value=&quot;top.html&quot;>Select an Area
<option value=&quot;<option value=&quot;<input type=&quot;button&quot; onClick=&quot;formHandler();&quot; value=&quot;GO&quot;>
</body>
</html>
///////// END top.html

bottom.html should be set in your frameset.

The go button is for some netscape.

This works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top