View Single Post
  #7  
Old 02-25-2012, 04:48 PM
 
spiredem spiredem is offline
 

Advanced Member
  
Join Date: Oct 2008
Posts: 87
 

Default Re: Problem adding javascript to category description

Ok so this isn't working on this part. I put the following into skin1/common.js
Quote:
/*
This JavaScript does the work when mouse-sensitive areas are triggered.
*/
function HideDIV(d) {
document.getElementById(d).style.display = "none"; }
function DisplayDIV(d) {
document.getElementById(d).style.display = "block"; }

and here's how I call it on the page
Quote:
<span class="heroes" onmouseover="HideDIV('desc2');DisplayDIV('desc1')" )" >
brand bio
</span>
__________________
X-Cart Gold 4.1.10
Add-on: X-AOM (Advanced Order Management)
Reply With Quote