Scroll To Top

Enter a query to search our site. Note that you can use "*" and "?" as wildcards. Enclosing more than one word in double quotes ("CSS Layout") will search for the exact phrase.

PVII Knowledge Base

1. Select a product ...
2. Select category ...
3. Search the Knowledge Base...

Question #233

Is it possible to have the Glide Panel Magic (GPM) system work with mouse over trigger action?

The Answer

Prepared Feb. 2008 by Gerry Jacobsen, PVII

You can activate MouseOver action on the Glide Panel Magic (GPM) system by applying this simple code tweak:

1. Open the p7GPscripts.js file, look for these lines in the P7_initGPM() function, around line 77:

tA[j].onclick=function(){
  return P7_GPMshow(this);
  };
  tA[j].p7state='closed';

2. Create a new line just above the last line above, copy and paste this code into the new line:

tA[j].onmouseover=function(){P7_GPMovr(this);};

so it now looks like this:

tA[j].onclick=function(){
  return P7_GPMshow(this);
  };
  tA[j].onmouseover=function(){P7_GPMovr(this);};

  tA[j].p7state='closed';

3. Next, copy and paste this new mouse over trigger function, P7_GPMovr(a), to the end of the scripts file:

function P7_GPMovr(a){
  if(a.p7state!="open"){
    P7_GPMshow(a);
  }
}

4. Save the file.

That's it, the Glide Panel buttons will now trigger the panels on mouse over. The default onclick action is still preserved and fully functional.

Back to the questions list