Click to See Complete Forum and Search --> : Menu
I'm using a menu cascade, but itīs not working very well.
I would like to open a new window, but i cant do that.
Itīs not workink to put target="_blank" in the frameset in the index.htm.
I tried to put something in:
<div Id="menu1" class="menu" >
<div Id="menuItem1_1" class="menuItem" title="title1" cmd="http://...."">...</div>, but i donīt know what to put :)
Someone can help me?
AdamBrill
01-10-2003, 12:26 PM
Want to try posting the whole code? Unless I can see how it works, I can't tell you what to add...
Adam,
this is the code (I think this part is suficient, but I can send the rest if you need.
Thanks for help me.
File inferiordir.htm:
<HEAD>
<script language="javascript" src="CascadeMenu.js"></script>
<BODY OnLoad="InitMenu(),dynAnimation()" Onclick="HideMenu(menuBar)" ID="Bdy" bgColor= "#000063" text="#FFFFFF">
</HEAD>
<DIV Id="menuBar" class="menuBar" >
<DIV Id="Bar1" class="Bar" menu="menu1" style="left:1; position: absolute; top: 1">MENU1</DIV>
</DIV>
<div Id="menu1" class="menu" >
<div Id="menuItem1_1" class="menuItem" title="TITLE1" target="_blank" cmd="http://...">SubItem1</div>
<div Id="menuItem1_2" class="menuItem" title="TITLE2" cmd="http://...">SubItem2</div>
<div Id="menuItem1_3" class="menuItem" title="TITLE3" cmd="http://...">SubItem3</div>
</div>
File index.htm:
...
<frameset framespacing="1" border="0" frameborder="0" rows="98,*">
<frame name="faixa" scrolling="no" noresize target="conteudo" src="superior.htm" style="background-color: #000063; color: #FFFFFF">
<frameset cols="188,*">
<frame name="conteudo" target="principal" scrolling="no" src="inferioresq.htm" noresize style="background-color: #000063; color: #000063; border-style: solid; border-color: #000063">
<frame name="principal" target="_new" scrolling="auto" src="inferiordir.htm" style="background-color: #000063; color: #000063; border-style: solid; border-color: #000063" noresize>
</frameset>
<noframes>
...
The problem is how to open the link of the SubItem in a new window.
I tried to put target="_new" in the index.htm and target="_blank" in DIV in the inferiordir.htm
__________________
AdamBrill
01-13-2003, 12:25 PM
Check out the attached code. That should do what you want. I had to edit the .js file so that it would work, so make sure you use the enclosed version. When you want them to open in a new window, do it like this:
cmd="http://javascript.internet.com/|BLANK"
I added some code so that if the |BLANK is there, it will open in a new window. If you don't want it to open in a new window, just do it like it was before. I hope that helps! :)
Helo Adam,
thanks, itīs working! The file you send me is diferent from what i have. There are somethings about mouseout that donīt have in my .js.
Itīs opening in a new window. The problem is : my cascademenu.js is not compete.
Thanks!
:)
AdamBrill
01-14-2003, 02:53 PM
Yeah, that's because I put the onmouseout part in there. :) Your .js was the complete original, but I edited the original to make the one that I have gave you. So, that's why it is different... ;)