/[drupal]/contributions/modules/mysite/mysite_links.js
ViewVC logotype

Contents of /contributions/modules/mysite/mysite_links.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Wed Feb 6 00:38:47 2008 UTC (21 months, 3 weeks ago) by agentken
Branch: MAIN
CVS Tags: DRUPAL-5--3-0rc1, DRUPAL-5--3-3, DRUPAL-5--3-2, DRUPAL-5--3-1, DRUPAL-5--3-0, DRUPAL-5--3-0rc2, HEAD
Changes since 1.1: +16 -9 lines
File MIME type: text/javascript
 #215095 by gustav.  Fixes JavaScript failure on IE for mysite_links.
  -- #217543 fixes bug in generating add/remove content links.
1 /* $Id: mysite_links.js,v 1.1 2007/09/01 21:18:33 agentken Exp $ */
2
3 /**
4 * Modified from Suckerfish Dropdowns, www.htmldog.com
5 * Suckerfish by Patrick Griffiths and Dan Webb.
6 *
7 * IE fix.
8 */
9 mysiteHover = function() {
10 var linksReady = '';
11 var sfEls = '';
12 linksReady = document.getElementById("mysite-links");
13 if (linksReady) {
14 sfEld = document.getElementById("mysite-links").getElementsByTagName("LI");
15 if (sfEls) {
16 for (var i=0; i<sfEls.length; i++) {
17 sfEls[i].onmouseover=function() {
18 this.className+=" mysite-hover";
19 }
20 sfEls[i].onmouseout=function() {
21 this.className=this.className.replace(new RegExp(" mysite-hover\\b"), "");
22 }
23 }
24 }
25 }
26 }
27 if (window.attachEvent) window.attachEvent("onload", mysiteHover);

  ViewVC Help
Powered by ViewVC 1.1.2