Home arrow JavaScript arrow Page 4 - Bulleted Menu of Links
JAVASCRIPT

Bulleted Menu of Links


In this article, I will be going over the various features of a bulleted menu of links, including how to implement them in your web page. All explanations will be accompanied by code samples to help you through this process. If you want to learn more about this common web page function, then, by all means, keep reading.

Author Info:
By: Chrysanthus Forcha
Rating: 5 stars5 stars5 stars5 stars5 stars / 2
April 23, 2008
TABLE OF CONTENTS:
  1. · Bulleted Menu of Links
  2. · Operation from the User’s Point of View
  3. · Algorithm
  4. · Code continued
  5. · Even More Code

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Bulleted Menu of Links - Code continued
(Page 4 of 5 )

{

//var string11 = "<li onclick="formString('SLL11')" id="SLLLI11" style='list-style-type: disc'
title="Click Bullet to Expand"><a href='www.somePage11.com' id="SLL11" title='Click Bullet to Expand'>Second Level Link 11</a></li>";

var string111 = "<li><a href='www.somePage111.com' style='list-style-type: square'>Third Level Link 111</a></li>";

var string112 = "<li><a href='www.somePage112.com' style='list-style-type: square'>Third Level Link 112</a></li>";

var string113 = "<li><a href='www.somePage112.com' style='list-style-type: square'>Third Level Link 113</a></li>";

//var string12 = "<li onclick="formString('SLL12')" id="SLLLI12" style='list-style-type: disc'
title="Click Bullet to Expand"><a href='www.somePage12.com' id="SLL12" title='Click Bullet to Expand'>Second Level Link 12</a></li>";

var string121 = "<li><a href='www.somePage121.com' style='list-style-type: square'>Third Level Link 121</a></li>";

var string122 = "<li><a href='www.somePage122.com' style='list-style-type: square'>Third Level Link 122</a></li>";

var string123 = "<li><a href='www.somePage123.com' style='list-style-type: square'>Third Level Link 123</a></li>";

//var string13 = "<li onclick="formString('SLL13')" id="SLLLI13" style='list-style-type: disc'
title="Click Bullet to Expand"><a href='www.somePage13.com' id="SLL13" title='Click Bullet to Expand'>Second Level Link 13</a></li>";

var string131 = "<li><a href='www.somePage131.com' style='list-style-type: square'>Third Level Link 131</a></li>";

var string132 = "<li><a href='www.somePage132.com' style='list-style-type: square'>Third Level Link 132</a></li>";

var string133 = "<li><a href='www.somePage133.com' style='list-style-type: square'>Third Level Link 133</a></li>";


//verify which list item was clicked and give its global variable its value

switch(ID)

{

case "FLL1":

if (FLL1Direction == "Expand")

{

FLL1Direction = "Collapse"

}

else if (FLL1Direction == "Collapse")

{

FLL1Direction = "Expand"

}

else //the first time the link it clicked.

{

FLL1Direction = "Expand"

}

break;

case "SLL11":

if (SLL11Direction == "Expand")

{

SLL11Direction = "Collapse"

}

else if (SLL11Direction == "Collapse")

{

SLL11Direction = "Expand"

}

else //the first time the link it clicked.

{

SLL11Direction = "Expand"

}

break;

case "SLL12":

if (SLL12Direction == "Expand")

{

SLL12Direction = "Collapse"

}

else if (SLL12Direction == "Collapse")

{

SLL12Direction = "Expand"

}

else //the first time the link it clicked.

{

SLL12Direction = "Expand"

}

break;

case "SLL13":

if (SLL13Direction == "Expand")

{

SLL13Direction = "Collapse"

}

else if (SLL13Direction == "Collapse")

{

SLL13Direction = "Expand"

}

else //the first time the link it clicked.

{

SLL13Direction = "Expand"

}

}


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- More Top jQuery Tutorials for Beginners
- More Top jQuery Plugins for Menus
- Top jQuery Tutorials for Beginners
- New UI Framework and SDK for JavaScript Rele...
- JavaScript OpenPGP Tool, Node.js 0.6.3 Avail...
- Yahoo Releases Cocktails Language and Develo...
- Customizing jQuery Slideshows: Dynamic Contr...
- Customizing jQuery Slideshows: the animate()...
- Customizing jQuery Slideshows: slideUp() and...
- Customizing jQuery Slideshows: hide() and sh...
- Web Workers: Performing Calculations in Para...
- More Top JavaScript Frameworks and Libraries
- More Dynamic jQuery Styling Techniques
- The Top JavaScript Libraries
- The Top JavaScript Frameworks

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 6 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials