shortcut within
-
On one side of the page I have the following:
<img id=”clickMeId” onclick=”show(‘comment’);” img class=”alignnone size-full wp-image-679″ src=some-image.jpg” alt=”1small” width=”80″ height=”80″ />
On the other side I have this:
<div id=”comment” style=”display:none;”>[LBSP id=668] </div>When I click on the image the LBSP shows up but they are stacked and small. Not the 3 column 3 rows I should be getting. Any ideas?
This is my javascript and I put it before </head> in the header.php file:
<script>
function show (toBlock){
setDisplay(toBlock, ‘block’);
}
function hide (toNone) {
setDisplay(toNone, ‘none’);
}
function setDisplay (target, str) {
document.getElementById(target).style.display = str;
}
</script>
- The topic ‘shortcut within’ is closed to new replies.