PageSourceSearch

http://www.webtaxi.md/templates/ja_norite/js/menu/css.js

js webtaxi.md collected 2026-10-02 23:28:55 UTC 1,786 bytes, 43 lines download raw bytes

1/*
2# ------------------------------------------------------------------------
3# JA Norite template for Joomla 1.5.x
4# ------------------------------------------------------------------------
5# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
6# @license - PHP files are GNU/GPL V2. CSS / JS are Copyrighted Commercial,
7# bound by Proprietary License of JoomlArt. For details on licensing, 
8# Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html.
9# Author: JoomlArt.com
10# Websites:  http://www.joomlart.com -  http://www.joomlancers.com
11# Redistribution, Modification or Re-licensing of this file in part of full, 
12# is bound by the License applied. 
13# ------------------------------------------------------------------------
14*/
15
16
17window.addEvent ('domready', function() {
18	var sfEls = $$('#ja-cssmenu li');
19	sfEls.each (function(li) {
20		if ((a = li.getElement('a')) && li.hasChild (a)) li.a = a;
21		else li.a = null;
22	});	
23	sfEls.each (function(li){
24		li.addEvent('mouseenter', function(e) {
25			clearTimeout(this.timer);
26			if(this.hasClass("havechild")) this.addClass('havechildsfhover').removeClass('havechild');
27			else if(this.hasClass("havesubchild")) this.addClass('havesubchildsfhover').removeClass('havesubchild');
28			this.addClass ('sfhover');
29			if (this.a) this.a.addClass ('sfhover');
30		});
31		li.addEvent('mouseleave', function(e) {
32			this.timer = setTimeout(sfHoverOut.bind(this, e), 100);
33		});
34	});
35});
36
37function sfHoverOut() {
38	clearTimeout(this.timer);
39	if(this.hasClass("havechildsfhover")) this.addClass('havechild').removeClass('havechildsfhover');
40	else if(this.hasClass("havesubchildsfhover")) this.addClass('havesubchild').removeClass('havesubchildsfhover');
41	this.removeClass ('sfhover');
42	if (this.a) this.a.removeClass ('sfhover');
43}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.