Here's a modified code for you. Tested in FF 2.0.0.2 on XP Home and Pro.
Code:
<SCRIPT language=JavaScript>
<!-- Begin
//Animated Window- By Rizwan Chand (rizwanchand@hotmail.com)
//Modified by DD for NS compatibility
//Visit http://www.dynamicdrive.com for this script
//Again Modified by DD member thetestingsite
function expandingWindow(website) {
var width = 400; //assign your desired width
var height = 650; //assign your desired height
var windowprops='scrollbars=yes,status=yes,resizable=yes'
var heightspeed = 2; // vertical scrolling speed (higher = slower)
var widthspeed = 7; // horizontal scrolling speed (higher = slower)
var leftdist = 10; // distance to left edge of window
var topdist = 10; // distance to top edge of window
if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
/*var winwidth = window.screen.availWidth - leftdist;
var winheight = window.screen.availHeight - topdist;*/
var sizer = window.open("","","width=100,height=100,left=" + leftdist + ",top=" + topdist +","+ windowprops);
for (sizeheight = 1; sizeheight < height; sizeheight += heightspeed)
sizer.resizeTo("1", sizeheight);
for (sizewidth = 1; sizewidth < width; sizewidth += widthspeed)
sizer.resizeTo(sizewidth, sizeheight);
sizer.location = website;
}
else
window.open(website,'mywindow');
}
// End -->
</SCRIPT>
Just place that in the head of your document and call the script like normal.
Hope this helps.
Bookmarks