Problem with refreshing content
I am creating a travelling website with a Flash gallery on top of it, the gallery has to refresh every time the user navigates to a page (this is necessary because the content in the gallery is different on every page.
It may be "wrong" but i couldn't find a proper event to do it so i used the mouse hover event on my body. The thing is that it only loads the gallery one time (because the
var overing is set to false).
Now I wonder
1. What event can i use to start my gallery on every new page.
2. If the first question is impossible, how can I reset booleans so my var overing so the variable would be resetted ?
Note: "document['flashEmbedding'].sendToActionscript(ids);" is the code i use to connect with flash, I tried to put in the in in the document ready but that stops my flash from loading.
-
$(document).ready(init);
function init(){
// the boolean that should be resetted every page
var overing = false;
$("*").hover(function(){
if (overing == false) {
overing = true;
document['flashEmbedding'].sendToActionscript(ids);
}
});
}
Greets, i hope i can find help