home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (panels.js)

This example Drupal source code file (panels.js) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

admin-links-hover, function, hover, if, jquery, panel-hide-hover, php, return, true

The panels.js Drupal example source code

// $Id: panels.js,v 2009/10/05 22:40:35 merlinofchaos Exp $

(function ($) {
  Drupal.Panels = {};

  Drupal.Panels.autoAttach = function() {
    if ($.browser.msie) {
      // If IE, attach a hover event so we can see our admin links.
        function() {
          $('div.panel-hide', this).addClass("panel-hide-hover"); return true;
        function() {
          $('div.panel-hide', this).removeClass("panel-hide-hover"); return true;
        function() {
          $(this).addClass("admin-links-hover"); return true;
          $(this).removeClass("admin-links-hover"); return true;


Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal panels.js source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.