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

is a ; needed or not?


Poster: pieter53
Dated: Monday July 23 2007 - 17:19:24 BST

Just a simple question: is the ; at the end of menulines needed or not?

A line like this: aI("showmenu=Services;text=Services;"); ends with ;

But in the Vertical plain text Menu example you can see lines without ; at the end

with(milonic=new menuname("Samples")){
overflow="scroll";
style=menuStyle;
aI("text=Plain Text Horizontal Style DHTML Menu Bar;url=http://www.milonic.com/menusample1.php;")
aI("text=Vertical Plain Text Menu;url=http://www.milonic.com/menusample2.php;")
aI("text=All Horizontal Menus;url=http://www.milonic.com/menusample25.php;")
aI("text=Using The Popup Menu Function Positioned by Images;url=http://www.milonic.com/menusample24.php;")
aI("text=Classic XP Style Menu;url=http://www.milonic.com/menusample82.php;")


and lines with ; at the end

with(milonic=new menuname("Milonic")){
style=menuStyle;
aI("text=Product Purchasing Page;url=http://www.milonic.com/cbuy.php;");
aI("text=Contact Us;url=http://www.milonic.com/contactus.php;");
aI("text=Newsletter Subscription;url=http://www.milonic.com/newsletter.php;");
aI("text=FAQ;url=http://www.milonic.com/menufaq.php;");


Poster: Andy
Dated: Tuesday July 24 2007 - 9:00:56 BST

Hi,

In JavaScript the semi-colon is not a mandatory requirement as long as there is a line feed.

That's why you sometimes see them and sometimes you don't

-- Andy


Poster: pieter53
Dated: Tuesday July 24 2007 - 9:19:04 BST

THANKS!