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:07

Can't find Followscroll option


Poster: Jackie
Dated: Saturday October 4 2003 - 16:23:58 BST

Hi,

I have the script up and running fine except... I want to set followscroll to 1 so that it stays at the top-center of the page as the user scrolls down. However, I can't seem to find that option to set in the data.js file. Do I need to add it and if so where exactly would I place the code and what would the code be?

http://www.personalizedletter.com is the site but source is not visible on my site (for copyright protection purposes.) The menu is within frames but on the body page and and not the top frame.

Thank you :)


Poster: John
Dated: Saturday October 4 2003 - 17:44:21 BST

See http://milonic.com/ for definitions of all (well, most) of the available menu and style options. It's still being upgraded as new RCs and features come out.

Also see http://milonic.com/menusample.php?sampleid=10.

Follow not working


Poster: Jackie
Dated: Saturday October 4 2003 - 18:57:21 BST

Hello,
I tried what you suggested. The menu doesn't load and gives a Java error:
Line 42
Charactor 1
'menuStyle' is undefined
Code 0

This is what I have:

Code:



_menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=50            // The time delay before menus open on mouse over
_followSpeed=5                // Follow scrolling speed
_followRate=40                // Follow scrolling Rate
_subOffsetTop=10              // Sub menu top offset
_subOffsetLeft=-10            // Sub menu left offset
_scrollAmount=3               // Only needed for Netscape 4.x
_scrollDelay=20               // Only needed for Netcsape 4.x



with(style1=new mm_style()){
offcolor="#3e66ae";
offbgcolor="#ffffff";
oncolor="#198B95";
onbgcolor="#A6D6DA";
bordercolor="#198B95";
borderstyle="dotted";
bordercolor="198B95";
fontsize=10;
fontstyle="normal";
fontweight="bold";
fontfamily="Verdana, Arial";
padding=2;
subimage="/arrow.gif";
high3dcolor="#198B95";
low3dcolor="#A6D6DA";
pagecolor="#198B95";
pagebgcolor="#A6D6DA";
headercolor="#ffffff";
headerbgcolor="#198B95";
overfilter="Fade(duration=0.2);Alpha(opacity=98);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.2)";
}


with(milonic=new menuname("Main Menu")){
style=menuStyle;
borderwidth=2;
top=2;
left=95; 
screenposition="center";
alwaysvisible=1;
followscroll="1";
alignment="center";
orientation="horizontal";
aI("text=Home;url=http://www.personalizedletter.com/main.shtml;;status=Back to the home page;separatorsize=1")
aI("text=Personalized Letters  ;showmenu=letters;;separatorsize=1")
aI("text=Specials and Gift Shop  ;showmenu=gifts;;separatorsize=1")
aI("text=About...  ;showmenu=about;;separatorsize=1")
aI("text=FREE Holiday Fun  ;showmenu=holidayfun;;separatorsize=1")
aI("text=Other Services  ;showmenu=other;;separatorsize=1")
}

with(milonic=new menuname("letters")){
itemwidth=170;
borderwidth=1;
style=menuStyle;
alignment="center";
aI("text=Holiday Letters;showmenu=holiday;;status=Holiday Letters;separatorsize=1")
aI("text=Occasional Letters;showmenu=occasional;;status=Occasional Letters;separatorsize=1")
aI("text=Birthday Letters;url=http://www.personalizedletter.com/Letters/Birthday_Letters/index.shtml;;status=Birthday Letters;separatorsize=1")
aI("text=Love Letters;url=http://www.personalizedletter.com/Letters/Love_Letters/index.shtml;;status=Love letters;separatorsize=1")
aI("text=Proposal Letters;url=http://www.personalizedletter.com/Letters/Proposal_Letters/index.shtml;;status=Proposal Letters;separatorsize=1")
aI("text=Encouragement Letters;url=http://www.personalizedletter.com/Letters/Encouragement_Letters/index.shtml;;status=Encouragement Letters;separatorsize=1")
aI("text=Religious Letters;url=http://www.personalizedletter.com/Letters/Religious_Letters/index.shtml;;status=Christian Letters;separatorsize=1")
aI("text=Just for Fun Letters;showmenu=fun;;status=Letters with no real catagory;separatorsize=1")
aI("text=Remembrance Letters;url=http://www.personalizedletter.com/Letters/Remembrance_Letters/index.shtml;;status=Memorial¬ Sympathy Remembrance letters;separatorsize=1")
}

with(milonic=new menuname("holiday")){
itemwidth=170;
borderwidth=1;
style=menuStyle;
alignment="center";
aI("text=Easter;url=http://www.personalizedletter.com/Letters/Holiday_Letters/Easter/index.shtml;;status=Easter Letter")
aI("text=Mother's Day;url=http://www.personalizedletter.com/Letters/Holiday_Letters/MothersDay/index.shtml;;status=Send A Letter To Mom")
aI("text=Father's Day;url=http://www.personalizedletter.com/Letters/Holiday_Letters/FathersDay/index.shtml;;status=Send Dad A Letter")
aI("text=Christmas;showmenu=Christmas;;status=Christmas Letter Area - over 18 letters here")
aI("text=Valentine's Day;url=http://www.personalizedletter.com/Letters/Holiday_Letters/ValentinesDay/index.shtml;;status=Send your Sweety a Valentine")
aI("text=Halloween;url=http://www.personalizedletter.com/Letters/Holiday_Letters/Halloween/index.shtml;;status=A Letter From Jack-O-Lantern")
}

with(milonic=new menuname("christmas")){
itemwidth=140;
borderwidth=1;
style=menuStyle;
alignment="center";
aI("text=Misc. Christmas Letters;url=http://www.personalizedletter.com/Letters/Holiday_Letters/Christmas/index.shtml;;status=Misc Christmas Letters;separatorsize=1")
aI("text=Letters From Santa;url=http://www.personalizedletter.com/Letters/Holiday_Letters/Christmas/FromSanta/index.shtml;;status=Letters From Santa;separatorsize=1")
aI("text=Free Gifts;url=http://www.personalizedletter.com/Letters/Holiday_Letters/Christmas/FromSanta/gift.shtml;;status=Free gifts for Children and You at Christmas;separatorsize=1")
}

with(milonic=new menuname("occasional")){
itemwidth=110;
borderwidth=1;
style=menuStyle;
alignment="center";
aI("text=Baby;url=http://www.personalizedletter.com/Letters/Ocassional_Letters/Baby/index.shtml;;status=New Addition and Unborn Child Letters;separatorsize=1")
aI("text=Wedding;url=http://www.personalizedletter.com/Letters/Ocassional_Letters/Wedding/index.shtml;;status=Various Bridal and Wedding Letters;separatorsize=1")
aI("text=Anniversary;url=http://www.personalizedletter.com/Letters/Ocassional_Letters/Anniversary/index.shtml;;status=Say Happy Anniversary;separatorsize=1")
aI("text=Graduation;url=http://www.personalizedletter.com/Letters/Ocassional_Letters/Graduation/index.shtml;;status=Let Them Know How Proud You Are For Graduating;separatorsize=1")
}

with(milonic=new menuname("fun")){
itemwidth=170;
borderwidth=1;
style=menuStyle;
alignment="center";
aI("text=The Tooth Fairy;url=http://personalizedletter.com/Letters/Fun_Letters/ToothFairyLetterf.shtml;;status=Tooth Fairy Letter")
aI("text=Special Grandchild;url=http://www.personalizedletter.com/Letters/Fun_Letters/index.shtml;;status=Grandparent thinking of you letter")
}

with(milonic=new menuname("gifts")){
itemwidth=195;
borderwidth=1;
style=menuStyle;
alignment="left";
aI("text= Classroom Letter Special;image=/newsimage.gif;url=http://www.personalizedletter.com/specials/class.shtml;;status=Letters for the whole class at a special price! Order early!;separatorsize=1")
aI("text= Half A Year In Letters;image=/newsimage.gif;url=http://www.personalizedletter.com/specials/half.shtml;;status=Pay for 5 and get one FREE;separatorsize=1")
aI("text= A Year In Letters;image=/newsimage.gif;url=http://www.personalizedletter.com/specials/year.shtml;;status=Pay for 9 and get 3 FREE;separatorsize=1")
aI("text= Handcrafted Gift Store;image=/newsimage.gif;url=http://www.personalizedletter.com/gifts/index.shtml;;status=Check out these hand crafted gifts!;separatorsize=1")
}

with(milonic=new menuname("about")){
itemwidth=160;
borderwidth=1;
style=menuStyle;
overflow="scroll";
alignment="center";
aI("text=About Us;url=http://www.personalizedletter.com/about.shtml;;status=All about us!;separatorsize=1")
aI("text=... Our Letter Design;url=http://www.personalizedletter.com/about.shtml;;status=Design of letter¬ paper used ect..;separatorsize=1")
aI("text=... Prices;url=http://www.personalizedletter.com/about.shtml#cost;;status=What are the prices anyway? Find it here;separatorsize=1")
aI("text=... Shipping;url=http://www.personalizedletter.com/about.shtml#ship;;status=Shipping information;separatorsize=1")
aI("text=... Payment Options;url=http://www.personalizedletter.com/payops.shtml;;status=All the ways and whith whom you may make payment;separatorsize=1")
aI("text=... Make Payment;url=http://www.personalizedletter.com/pay.shtml;;status=Make your payments here!;separatorsize=1")
aI("text=... Contacting Us;url=http://www.personalizedletter.com/contact.shtml;;status=Have questions? Check the FAQ out first - then write us here;separatorsize=1")
aI("text=... Testimonials;url=http://www.personalizedletter.com/kudos.shtml;;status=See what others had to say about our product!;separatorsize=1")
aI("text=... Newsletter;url=http://www.personalizedletter.com/signup.shtml;;status=Sign up for our newsletter;separatorsize=1")
aI("text= Fundraiser;image=http://www.allletters.com/graphics/dollar.gif;border=0;url=http://www.personalizedletter.com/fundraiser/index.shtml;;status=We offer fundraising with our letters;separatorsize=1")
aI("text=... Please Remind Me;url=http://www.personalizedletter.com/cgi-bin/remindme.cgi;;status=Get reminders for free!;separatorsize=1")
aI("text=... Calendar;url=http://www.personalizedletter.com/cgi-bin/calendar/calendar.pl;;status=Look ahead with our calendar for order and ship dates;separatorsize=1")
aI("text=... View CCNow Cart;url=http://www.ccnow.com/cgi-local/cart.cgi?prsnlty_shopcart_http://www.personalizedletter.com/thankyou.shtml;;status=View your account at the CCNow shopping cart;separatorsize=1")
aI("text=... Privacy Statement;url=http://www.personalizedletter.com/privacy.shtml;;status=We value all privacy issues - please read;separatorsize=1")
aI("text=... Terms Of Use;url=http://www.personalizedletter.com/terms.shtml;;status=Terms which this site may be used;separatorsize=1")
}

with(milonic=new menuname("holidayfun")){
itemwidth=140;
borderwidth=1;
style=menuStyle;
alignment="center";
aI("text=Holiday Fun Home;url=http://www.personalizedletter.com/Holidays/index.shtml;;status=Exclusive Personality Creations Holiday Fun! All Major Holidays - Kid Safe!;separatorsize=1")
aI("text=Christmas;url=http://www.personalizedletter.com/Holidays/Christmas/index.html;;status=Exclusive Personality Creations Holiday Fun! Crafts¬ Recipes¬ Games¬ Sing-Along and more!;target=_blank;separatorsize=1")
aI("text=Fall;url=http://www.personalizedletter.com/Holidays/Fall/fall.html;;status=Exclusive Personality Creations Holiday Fun! Fall, Halloween and Thanksgiving!;target=_blank;separatorsize=1")
aI("text=Email Postcards;url=http://www.personalizedletter.com/cards/index.shtml;;status=Free Online Postcards;separatorsize=1")
}

with(milonic=new menuname("Other")){
itemwidth=150;
borderwidth=1;
style=menuStyle;
alignment="center";
aI("text=Site Credits;url=http://www.personalizedletter.com/credits.shtml;;status=Those who helped make this site happen!;separatorsize=1")
aI("text=Awards Center;url=http://www.personalizedletter.com/awards/index.shtml;;status=Apply for award Winners and Our awards;separatorsize=1")
aI("text=View Our Links or Add Your Link;url=http://www.personalizedletter.com/links.shtml;;status=Trade links with us or check out links listed on our site!;separatorsize=1")
aI("text=Sponsor Ad Space;url=http://www.personalizedletter.com/adsinfo.shtml;;status=Purchase ad space on our main area pages or newsletter;separatorsize=1")
aI("text=Top Sites!;url=http://www.personalizedletter.com/topsitesphp/;;status=Personality Creations Top Sites! Join list or visit;target=_blank;separatorsize=1")
}



drawMenus();


Poster: John
Dated: Saturday October 4 2003 - 19:49:23 BST

Jackie wrote:
'menuStyle' is undefined

And so it is!

You have...
Code:
with(style1=new mm_style()){

Therefore, "style1" is the name of your style.

However, all your menus call "menuStyle", which is not defined.

Change the above code to...
Code:
with(menuStyle=new mm_style()){


Poster: Jackie
Dated: Saturday October 4 2003 - 20:01:19 BST

Tada!!!!

Thank you, thank you!

All fixed and works great :lol:


Poster: John
Dated: Sunday October 5 2003 - 18:17:23 BST

Super! Glad to hear it. Add one more family member.

Please register (if you haven't already). If you have - Tank U :!:


Poster: Jackie
Dated: Sunday October 5 2003 - 23:12:34 BST

Thank you John!

I purchased it before I downloaded and I also placed a special link on our "credits" page :D

Take care.


Poster: John
Dated: Monday October 6 2003 - 2:26:07 BST

You're our kind of people :D

Don't forget to watch for the final release of v5 - "any day now"...