Hover and click effects
Hover and click effects
I have some jQuery tabs which are using the hover effect to change the
tabs.
Can I also use the onClick event to actually link to another page?
If so how? This is my code which is adding the hover effect;
$(function() {
var $tabs = $("#tabs").tabs(
{
event: 'mouseover',
selected: -1,
select: function(event, ui) {
$('#noTab').hide(); // hidding the noTab
}
})
var selected = $tabs.tabs('option', 'selected');
if (selected == -1) // Just making sure that no tabs is
selected
{
$('#noTab').show();
var setSelected = gup('TabID');
if (setSelected != '') {
$("#tabs").tabs('select', setSelected);
}
}
});