I have problems with menus and frames :)

"Yanto" <[email protected]> Sun, 27 Jul 2003 22:54:14 +0200
Newsgroups gmane.comp.web.milonic
Message-ID <[email protected]>
This is a multi-part message in MIME format.

--===============9105386242589002==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_006F_01C35492.005673D0"

This is a multi-part message in MIME format.

------=_NextPart_000_006F_01C35492.005673D0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello, first of all, I'm very grateful that you have shared your scripts =
and documented them so well, so it was easy to modify !! :)

I surfed around the net and found your script at =
http://simplythebest.net/scripts/dhtml_script_98.html In that zip file, =
there are to js files:

menu_array.js=20
mmenu.js

heheh.. I spent maybe more than three hours making things look the way I =
wanted it to look, and when I was finished I discovered to my horror =
that I didn't know how to target a particular <iframe> that I was using =
beneath the horizontal menus. When I click on a link, it loads the page =
in the current frame which is kind of not how I expected it to be :) I'm =
happy about the desgin and would be devasted if I had to go and work =
with another script.. so I wonder if anyone could help me..? :)

Below is the source code from menu_array.js and at the bottom I have =
made a comment on the line where I thought that I would be able to =
provide a target frame, but at the moment don't know how:

-------------------------------------------------------------------------=
-------

addmenu(menu=3D[ // This is the array that contains your menu properties =
and details

"mainmenu", // Menu Name - This is needed in order for the menu to be =
called

0, // Menu Top - The Top position of the menu in pixels

0, // Menu Left - The Left position of the menu in pixels

, // Menu Width - Menus width in pixels

1, // Menu Border Width=20

, // Screen Position - here you can use =
"center;left;right;middle;top;bottom" or a combination of =
"center:middle"

style1, // Properties Array - this is set higher up, as above

1, // Always Visible - allows the menu item to be visible at all time =
(1=3Don/0=3Doff)

"left", // Alignment - sets the menu elements text alignment, values =
valid here are: left, right or center

effect, // Filter - Text variable for setting transitional effects on =
menu activation - see above for more info

, // Follow Scrolling - Tells the menu item to follow the user down the =
screen (visible at all times) (1=3Don/0=3Doff)

1, // Horizontal Menu - Tells the menu to become horizontal instead of =
top to bottom style (1=3Don/0=3Doff)

0, // Keep Alive - Keeps the menu visible until the user moves over =
another menu or clicks elsewhere on the page (1=3Don/0=3Doff)

, // Position of TOP sub image left:center:right

, // Set the Overall Width of Horizontal Menu to 100% and height to the =
specified amount (Leave blank to disable)

, // Right To Left - Used in Hebrew for example. (1=3Don/0=3Doff)

, // Open the Menus OnClick - leave blank for OnMouseover =
(1=3Don/0=3Doff)

, // ID of the div you want to hide on MouseOver (useful for hiding form =
elements)

, // Reserved for future use

, // Reserved for future use

, // Reserved for future use

,"&nbsp;&nbsp;Main&nbsp;&nbsp;",www.abc123.com,,"Main",1 // "Description =
Text", "URL", "Alternate URL", "Status", "Separator Bar"   //  <-------- =
this is where I thought that maybe I could specify a target frame =
somehow but don't know how exactly -->


-------------------------------------------------------------------------=
-------

I would be SO HAPPY if there was a way to solve this.. !!!! :)

anyway, thanks again for being generous with sharing your code :)

Kind regards,

Yanto

------=_NextPart_000_006F_01C35492.005673D0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2726.2500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>
<DIV><FONT size=3D2>Hello, first of all, I'm very grateful that you have =
shared=20
your scripts and documented them so well, so it was easy to modify !!=20
:)</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV>I surfed around the net and found your script at <A=20
href=3D"http://simplythebest.net/scripts/dhtml_script_98.html">http://sim=
plythebest.net/scripts/dhtml_script_98.html</A>&nbsp;In=20
that zip file, there are to js files:</DIV>
<DIV>&nbsp;</DIV>
<DIV>menu_array.js </DIV>
<DIV>mmenu.js</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>heheh.. I spent maybe more than three hours making =
things look=20
the way I wanted it to look, and when&nbsp;I was finished =
I&nbsp;discovered to=20
my horror that I didn't know&nbsp;how to target a particular =
&lt;iframe&gt;=20
that&nbsp;I was using beneath the horizontal menus. When I click on a =
link,=20
it&nbsp;loads the&nbsp;page in the current frame which is kind of not =
how I=20
expected it to be :)&nbsp;I'm happy about the desgin and would be =
devasted if I=20
had to go and work with another script.. so I wonder if anyone could =
help me..?=20
:)</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV>
<DIV><FONT size=3D2></FONT></DIV><FONT size=3D2></FONT></DIV>
<DIV><FONT size=3D2>Below is the source code from menu_array.js and at =
the bottom=20
I have made a comment on the line where I thought that I would be able =
to=20
provide a target frame, but at the moment don't know how:</FONT></DIV>
<DIV>
<HR>
</DIV>
<DIV><FONT size=3D2>
<P>addmenu(menu=3D[ </FONT><FONT color=3D#008000 size=3D2>// This is the =
array that=20
contains your menu properties and details</P></FONT><FONT size=3D2>
<P>"mainmenu", </FONT><FONT color=3D#008000 size=3D2>// Menu Name - This =
is needed=20
in order for the menu to be called</P></FONT><FONT size=3D2>
<P>0, </FONT><FONT color=3D#008000 size=3D2>// Menu Top - The Top =
position of the=20
menu in pixels</P></FONT><FONT size=3D2>
<P>0, </FONT><FONT color=3D#008000 size=3D2>// Menu Left - The Left =
position of the=20
menu in pixels</P></FONT><FONT size=3D2>
<P>, </FONT><FONT color=3D#008000 size=3D2>// Menu Width - Menus width =
in=20
pixels</P></FONT><FONT size=3D2>
<P>1, </FONT><FONT color=3D#008000 size=3D2>// Menu Border Width =
</P></FONT><FONT=20
size=3D2>
<P>, </FONT><FONT color=3D#008000 size=3D2>// Screen Position - here you =
can use=20
"center;left;right;middle;top;bottom" or a combination of=20
"center:middle"</P></FONT><FONT size=3D2>
<P>style1, </FONT><FONT color=3D#008000 size=3D2>// Properties Array - =
this is set=20
higher up, as above</P></FONT><FONT size=3D2>
<P>1, </FONT><FONT color=3D#008000 size=3D2>// Always Visible - allows =
the menu item=20
to be visible at all time (1=3Don/0=3Doff)</P></FONT><FONT size=3D2>
<P>"left", </FONT><FONT color=3D#008000 size=3D2>// Alignment - sets the =
menu=20
elements text alignment, values valid here are: left, right or=20
center</P></FONT><FONT size=3D2>
<P>effect, </FONT><FONT color=3D#008000 size=3D2>// Filter - Text =
variable for=20
setting transitional effects on menu activation - see above for more=20
info</P></FONT><FONT size=3D2>
<P>, </FONT><FONT color=3D#008000 size=3D2>// Follow Scrolling - Tells =
the menu item=20
to follow the user down the screen (visible at all times)=20
(1=3Don/0=3Doff)</P></FONT><FONT size=3D2>
<P>1, </FONT><FONT color=3D#008000 size=3D2>// Horizontal Menu - Tells =
the menu to=20
become horizontal instead of top to bottom style =
(1=3Don/0=3Doff)</P></FONT><FONT=20
size=3D2>
<P>0, </FONT><FONT color=3D#008000 size=3D2>// Keep Alive - Keeps the =
menu visible=20
until the user moves over another menu or clicks elsewhere on the page=20
(1=3Don/0=3Doff)</P></FONT><FONT size=3D2>
<P>, </FONT><FONT color=3D#008000 size=3D2>// Position of TOP sub image=20
left:center:right</P></FONT><FONT size=3D2>
<P>, </FONT><FONT color=3D#008000 size=3D2>// Set the Overall Width of =
Horizontal=20
Menu to 100% and height to the specified amount (Leave blank to=20
disable)</P></FONT><FONT size=3D2>
<P>, </FONT><FONT color=3D#008000 size=3D2>// Right To Left - Used in =
Hebrew for=20
example. (1=3Don/0=3Doff)</P></FONT><FONT size=3D2>
<P>, </FONT><FONT color=3D#008000 size=3D2>// Open the Menus OnClick - =
leave blank=20
for OnMouseover (1=3Don/0=3Doff)</P></FONT><FONT size=3D2>
<P>, </FONT><FONT color=3D#008000 size=3D2>// ID of the div you want to =
hide on=20
MouseOver (useful for hiding form elements)</P></FONT><FONT size=3D2>
<P>, </FONT><FONT color=3D#008000 size=3D2>// Reserved for future=20
use</P></FONT><FONT size=3D2>
<P>, </FONT><FONT color=3D#008000 size=3D2>// Reserved for future=20
use</P></FONT><FONT size=3D2>
<P>, </FONT><FONT color=3D#008000 size=3D2>// Reserved for future=20
use</P></FONT><FONT size=3D2>
<P>,"&amp;nbsp;&amp;nbsp;Main&amp;nbsp;&amp;nbsp;",<A=20
href=3D"http://www.abc123.com">www.abc123.com</A>,,"Main",1 </FONT><FONT =

color=3D#008000 size=3D2>// "Description Text", "URL", "Alternate URL", =
"Status",=20
"Separator Bar"&nbsp;&nbsp; //&nbsp; &lt;-------- this is where I =
thought that=20
maybe I could specify a target frame somehow but don't know how exactly=20
--&gt;</FONT></P>
<DIV><FONT size=3D2>
<HR>
</FONT></DIV>
<DIV><FONT size=3D2>I would be SO HAPPY if there was a way to solve =
this.. !!!!=20
:)</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>anyway, thanks again for being generous with sharing =
your code=20
:)</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Kind regards,</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Yanto</FONT></DIV></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_006F_01C35492.005673D0--

--===============9105386242589002==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

_______________________________________________
Milonic mailing list
[email protected]
http://www.milonic.co.uk/mailman/listinfo/milonic

--===============9105386242589002==--