Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:28

Multiple Styles Menu - script problem


Poster: happyhappy83
Dated: Sunday May 16 2004 - 2:56:05 BST

http://amandame_4.tripod.com/id14.html is my site that the menu I'm questioning now is on. In the beginner's section, Maz said that if you decide to change the name of the menu_data.js file, you'll need to change the script there, too. How do I do that:?: I have the menu the way I want in Notepad under trltrackerz2.txt. How do I get the scripts to recognize that file? :?


Poster: Maz
Dated: Sunday May 16 2004 - 5:21:33 BST

I don't know the editor you are using.

I can point out in the source if you can edit it.

Right now the script is up too high, it would be better to move it down just after the <body> tag.

I think you need to clean up the code, your editor has created too many <html><head></head> tags, there should only be one html at the begining and one at the end. one <head> and </head> followed by <body> taking you down to </body></html>

Code:

<SCRIPT language=JavaScript src="http://amandame_4.tripod.com/trltrackerz-scripts/milonic_src.js " type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=http://amandame_4.tripod.com/trltrackerz-scripts/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=http://amandame_4.tripod.com/trltrackerz-scripts/mmenudom.js><\/scr"+"ipt>"); </script>
<SCRIPT language=JavaScript src="http://amandame_4.tripod.com/trltrackerz-scripts/menu_data.js" type=text/javascript></SCRIPT>

Code:
</body>
</html>
<!-- /\ end html  -->
   
</body>
</html>
<!-- /\ end html  -->
   <html>
<head>


where it says menu_data.js is where you can change the file name.

but you really need to get rid of all those extra tags after, move the script down under <body>

I'm not sure if this helps you,

maz


Poster: John
Dated: Monday May 17 2004 - 3:04:44 BST

Maz is correct. There appears to be 2 copies of the page code, only one of which contains the menu calls.

Also, you have "http://amandame_4.tripod.com/trltrackerz-scripts/milonic_src.js ". That trailing space should not be there. Should be "http://amandame_4.tripod.com/trltrackerz-scripts/milonic_src.js".

You've got to clean up that HTML. I'm actually surprised it's rendering at all.

happyhappy83 wrote:
I have the menu the way I want in Notepad under trltrackerz2.txt. How do I get the scripts to recognize that file?

You need to save that file out of notepad as straight text (not rtf or anything else - just plain text!), and name it trltrackerz2.js. Actually it's really better left as it comes, but if you must change it then I'd recommend trltrackerz2_data.js. Then change the JS call in your HTML to match that name.

Multiple Styles Menu - script problem


Poster: happyhappy83
Dated: Thursday May 20 2004 - 3:51:55 BST

I'm still trying to clean up the code like you said, but I'm lost on how to, and the menu still isn't working. Could someone walk me through how to get a menu like the one on the very top of this page, http://www.likno.com? Or who could walk me through how to get the milonic one I've had to clean up to work ?


Poster: Maz
Dated: Thursday May 20 2004 - 8:54:39 BST

I've done some cleaning up, but haven't tested it, so don't throw away your originals. All I did was search for errors.

Keep a copy of what you have, then try these. Unless anyone else spots something here.

maz

Code:


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>tRlTrAcKeRz OnLiNe!!</title>
<meta name="Description" content="all types of music daily recap.">
<meta name="Keywords" content="trl">
<meta name="Author" content="trltrackerz-owner __at__ yahoogroups.com">
<STYLE type=text/css>
<!--
A:link    { color: #FF0000 ; text-decoration: none }
A:visited { color: purple; text-decoration: italic }
A:active { color: blue ; text-decoration: bold }
A:hover {   color: yellow ; text-decoration: underline ; background: #FF0000 ; cursor: crosshair}
BODY {     scrollbar-3d-light-color:yellow;
           scrollbar-arrow-color:deeppink;
           scrollbar-base-color:blue;
           scrollbar-dark-shadow-color:purple;
           scrollbar-face-color:lime;
           scrollbar-highlight-color:3399cc;
           scrollbar-shadow-color:red}
-->
</STYLE>

<base href="http://amandame_4.tripod.com/id14.html">
</head>
<body>


<SCRIPT language=JavaScript src="http://amandame_4.tripod.com/trltrackerz-scripts/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=http://amandame_4.tripod.com/trltrackerz-scripts/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=http://amandame_4.tripod.com/trltrackerz-scripts/mmenudom.js><\/scr"+"ipt>"); </script>
<SCRIPT language=JavaScript src="http://amandame_4.tripod.com/trltrackerz-scripts/trltrackerz2_data.js" type=text/javascript></SCRIPT>


<p align="center"><a href="http://amandame_4.tripod.com/main1.html"><img border="0" src="http://amandame_4.tripod.com/lit_online.jpg" width="397" height="324"></a></p>
<p align="center"><font face="Tahoma" size="1"><b>Welcome to the new site for trltrackerz. At here, you will find a variety of networks and recaps to choose from. Contrary to our name, we are more than just TRL and/or MTV. Besides <a href=http://www.mtv.com>MTV</a>, you can also find other recaps from the following additional networks <a href=http://www.mtv2.com>MTV2</a>,<a href=http://www.vh1.com>VH1</a>, <a href=http://www.vh1.com>VH1CL</a>, <a href=http://www.fuse.tv>FUSE</a>, <a href=http://www.sitv.com>SITV</a>, <a href=http://www.countrystars.com/gac>GAC</a>, <a href=http://www.cmt.com>CMT</a>, <a href=http://www.bet.com>BET</a>.. and shows: TRL,CRL, VH1 Top 20 Countdown, GAC Top 20 Country Countdown, CMT Top 20 Countdown, 106 & Park: BET's Top 10 LIVE!, MTV2's DFX, Hip Hop Countdown, & Rock Countdown, plus many more! After you've check us out on the web, please feel free to check us out at yahoo groups, because there we also offer a variety of polls in which you can vote, and a wide variety of contests, including our famous <a href=http://amandame_4.tripod.com/trltrackerz/id2.html>Member Random Promotion Day</a>. Prize contests coming soon!<br>
<font size=5><b>MRPD</b>: Friday, May 28, 2004<BR>
<b>Group Chat</b>: (held every 4 months, no reminder) Saturday, June 5, 2004
</font>
<br>
<br>
To get the latest countdown, subscribe today! <a href="trltrackerz-subscribe __at__ yahoogroups.com">Subscribe</a><br>
<BR>
Do you have a <a href=http://amandame_4.tripod.com/trltrackerz/faq.html>Question</a> or <a href="trltrackerzmailer __at__ yahoo.com?subject=user comment from website">Comment</a>?<br>
<b>Anything you send for comments will eventually end up here.</b>
<br>
If you or someone you know joins trltrackerz and wishes to be moderator of it, please feel free to <a href="trltrackerz __at__ yahoogroups.com?subject=MRPD Nomination">register</a> for MRPD or <a href="trltrackerz __at__ yahoogroups.com?subject=add me or my friend as moderator">email us</a> (if you opt to email us, please specify who we should add as moderator - you or the person you know). </b></font></p><br>
<br>
<div align="center">
<table style="background-color: #ffffff; border-width: 1px; border-color: #d3d3d3; border-style: solid" cellpadding="1" cellspacing="3" border="0" bgcolor="#ffffff">
    <tr>
        <td colspan="5" align="center"><span style="font: bold 16px verdana,arial;">trltrackerz</span><br><span style="font: 9px verdana,arial;">Ring Owner: <a href="bsbdrowning01 __at__ yahoo.com">bsbdrowning01</a>&nbsp;&nbsp;Site: <a href="http://amandame_4.tripod.com/trltrackerz/home04.html">trltrackerz</a></span></td>
    </tr>
    <tr>
        <td onClick="document.location='http://pub40.bravenet.com/sitering/nav.php?usernum=3430843672&action=prev&siteid=40796'; this.style.cursor='hand';" style="width: 70px; cursor: pointer"><img src="http://images.bravenet.com/cp/sitering-prev.gif" alt="Free Site Ring from Bravenet" title="Free Site Ring from Bravenet" border="0"></td>
        <td onClick="document.location='http://pub40.bravenet.com/sitering/nav.php?usernum=3430843672&action=list&siteid=40796'; this.style.cursor='hand';" style="width: 70px; cursor: pointer"><img src="http://images.bravenet.com/cp/sitering-list.gif" alt="Free Site Ring from Bravenet" title="Free Site Ring from Bravenet" border="0"></td>
        <td onClick="document.location='http://pub40.bravenet.com/sitering/nav.php?usernum=3430843672&action=random&siteid=40796'; this.style.cursor='hand';" style="width: 70px; cursor: pointer"><img src="http://images.bravenet.com/cp/sitering-random.gif" alt="Free Site Ring from Bravenet" title="Free Site Ring from Bravenet" border="0"></td>
        <td onClick="document.location='http://pub40.bravenet.com/sitering/nav.php?usernum=3430843672&action=join&siteid=40796'; this.style.cursor='hand';" style="width: 70px; cursor: pointer"><img src="http://images.bravenet.com/cp/sitering-join.gif" alt="Free Site Ring from Bravenet" title="Free Site Ring from Bravenet" border="0"></td>
        <td onClick="document.location='http://pub40.bravenet.com/sitering/nav.php?usernum=3430843672&action=next&siteid=40796'; this.style.cursor='hand';" style="width: 70px; cursor: pointer"><img src="http://images.bravenet.com/cp/sitering-next.gif" alt="Free Site Ring from Bravenet" title="Free Site Ring from Bravenet" border="0"></td>
    </tr>
    <tr>
     <td colspan="5" align="center"><a href="http://www.bravenet.com"><img src="http://images.bravenet.com/cp/bn-sitering.gif" border="0" alt="Free Site Ring form Bravenet" title="Free Site Ring form Bravenet"></td>
    </tr>
</table>
</div>&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center"><font face="Tahoma" size="1">Copyright © 2000, 2001 -<a href="webmaster __at__ lit-online.net">webmaster __at__ lit-online.net</a>
(Amanda) <br>
The layout of this website belongs to the above party and <a href=http://www.lit-online.net>lit-online.net</a>. Used by permission as long as statement and credits remain. <br>
Content  Copyright © 2001-2004 <a href="trltrackerz-owner __at__ yahoogroups.com">trltrackerz-owner __at__ yahoogroups.com</a>
(Amanda) All rights reserved.</font></p>
</body>
</html>



Code:

_menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over
_subOffsetTop=5               // Sub menu top offset
_subOffsetLeft=-10            // Sub menu left offset



with(EasySampleStyle=new mm_style()){
onbgcolor="lime";
oncolor="red";
offbgcolor="#4358E1";
offcolor="#FFFFFF";
bordercolor="deeppink";
borderstyle="solid";
borderwidth=1;
separatorcolor="yellow";
separatorsize=1;
padding=5;
fontsize="12px";
fontfamily="comic sans ms, helvetica";
high3dcolor="#66ccff";
low3dcolor="#000099";
}


with(DynStyle=new mm_style()){
onbgcolor="lime";
oncolor="red";
offbgcolor="#d4d0c8";
offcolor="#000000";
bordercolor="deeppink";
borderstyle="solid";
borderwidth=1;
padding=3;
fontsize="12px";
fontfamily="Tahoma,Helvetica";
high3dcolor="yellow";
low3dcolor="blue";
}


with(LinkInfoStyle=new mm_style()){
onbgcolor="lime";
oncolor="red";
offbgcolor="#ffffff";
offcolor="#666666";
bordercolor="deeppink";
borderstyle="solid";
borderwidth=2;
separatorcolor="yellow";
separatorsize=1;
padding=5;
fontsize="12px";
fontweight="bold";
fontfamily="verdana, helvetica";
headercolor="blue";
headerbgcolor="black";
}


with(BlackOrange=new mm_style()){
onbgcolor="lime";
oncolor="red";
offbgcolor="#000000";
offcolor="#FFFFFF";
bordercolor="deeppink";
borderstyle="solid";
borderwidth=1;
separatorcolor="yellow";
separatorsize=1;
padding=3;
fontsize="12px";
fontfamily="comic sans ms,verdana,helvetica";
}


with(menuStyle=new mm_style()){
onbgcolor="lime";
oncolor="red";
offbgcolor="#DCE9F0";
offcolor="#515151";
bordercolor="deeppink";
borderstyle="solid";
borderwidth=1;
separatorcolor="yellow";
separatorsize=1;
padding=5;
fontsize="75%";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#82B6D7";
headercolor="lime";
headerbgcolor="black";
subimage="menuimages/arrow.gif";
subimagepadding=2;
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}


with(ScrollingSampStyle=new mm_style()){
onbgcolor="lime";
oncolor="red";
offbgcolor="#ffffff";
offcolor="#666666";
bordercolor="deeppink";
borderstyle="solid";
borderwidth=1;
padding=3;
fontsize="12px";
fontfamily="comic sans ms, verdana, helvetica";
}


with(milonic=new menuname("Main Menu")){
style=EasySampleStyle;
top=220;
left=180;
alwaysvisible=1;
orientation="horizontal";
aI("text=Home;url=http://amandame_4.tripod.com/id14.html;status=Back To Home Page;");
aI("text=Recaps;showmenu=Recaps;");
aI("text=Affiliates;showmenu=Affiliates;");
aI("text=Messages;showmenu=Messages;");
aI("text=Links;showmenu=Links;");
aI("text=Help;showmenu=Help;");
}

with(milonic=new menuname("Recaps")){
style=BlackOrange;
overflow="scroll";
aI("text=Contact Us;url=http://amandame_4.tripod.com/records-recaps/id19.html;");
aI("text=WEEKENDS;url=http://amandame_4.tripod.com/records-recaps/id18.html;");
aI("text=MUSIC;url=http://amandame_4.tripod.com/records-recaps/id1.html;");
aI("text=MOVIES;url=http://amandame_4.tripod.com/records-recaps/id2.html;");
aI("text=SPORTS;url=http://amandame_4.tripod.com/records-recaps/id3.html;");
aI("text=NEWS;url=http://amandame_4.tripod.com/records-recaps/id4.html;");
aI("text=WEATHER;url=http://amandame_4.tripod.com/records-recaps/id5.html;");
aI("text=KID'S TV;url=http://amandame_4.tripod.com/records-recaps/id7.html;");
aI("text=GENERAL TV;url=http://amandame_4.tripod.com/records-recaps/id10.html;");
aI("text=COOL STUFF;url=http://amandame_4.tripod.com/records-recaps/id8.html;");
aI("text=RADIO;url=http://amandame_4.tripod.com/records-recaps/id6.html;");
aI("text=GAMES;url=http://amandame_4.tripod.com/records-recaps/id9.html;");
aI("text=Post a recap?;url="trltrackerz __at__ yahoogroups.com?subject=recap name here";");
}

with(milonic=new menuname("Affiliates")){
style=BlackOrange;
aI("text=FAQ;url=http://amandame_4.tripod.com/trltrackerz/faq3.html;");
aI("text=Newsletter Subscription;url="TRLWise-subscribe __at__ yahoogroups.com";");
aI("text=Contact Us;url=http://amandame_4.tripod.com/trltrackerz/LinkUs.html;");
aI("text=Become an Affiliate;url=http://amandame_4.tripod.com/LinkUs.html;");
aI("text=Discussion Forum;url=http://s2.invisionfree.com/trltrackerz;");
}

with(milonic=new menuname("Messages")){
style=BlackOrange;
aI("text=Use Forum;url=http://s2.invisionfree.com/trltrackerz;status=Use Forum;");
aI("text=Yahoo Message Board;url="trltrackerz __at__ yahoogroups.com";");
aI("text=MSN Message Board;url="trltrackerz __at__ groups.msn.com";");
}

with(milonic=new menuname("Links")){
style=BlackOrange;
aI("text=Borderless Promotions;url=http://www.borderless-promotions.com;status=Borderless Promotions;");
aI("text=LC Urban Entertainment;url=http://groups.yahoo.com/group/lcUrbanEntertainment;status=Launchcast Urban Entertainment;");
aI("text=Howie D Connection;url=http://groups.yahoo.com/group/howiedconnection;status=Howie Dorough Connection;");
aI("text=trltrackerz;url=http://groups.yahoo.com/group/trltrackerz;status=Who says this ain't variety?;");
aI("text=Advertise here;showmenu=Advertise here;status=Advertise your group;");
}

with(milonic=new menuname("Advertise here")){
style=ScrollingSampStyle;
aI("text=Email Us;url="trltrackerz __at__ yahoogroups.com";");

}

with(milonic=new menuname("Help")){
style=ScrollingSampStyle;
aI("text=Help Desk;url=http://amandame_4.tripod.com/trltrackerz-helpdesk/;");
aI("text=Email us;url="trltrackerz __at__ yahoogroups.com";");
aI("text=Email Group Owner;url="trltrackerz-owner __at__ yahoogroups.com";");
aI("text=Use Mailer Service;url="trltrackerzmailer __at__ yahoo.com";");
}

drawMenus();


Multiple Styles Menu - script problem


Poster: happyhappy83
Dated: Friday May 21 2004 - 4:00:23 BST

Maz, I tested the code you gave me in your last reply, and I can't get it to work. I still cannot get the script portion of the stuff we're supposed to put in the heading for the pages to be recognized to work either.

Help PLEASE! :x :!: :?


Poster: Maz
Dated: Friday May 21 2004 - 5:17:50 BST

Its your script paths, I just checked them by putting in the url for each.
milonic_src.js is not in /trltrackerz-scripts/

but alll the others are.

Place all the scripts in the same folder and check all the paths are corrct.

maz

Code:

<SCRIPT language=JavaScript src="http://amandame_4.tripod.com/trltrackerz-scripts/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=http://amandame_4.tripod.com/trltrackerz-scripts/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=http://amandame_4.tripod.com/trltrackerz-scripts/mmenudom.js><\/scr"+"ipt>"); </script>
<SCRIPT language=JavaScript src="http://amandame_4.tripod.com/trltrackerz-scripts/trltrackerz2_data.js" type=text/javascript></SCRIPT>