Skip to content

Script allows to pause jQuery UI Tabs on mouse hover. Works with jQuery-UI-Tabs-Rotate

License

Notifications You must be signed in to change notification settings

tigusigalpa/jQuery-UI-tabs-Rotate-Pause-on-hover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

jQuery UI Tabs Rotate: Pause on Hover

What for?

Since version 1.9 of jQuery UI has been removed rotate method and suggested for users to use rotate extension. But most users/developers wants to make pause on hover for their rotating tabs. This jQuery UI extension makes possible to pause on hover with some options, look at Usage.

Required

Usage

	<head>
		<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
		<script type="text/javascript" charset="utf-8" src="js/jquery-ui-1.10.2.custom.min.js"></script>
		<script type="text/javascript" charset="utf-8" src="js/jquery-ui-tabs-rotate.js"></script>
		<script type="text/javascript" charset="utf-8" src="js/jquery-ui-tabs-hover.js"></script>
		<script type="text/javascript" charset="utf-8" src="js/custom.js"></script>
	</head>
	<body>
		<div id="test">
			<div class="fragment" id="fragment-0"><img src="images/1.jpg" /></div>
			<div class="fragment" id="fragment-1"><img src="images/2.jpg" /></div>
			<div class="fragment" id="fragment-2"><img src="images/3.jpg" /></div>
			<ul>
				<li><a href="#fragment-0">1</a></li>
				<li><a href="#fragment-1">2</a></li>
				<li><a href="#fragment-2">3</a></li>
			</ul>
		</div>
    </body>
	//custom.js
	//example rotate delay time = 4000ms = 4s
	
	//pause on hover and keeps on unhover
	jQuery(document).ready(function() {
		jQuery("#test").tabs().tabs("rotate", 4000, true).tabs("hover", true, false);
	});
	
	//pause on hover and unpause on unhover
	jQuery(document).ready(function() {
		jQuery("#test").tabs().tabs("rotate", 4000, true).tabs("hover", true, true);
	});

License

Extension is provided under the MIT License.

Contribution

Please fork, add specs, and send pull requests!

About

Script allows to pause jQuery UI Tabs on mouse hover. Works with jQuery-UI-Tabs-Rotate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published