Y T Nuke  
Results 1 to 5 of 5
Hey guys. Long time lurker here finally getting around to posting. Hi. Here's what I'm ...
  1. #1
    lllusion's Avatar
    lllusion is offline Newbies
    Join Date
    Feb 2010
    Posts
    4
    Reputation
    10
    Thanks
    1
    Thanked 2 Times in 1 Post

    Default Need Window Resizing Tips

    Hey guys. Long time lurker here finally getting around to posting. Hi.

    Here's what I'm trying to do:

    Pop up appears to user ---> user clicks ---> the presell page loads and it resizes to maximize in their window (not doing a _blank and throwing yet another window in their faces)

    I can make it resize to a specific dimension when they click it, but this is tricky because people have different resolutions and even if I do pick a good dimension, it's still gonna expand the window all funky and not be centered depending on where on the screen the original pop up came from.

    I've been using this code on the presell page for the time-being:

    Code:
    <script language="JavaScript">
    window.resizeTo(1200, 850)
      </script>
    But I need a better solution.

    Anybody up for explaining how we can all make our presells maximize correctly after the pop is clicked?

  2. #2
    webblackart is offline Newbies
    Join Date
    May 2009
    Posts
    49
    Reputation
    10
    Thanks
    0
    Thanked 8 Times in 6 Posts

    Default Re: Need Window Resizing Tips

    you use js why not read out the window properties before.
    search on google for "JavaScript tutorial - Window size and scrolling" it seams a bit tricky because not all browers use the same dom tree.

  3. #3
    GreyWolf's Avatar
    GreyWolf is offline Executive VIP
    Join Date
    Aug 2009
    Location
    sitting at my PC
    Age
    53
    Posts
    1,809
    Reputation
    881
    Thanks
    772
    Thanked 3,296 Times in 1,051 Posts

    Default Re: Need Window Resizing Tips

    Instead of giving specific diminsions you could do this.

    Code:
    <script>
    function maximize() {
      window.moveTo(0, 0);
      window.resizeTo(screen.width, screen.height);
    }
    maximize();
    </script>

  4. #4
    heavyt is offline Newbies
    Join Date
    Apr 2008
    Posts
    5
    Reputation
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Need Window Resizing Tips

    Quote Originally Posted by GreyWolf View Post
    Instead of giving specific diminsions you could do this.

    Code:
    <script>
    function maximize() {
      window.moveTo(0, 0);
      window.resizeTo(screen.width, screen.height);
    }
    maximize();
    </script>
    this is what I use

  5. #5
    u4icjaj is offline Newbies
    Join Date
    Nov 2010
    Posts
    25
    Reputation
    10
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Re: Need Window Resizing Tips

    do you put this code on the redirect page or on your lander that the user sees?

Natural Slow Link Building


SEO Blasts - High quality link building service

Similar Threads

  1. Replies: 147
    Last Post: 05-04-2012, 08:52 PM
  2. Replies: 140
    Last Post: 10-31-2011, 08:08 PM
  3. Replies: 119
    Last Post: 02-10-2011, 10:17 AM
  4. (Get) Publicityhound 2008 tips and tricks
    By Bugalugs in forum White Hat SEO
    Replies: 1
    Last Post: 01-15-2009, 01:03 AM
  5. Black Hat World - Tips and Tricks
    By PauloPT in forum BlackHat Lounge
    Replies: 3
    Last Post: 01-14-2009, 07:23 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  SEnukeX SEO Software
Proudly Powered by Hostwinds.com Web Hosting Click Here For Exclusive BHW Discounts!

Cheap Web Hosting


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76