Window Auto Expand

1 Feb

<SCRIPT LANGUAGE=”JavaScript”>
function expandingWindow(website) {
var heightspeed = 2; // vertical scrolling speed (higher = slower)
var widthspeed = 7; // horizontal scrolling speed (higher = slower)
var leftdist = 350; // distance to left edge of window
var topdist = 100; // distance to top edge of window

if (document.all) {
var winwidth = window.screen.availWidth – leftdist;
var winwidth = window.screen.availWidth – leftdist;

var winheight = window.screen.availHeight – topdist;
var sizer = window.open(“”,””,”left=” + leftdist + “,top=” + topdist + “,width=1,height=1,scrollbars=yes”);
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed) {
sizer.resizeTo(“1″, sizeheight);
}
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed) {
sizer.resizeTo(sizewidth, sizeheight);
}
sizer.location = website
}
else
window.location = website
}

// End –>
</script>

<a onclick=”expandingWindow(‘specialisation.asp?Industry=Software Development and Implementation’)”><U>Software Development and Implementation</U></a><br>

Demo:
window-auto-expand.txt

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: