I'm sorry about posting this again, but as I said I'm on a deadline, and I'm sure there's someone out there that can help me...

I am using a dhtml "Image Slideshow", and I was really happy with I customized its layout to my needs, and it runs perfectly on FF and on IE (wich is very important for me, since in my country most of people still use IE). Check it here

However, when I insert the slideshow in my design, it stops working on IE (working in perfection on FF):
Please check it here

I am using the original slideshow file in an iframe...

(before I tryed to paste the code directly into the page, but it didn't worked, so I thought using an iframe would work, because the code of the original document would be intact)

Any sugestions on how to solve this problem??

Please do help me figure out this...

Thank SO you much,


I took a look and it looks like you've solved it?

Ok, I'm very excited... I found where the problem is, BUT i really need your expertees help to solve it!

I copyed the root folder of my site, into a "test" folder, so that I could do experiments without messing with the original files. However I totally forgot to add the folder "Scripts", wich Dreamweaver generates when we insert a flash file into our html document.

...and without that "Scripts" folder, the slideshow works!! (however, of course, every single flash I have on that site stops working)

So now we know that somehow the "AC_RunActiveContent.js" script (that is in folder "Scripts" in the root of the site), messes up with the "image-slideshow.js" script (that is in the folder "js" located at html/js) - but only when those scripts are in use at the same hmtl page, because the slideshow just doesn't work inside the iframe (on IE only as far as I know)

That said, is there any change anyone will help me now?... Please??

Thank you so much,


Can anyone please tell if there's a workaround for this?

Here is the code for both scripts:


//Copyright 2006 Adobe Systems, Inc. All rights reserved.
function AC_AddExtension(src, ext)
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
    return src + ext;

function AC_Generateobj(objAttrs, params, embedAttrs) 
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';


function AC_FL_RunContent(){
  var ret = 
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);

function AC_SW_RunContent(){
  var ret = 
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;


	Copyright (c) 2005 - Alf Magne Kalleland [email]post@dhtmlgoodies.com[/email]
	March, 10th, 2006 : Added support for a message while large image is loading
	Get this and other scripts at [url]www.dhtmlgoodies.com[/url]
	You can use this script freely as long as this copyright message is kept intact.
	var displayWaitMessage=true;	// Display a please wait message while images are loading?
	var activeImage = false;
	var imageGalleryLeftPos = false;
	var imageGalleryWidth = false;
	var imageGalleryObj = false;
	var maxGalleryXPos = false;
	var slideSpeed = 0;
	var imageGalleryCaptions = new Array();
	function startSlide(e)
		if(document.all)e = event;
		var id = this.id;
		this.getElementsByTagName('IMG')[0].src = 'images/' + this.id + '_over.gif';	
			slideSpeedMultiply = Math.floor((e.clientX - this.offsetLeft) / 5);
			slideSpeed = -1*slideSpeedMultiply;
			slideSpeed = Math.max(-10,slideSpeed);
			slideSpeedMultiply = 10 - Math.floor((e.clientX - this.offsetLeft) / 5);
			slideSpeed = 1*slideSpeedMultiply;
			slideSpeed = Math.min(10,slideSpeed);
	function releaseSlide()
		var id = this.id;
		this.getElementsByTagName('IMG')[0].src = 'images/' + this.id + '.gif';
	function gallerySlide()
			var leftPos = imageGalleryObj.offsetLeft;
			leftPos = leftPos/1 + slideSpeed;
				leftPos = maxGalleryXPos;
				slideSpeed = 0;
				leftPos = minGalleryXPos;
			imageGalleryObj.style.left = leftPos + 'px';
	function showImage()
			activeImage.style.filter = 'alpha(opacity=50)';	
			activeImage.style.opacity = 0.5;
		this.style.filter = 'alpha(opacity=100)';
		this.style.opacity = 1;	
		activeImage = this;	
	function initSlideShow()
		document.getElementById('arrow_left').onmousemove = startSlide;
		document.getElementById('arrow_left').onmouseout = releaseSlide;
		document.getElementById('arrow_right').onmousemove = startSlide;
		document.getElementById('arrow_right').onmouseout = releaseSlide;
		imageGalleryObj = document.getElementById('theImages');
		imageGalleryLeftPos = imageGalleryObj.offsetLeft;
		imageGalleryWidth = document.getElementById('galleryContainer').offsetWidth - 80;
		maxGalleryXPos = imageGalleryObj.offsetLeft; 
		minGalleryXPos = imageGalleryWidth - document.getElementById('slideEnd').offsetLeft;
		var slideshowImages = imageGalleryObj.getElementsByTagName('IMG');
		for(var no=0;no<slideshowImages.length;no++){
			slideshowImages[no].onmouseover = showImage;
		var divs = imageGalleryObj.getElementsByTagName('DIV');
		for(var no=0;no<divs.length;no++){
			if(divs[no].className=='imageCaption')imageGalleryCaptions[imageGalleryCaptions.length] = divs[no].innerHTML;
	function showPreview(imagePath,imageIndex){
		var subImages = document.getElementById('previewPane').getElementsByTagName('IMG');
			var img = document.createElement('IMG');
		}else img = subImages[0];
		img.onload = function() { hideWaitMessageAndShowCaption(imageIndex-1); };
		img.src = imagePath;
	function hideWaitMessageAndShowCaption(imageIndex)
		document.getElementById('largeImageCaption').innerHTML = imageGalleryCaptions[imageIndex];
	window.onload = initSlideShow;

Okay, first the reason I thought you'd solved it is because I had no probs viewing both links using ie8.

Looking at the code above, there seem to be no naming conflicts. It could be that
1. Your flash script is changing the relative path of the page
2. Your browser stops processing scripts when an error is encountered (the error might be in either script).

I'd suggest you use a debugging technique such as below:

function globalError() {
            // build your error string
            var foo="\r\n" + arguments[0] + " in " + arguments[1] + " at line " + arguments[2];      
	// display your error string (change to document.write if you don't like the popups. 
	// stick this at the top of your page somewhere.
        window.onerror = globalError;