All,
I have the following bit of CSS:
So basically on my page whenever there is a bullet it displays this marker. I put in the following code to make the bullet become clickable:Code:ul li{background:url(images/marker.jpg) top left no-repeat; background-position:0 3px; margin:0; padding-left:13px; }
I then have the following javascript to handle that:Code:<li onclick="javascript:showdesc('This is info about bulk delivery', 'bulk');">Bulk Delivery</li><div id="bulk"></div>
Is there a way to incorporate CSS into the JS that will allow me to use a different image (down arrow) and make that clickable to then make the <div id="bulk"></div> not have the desc in it anymore?Code:<script type="text/javascript"> function showdesc(desc, type){ if(type=="bulk"){ document.getElementById("bulk").innerHTML = desc; } } </script>
Thanks in advance!


Reply With Quote
Bookmarks