My code works but when I put an image in there my code doesn't work anymore.
any comments would be greatly appreciated.
<html>
<head>
<style type="text/css">
.planType{display:none; width:600px}
</style>
<script type="text/javascript">
<!--
function planTypeOpen(planID) {
document.getElementById('info_' + planID).style.display = "block";
document.getElementById('title_' + planID).innerHTML="<a href=\"javascriptlanTypeClose('" + planID + "');\">Check this out" + "</a>";
}
function planTypeClose(planID) {
document.getElementById('info_' + planID).style.display = "none";
document.getElementById('title_' + planID).innerHTML="<a href=\"javascriptlanTypeOpen('" + planID + "');\">Check this out" + "</a>";
}
//-->
</script>
</head>
<body>
<div id="title_1"><a href="javascriptlanTypeOpen('1');">Check this out</a></div>
<div id="info_1" class="planType">
You can't see me...<br>
Or Can you??
</div>
</body>
</html>
any comments would be greatly appreciated.