Is there an on_tab_on2 event

Posted by Carpenter under Regular Expressions on 3/16/2010 | Views : 927 | Status : [Member] | Replies : 2
I have a thumb gallery where I can hover over each thumb to trigger an associated pop-up to appear, but I would like to be able to also tab through the thumbs
and make the associated pop-ups appear... Any help on how to go about doing this?

function onhovering_and_tabbingon2()
{
$(".box img").hover(
function ()
{
var num = $(this).attr('id').replace('thumb_entry_No', '');

$('#pop' + num).toggleClass('popup');

// maybe set the tabbing position to here... ???
},

function ()
{

var num = $(this).attr('id').replace('thumb_entry_No', '');

$('#pop' + num).toggleClass('popup');

}
);


// todo: try to show the popups when tabbing through the thumbs...
$(".box img").on_tab_on2( // on_tab_on2 ????
function () {

var num = $(this).attr('id').replace('thumb_entry_No', '');

$('#pop' + num).toggleClass('popup');

// alert("Thumb entry no. " + num + " was tabbed to...");


// might also have to move the mouse pointer(if there is one) along also.... ???
},

function () {

var num = $(this).attr('id').replace('thumb_entry_No', '');

$('#pop' + num).toggleClass('popup');

}
);

}




Responses

Posted by: Sbanerjee on: 4/13/2010 [Member] Starter

Up
0
Down
Please try the following:
$(".box img").onfocus


Regards,
Soumen

Carpenter, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Carpenter on: 4/16/2010 [Member] Starter

Up
0
Down
Thanks for the time Sbanerjee... Will keep at it :)

Carpenter, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response