Ajax Rotating Includes Script appears to have an omission in its coding. The demo page lays out a means by which multiple rotating includes may appear on one page. However, if the instructions are followed and one of the defined file arrays is:
var includefiles=
as more or less suggested, that is the only array that will be used for any and all rotating includes on that page. It may even be so bad as - if that array is not present, there will be no defined files. I don't know about that bit, I haven't tested it. If the ajaxinclude function is added to (addition red):
This takes care of the problem. See this thread.Code:function ajaxinclude(files_array, rotatetype){ includefiles=files_array; var page_request = false if (window.XMLHttpRequest) // if Mozilla, Safari etc page_request = new XMLHttpRequest() else if (window.ActiveXObject){ // if IE try { . . .



Reply With Quote

Bookmarks