⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jquery.biggerlink.js

📁 java阿里巴巴代码
💻 JS
字号:
// Version 1.0 - October 19, 2007// Requires http://jquery.com version 1.2.1(function($) {	$.fn.biggerlink = function(options) {		// Default settings		var settings = {			hoverclass:'hover', // class added to parent element on hover			clickableclass:'hot', // class added to parent element with behaviour			follow: true	// follow link? Set to false for js popups		};		if(options) {			$.extend(settings, options);		}		$(this).filter(function(){			 return $('a',this).length > 0;		}).addClass(settings.clickableclass).each(function(i){					// Add title of first link with title to parent			$(this).attr('title', $('a[title]:first',this).attr('title'));						// hover and trigger contained anchor event on click			$(this)			.mouseover(function(){				window.status = $('a:first',this).attr('href');				$(this).addClass(settings.hoverclass);			})			.mouseout(function(){				window.status = '';				$(this).removeClass(settings.hoverclass);			})			.bind('click',function(){				$(this).find('a:first').trigger('click');			})						// triggerable events on anchor itself						.find('a').bind('focus',function(){				$(this).parents('.'+ settings.clickableclass).addClass(settings.hoverclass);			}).bind('blur',function(){				$(this).parents('.'+ settings.clickableclass).removeClass(settings.hoverclass);			}).end()						.find('a:first').bind('click',function(e){				if(settings.follow == true)				{					window.location = this.href;				}				e.stopPropagation(); // stop event bubbling to parent			}).end()						.find('a',this).not(':first').bind('click',function(){				$(this).parents('.'+ settings.clickableclass).find('a:first').trigger('click');				return false;			});		});		return this;	};})(jQuery);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -