Question

I need to perform certain jQuery actions each time the focus changes from PrettyPhoto frame to the next.

Does anyone know what the HMTL & JS coding would look like to make this happen?

Thanks!

Was it helpful?

Solution 2

You MUST placed your .js file immediately before the closing tag, and not in the common tag section. I hope my 2-3 days of spinning my wheels helps someone out! Good luck.

OTHER TIPS

Detect focus for one item.

$('#iFrameId').bind('focus',function(event){
   //DO SOMETHING AS A REACTION TO THE FOCUS
});

Detect focus on all images in the photo container might be something like this:

$('#Photos img').bind('focus',function(event){
         //DO SOMETHING AS A REACTION TO THE FOCUS
 });
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top