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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-21-2006, 09:29 PM   #1
bbc3826
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.
bbc3826 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2006, 09:30 PM   #2
madawgz
8.8.8.8
 
madawgz's Avatar
 
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.
madawgz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2006, 11:23 PM   #3
bbc3826
Confirmed User
 
Join Date: May 2006
Posts: 242
Quote:
Originally Posted by madawgz View Post
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>
where do you put the width and height ?
bbc3826 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2006, 11:32 PM   #4
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Quote:
Originally Posted by bbc3826 View Post
where do you put the width and height ?
self.resizeto(300,300);
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-28-2006, 06:50 PM   #5
bbc3826
Confirmed User
 
Join Date: May 2006
Posts: 242
Quote:
Originally Posted by SmokeyTheBear View Post
self.resizeto(300,300);
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?
bbc3826 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.