OK, you threw me a little there at first. The link you gave me was to a frameset, the actual page is:
http://edu.apple.pl/zsliz_karolewo/test/index.html
The problem is just as I suspected, js/bgsleight.js is already loaded on that page, it doesn't need to be loaded again, and loading it again will do nothing, at least nothing good. And we need to be sure that the css is loaded first. So, to start, change your link for the Aktualnosci button to:
Code:
<a href="javascript:loadobjs('css/glowne_style.css'); ajaxpage('budowa.html', 'okno_wlasciwe');">Aktualnosci</a>
Now all we need to do is look in the script for Dynamic Ajax Content (/js/DAC.js) to see where we need to run the function alphaBackgrounds() from
the js/bgsleight.js script. I vote for here:
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
}
Find the above in /js/DAC.js and change it to:
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 (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent)
alphaBackgrounds();
}
}
That should do it. Except if there is a problem in running alphaBackgrounds() in IE every time you call the ajaxpage() function. If so, more work needs to be done.
There is one other matter, on:
http://edu.apple.pl/zsliz_karolewo/test/index.html
where you have:
Code:
<script language="javascript" src="js/DAC.js"></script>
To follow the terms of use at DD, it should read:
Code:
<script language="javascript" src="js/DAC.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>
Bookmarks