Hi,
its very simple. I have a self made jQuery hidden content switch. I use jQpanView in the Div´s.
It only works, when I load the jQpanView for every hidden content DIV once. But then, it also starts the function for every clicked tab again.
Here we go: the problem example
.
The link
<a href="#" id="apozin_30_pic1" class="apozin_30_hide">
.
hides all div´s again
jQuery("div#apozin_30_container").hide();
.
and the "apozin_30_pic1" shows then only the correct hidden div.
And now the panview function
$(document).ready(function(){
$("a.panview").panview(560,400);
});
must loaded on every hidden div to work.
jQuery("a#apozin_30_pic1").click(function() {
jQuery("div.apozin_30_pic1").show();
$(document).ready(function(){
$("a.panview").panview(560,400);
});
});
And thats my problem. This is no good style and maybe it would be better to do it completely different or simply to "unload" the previous panview function before starting it.
Because now it always starts the function and the panviews gets more and more.
I played around with .unbind, .die and .remove. Remove killed the panview completely, but thats not what I wanted.