Here is a way to do what you want using jQuery UI tabs. It uses the "show" event to detect which ui.panel element is being displayed.
?$('#tabs').tabs({
show: function(e,ui){
switch(ui.panel){
case $('#tabs-1')[0]: src = 'image1.jpg'; break;
case $('#tabs-2')[0]: src = 'image2.jpg'; break;
default: src = 'default.jpg';
}
$('#myimg').attr('src',src);
}
});?????
In the future, I'd recommend adding more specifics to your question, and providing a more simplified example. Your page had numerous scripts on it, which makes it difficult to look at your specific situation.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…