Web Analytics Made Easy -
StatCounter Animated Window Opener Help - CodingForum

Announcement

Collapse
No announcement yet.

Animated Window Opener Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Animated Window Opener Help

    Just working on the script from Animated Window Opener and wondering how to make the window a different size.
    The default window size is the size of my whole screen and I don't know what numbers to change to make the window smaller.
    Any help is appreciated.

  • #2
    i'm no expert, but i'd try this bit first:

    function expandingWindow(website) {
    var windowprops='width=100,height=100 ,scrollbars=yes,status=yes,resizable=yes'
    var heightspeed = 2; // vertical scrolling speed (higher = slower)
    var widthspeed = 7; // horizontal scrolling speed (higher = slower)

    Comment


    • #3
      I tried to change that but cannot figure out what it changes. I set it to 0 and 1000 and nothing seemed to change on the pop up windows.

      Comment


      • #4
        hi,
        find this part of the code:

        if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
        var winwidth = window.screen.availWidth - leftdist;
        var winheight = window.screen.availHeight - topdist;


        let say if your final window size is 400px in width and 300px in height then instead of available width and height simply change the above line to this:

        if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
        var winwidth = 400
        var winheight = 300

        Comment


        • #5
          speedRacer,
          You got it. That was exactly the place to go and make changes.
          Thanks.

          Comment

          Working...
          X