Hi there, Before I start coding, I just wanted to know can I have a linkable menu that when a link is clicked, a div will appear? The reason for this is that I'm incorporating a J.S. slideshow for the background image and want a div to appear only when a link is clicked. Any examples or code would be great. Thanks
Hi, I'm not sure if this can be done with pure CSS but it definitely can be accomplished with a combo of CSS and javascript. I've googled for a few tutorials and found something like this: <style type="text/css"> #hello { display: none; position: absolute; height: 100px; width: 100px; border: 1px solid black; background: lightblue; } </style> <script type="text/javascript"> var show = function (toggleID, me){ toggleID.style.left = me.offsetLeft; toggleID.style.top = me.offsetTop + me.fontSize; toggleID.style.display = "block"; }; </script> <a href="javascript:void(0)" onclick="show(document.getElementById('hello'), this);">SHOW</a> <div id="hello"><a href="javascript:void(0)" onclick="this.parentNode.style.display='none'">BLAH</a></div> This script is from the Dynamic Drive forums.