View Full Version : Animated Window Opener II

06-03-2013, 01:26 AM
1) Script Title: Animated Window Opener II

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/animatedwin2.htm

3) Describe problem: With HTML5, when the script is launched, there seems to be either a lockup or system freeze requiring a restart on the Mac using the Safari browser, or so I am told. I have used this script for some time and like it. It tests well on Firefox, Chrome, and IE though the animation speed differs with the different browsers. One other note is that I have the "function" near the </body> tag instead of between the <head> tags, this being prefered in HTML5 for faster loading pages. Any help on the Mac Safari problem would be greatly appreciated. Thanks.

06-03-2013, 04:23 AM
Well, the script already opts out of Opera. We could have it opt out of Safari Mac as well. Change:

if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {


if (window.resizeTo&&!window.opera&&!(navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Mac")>-1)) {

The browser cache may need to be cleared and/or the page refreshed to see changes.

06-04-2013, 12:45 AM
Thanks John, I will make the script correction.