GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Can someone post the JS code or html code "resize to fit screen" (https://gfy.com/showthread.php?t=461371)

KMR Stitch 04-28-2005 06:29 PM

Can someone post the JS code or html code "resize to fit screen"
 
It's basicly if a surfer is 800x600 resoultion it will resize for him

If a surfer has 1200x1200 it will work will for him also

JSA Matt 04-28-2005 06:31 PM

code below works better;)

someone please post that 'google - do you use it' pic :winkwink:

Dirty Dane 04-28-2005 06:31 PM

Code:

<script language="JavaScript1.2">
<!--
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>


KMR Stitch 04-28-2005 06:33 PM

Quote:

Originally Posted by JSA Matt
code below works better;)

someone please post that 'google - do you use it' pic :winkwink:


Ive searched google and I got a lot of weird pages

JSA Matt 04-28-2005 06:34 PM

Quote:

Originally Posted by KMR Stitch
Ive searched google and I got a lot of weird pages

http://www.google.com/search?hl=en&q...er+resize+code

first link...

swedguy 04-28-2005 06:34 PM

Quote:

Originally Posted by KMR Stitch
Ive searched google and I got a lot of weird pages

Result #1 gave me what you were looking for.

KMR Stitch 04-28-2005 06:40 PM

Quote:

Originally Posted by Dirty Dane
Code:

<script language="JavaScript1.2">
<!--
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>



Thanks,
I seem to get an error though?

Dirty Dane 04-28-2005 06:42 PM

Quote:

Originally Posted by KMR Stitch
Thanks,
I seem to get an error though?

Put it in head section. Right below title tag

Furious_Male 04-28-2005 06:44 PM

I have been using this forever. Its old school but still appears to get the job done.

Code:

<script language="JavaScript">
self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight);
</script>


SmokeyTheBear 04-28-2005 06:54 PM

Quote:

Originally Posted by Furious_Male
I have been using this forever. Its old school but still appears to get the job done.

Code:

<script language="JavaScript">
self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight);
</script>


:thumbsup :thumbsup


All times are GMT -7. The time now is 08:56 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123