![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: May 2006
Posts: 242
|
need auto-resize javascript code
I need a javascript code that auto-resizes my page to lets say 300x300 when they go to it. I tried looking on google but couldnt find anything.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
8.8.8.8
Industry Role:
Join Date: Mar 2006
Location: Noordermarkt
Posts: 30,509
|
you can take this and edit it
Code:
<script language="JavaScript"> <!-- START if (top.frames.length!=0) top.location=self.document.location; self.moveTo(0,0) self.resizeTo(screen.availWidth,screen.availHeight) // END --> </script>
__________________
TAEMDLRMSKRJIXMRLSMRJ. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: May 2006
Posts: 242
|
where do you put the width and height ?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: May 2006
Posts: 242
|
I tried both this:
<script language="JavaScript"> <!-- START if (top.frames.length!=0) top.location=self.document.location; self.moveTo(0,0) self.resizeto(300,300) // END --> </script> and this: <script language="JavaScript"> <!-- START if (top.frames.length!=0) top.location=self.document.location; self.moveTo(0,0) self.resizeto(300,300); // END --> </script> neither worked and gives me some javascript error. Do I need to add something to the body tag? |
![]() |
![]() ![]() ![]() ![]() ![]() |