PDA

View Full Version : Help with flash slideshow and java script


VisualXpressions
Jan-03-2008, 02:11 PM
I installed the new slideshow and removed the old one twice... nothing is working none of the javascript seems to be working on my site?

any help would be greatly appriciated

Winston

Allen
Jan-03-2008, 02:29 PM
I installed the new slideshow and removed the old one twice... nothing is working none of the javascript seems to be working on my site?

any help would be greatly appriciated

Winston
The problem is in the javascript, try replacing it with this.


function createSWF( w, h, params) {
var args = "";
for (var i in params) {
args += i + "=" + params[i] + "&";
}
document.writeln('<object width="100%" height="100%" align="middle">'+'<param name="movie" value="http://www.smugmug.com/ria/ShizamSlides-2007091201.swf?'+args+'"/>'+'<param name="wmode" value="transparent" />'+'<embed src="http://www.smugmug.com/ria/ShizamSlides-2007091201.swf?'+args+'" wmode="transparent" width="' + w + '" height="' + h + '" type="application/x-shockwave-flash" allowScriptAccess="always" allowNetworking="all"/></object>');
return 1;
}

VisualXpressions
Jan-03-2008, 02:53 PM
Thanks Allen... it didn't work, none of my javascript commands are working? :scratch I have one for a mirror front page, one to move the photo info box down instead of over the picture, and one to link the referal cupon to the smugmug link... I don't think any of them are working... the nav button to the mirror home page is "new or updated" and it is suposed to show all of the gallery boxes...

Winston

Allen
Jan-03-2008, 03:22 PM
Thanks Allen... it didn't work, none of my javascript commands are working? :scratch I have one for a mirror front page, one to move the photo info box down instead of over the picture, and one to link the referal cupon to the smugmug link... I don't think any of them are working... the nav button to the mirror home page is "new or updated" and it is suposed to show all of the gallery boxes...

Winston
You have a closing } where an opening { should be. Fix that and see if
things start working.

function hasPath(sPath)
}
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

VisualXpressions
Jan-03-2008, 03:37 PM
You have a closing } where an opening { should be. Fix that and see if
things start working.

function hasPath(sPath)
}
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

Amazing how something so simple could screw up the whole works:D I must have turned that around when I was putting it back in the javascript box... I initially removed most everything thinking it was part of the old slideshow...:rofl

anyway, thanks so much, Allen for your help!

Winston