I have some js code (not my own as I am really lacking in java knowledge)
PHP Code:
<script>
function showtarget(which) {
var spans = document.getElementById("MenuDescription").getElementsByTagName("SPAN");
for ( var s = 0; s <= spans.length; ++s ) {
spans[s].style.display = ( s == which-1) ? "inline" : "none";
}
}
</script>
You can see the site here
http://www.stokerscoffeelounge.com.a...etpancakes.php
(Taking the example on Opera Browser, where you hover over Fresh Strawberry and then Spicy Apple)
Basically on the mouse over of the Menu Items, you find that is displays correctly on all browsers except one. On the Opera Browser, when you hover over Spicy Apple some of the Fresh Strawberry text is left over.
I don't want to clear the text on mouseout as that would be annoying to people as they would have keep their mouse trained on the menu item while reading the text on the right.
I need to know how to clear the element before it grabs the next span?
Much appreciation and thanks for comments, suggestions and fixes.