After looking at the scripts involved it seems most likely that your onload Function Call is:
So, you would link your scripts and css to the top page and also place the code:
Code:
<script type="text/javascript">
function startGallery() {
var myGallery = new gallery($('myGallery'), {
timed: false,
showArrows: true,
embedLinks: false
});
}
window.onDomReady(startGallery);
</script>
On the top page, just as though it were the page with the gallery on it. You may need to remove this line:
Code:
window.onDomReady(startGallery);
Use this type of syntax on the top page to load the gallery content onto the top page:
HTML Code:
<a href="javascript:ajaxpage('some.htm' 'someloadarea');" onmousedown="window.acInit=false;">Link Text</a>
Change some.htm and someloadarea to the page and id that you are using. Then on your external page we need to find something to add our other event to. I'd vote for each of these:
HTML Code:
<div class="imageElement">
example:
Code:
<div class="imageElement" onmouseover="if(!window.acInit){startGallery();window.acInit=true;};">
But it would be easier and, perhaps better to use one of these two elements:
HTML Code:
<div class="content">
<div id="myGallery">
So, that would be either:
Code:
<div class="content" onmouseover="if(!window.acInit){startGallery();window.acInit=true;};">
<div id="myGallery">
or:
Code:
<div class="content">
<div id="myGallery" onmouseover="if(!window.acInit){startGallery();window.acInit=true;};">
Bookmarks