<div dir="ltr">Do you get any console errors? It could be that it's been displayed below the map or other component. You could also inform where you want it to be rendered with:<div>    <span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">map.addControl(new OpenLayers.Control.</span><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">LayerSwitcher(</span><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">{'div': document.getElementById("myDiv")}</span><span style="font-size:13px;font-family:arial,sans-serif"><font color="#000000">));</font></span></div>
<div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/10 dushan <span dir="ltr"><<a href="mailto:dushan888@gmail.com" target="_blank">dushan888@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Thank you for replying. I still cant see the difference of your code and mine<br>
(the wrong bracket). Anyways I replaced your code with mine. but its still<br>
the same. Please help.<br>
Regards.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Repost-Geoserver-users-LayerSwitcher-not-working-tp5065279p5065391.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/Repost-Geoserver-users-LayerSwitcher-not-working-tp5065279p5065391.html</a><br>

<div class=""><div class="h5">Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</div></div></blockquote></div><br></div></div></div>