Where to begin? Both on the top page, and in the page in the iframe, these two script tags go nowhere (both are 404 not found):
Code:
<script src="engine/js/jquery.js" type="text/javascript"></script>
<script src="engine/js/jquery.tools.min.js" type="text/javascript"></script>
The:
Code:
<script src="engine/js/visuallightbox.js" type="text/javascript"></script>
on the top page only works because you've included jQuery 1.3.2 in this script:
Code:
<script type="text/javascript" src="ddaccordion.js"></script>
I don't know why you have an attempt at jquery.tools.min.js at all, as it appears to not be required, unless you've included it in another script and I just can't find it. Or it is required but the script that needs it just hasn't let us know about it's being missing yet.
All of the scripts should be in the head of the page and in the proper order as required for their correct operation. That is unless a script is required to be elsewhere, in which case it should be included where required, also in the correct order as required. It's OK to include jQuery in that other script, as long as the order in which it falls works with other scripts requiring it, and its code is only linked to one time for any given page. But on the page in the iframe, it doesn't make much sense to use accordion, as it doesn't appear to be required on that page.
Now, the code I gave would go on the top page after jQuery and visuallightbox, but will do no good unless the imported pages requiring visuallightbox are imported via AJAX, not iframe. Even then, a slight modification to it and/or to visuallightbox.js may also be needed.
Bookmarks