Change:
Code:
<script type="text/javascript" src="ajax.js"></script>
to:
Code:
<script type="text/javascript" src="ajax.js">
/***********************************************
* Dynamic Ajax Content- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
Get rid of the loadobjs calls (remove the highlighted):
Code:
<a href="javascript:ajaxpage('gallery.html','contentarea'); loadobjs('galleria/galleria-1.2.8.min.js','galleria.js')"><img src="img/index_14.gif"></a>
and put external script tags for /galleria/themes/classic/galleria.classic.min.js and galleria.js directly on the 'top' page after the external script for jQuery (add highlighted):
Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<script type="text/javascript" src="galleria/galleria-1.2.8.min.js"></script>
<script type="text/javascript" src="galleria.js"></script>
</head>
<body>
<div cla . . .
Edit galleria.js, get rid of the highlighted:
Code:
// JavaScript Document
Galleria.loadTheme('galleria/themes/classic/galleria.classic.min.js');
Galleria.run('#galleria');
In the ajax.js file replace:
Code:
function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
document.getElementById(containerid).innerHTML=page_request.responseText
}
with:
Code:
function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)){
document.getElementById(containerid).innerHTML=page_request.responseText;
if(document.getElementById('galleria')){
Galleria.run('#galleria');
}
}
}
There could still be a problem though because your hosting company adds their own version of jQuery to the page for tracking purposes. This is irresponsible as it overwrites your copy (the one from Google actually) and could potentially mess up any scripts that use your copy.
If that happens we can try adding:
Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<script type="text/javascript" src="galleria/galleria-1.2.8.min.js"></script>
<script type="text/javascript" src="galleria.js"></script>
<script type="text/javascript">
jQuery.noConflict();
</script>
</head>
<body>
<div cla . . .
The browser cache may need to be cleared and/or the page refreshed to see changes.
There's still a chance this may not work because of that host added script. If so you will either have to turn off their popup and possibly their stat counter as well in order to get it to work. Or use an iframe.
Bookmarks