<font face="arial" size="2">Hi Richard,<br /><br />&nbsp;&nbsp;&nbsp;You may be over-analyzing this.&nbsp; If you have strings to compare, you just stick 'em in there.<br /><br />switch(myStringValue) {<br />&nbsp;case "planes":<br />&nbsp;&nbsp;alert("It's planes!!!");<br />&nbsp;&nbsp;break;<br />&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;On the other hand, if you're expecting that switch variable to be the ID of the appropriate element, you might not even need a switch statement (i.e. you'd just feed the value into your document.getElementById method and go).<br /><br />Cheers,<br /><br />Peter<br /><br /></font><font face="Tahoma, Arial, Sans-Serif" size="2"><b>From</b>: "Richard " <a href="mailto:nomorebull@charter.net">nomorebull@charter.net</a><br /></font><br />Ok I understand all the basics of the switch/case item.<br />Basically a more structured "if" array.<br /><br />My problem is, understanding how to activate it.<br />In my menu of <ul>, which could be quite long, where and how do you state<br />what "case" is to be a certain value?"<br />I plan using string literals, such as "planes", "trains" and that.<br />For instance:<br /> <div id="planes"><br />Do I trigger the function with getelementybyID routine or what?<br /><br />If anyone can come with a short example as to how to do this, I'd appreciate<br />it.<br /></div></ul>