Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Resizing popups in the following script

  1. #1
    Join Date
    Nov 2004
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Making popups open in same window (WAS: "Resizing popups ...")

    OK, first off, before I ask my question, let me just say ... What a site! After days of hunting around the Web for a script that would accomplish what I needed, I finally found it here at Dynamic Drive, and I imagine I'll be making some regular stops here from now on. Kudos to you guys for the great work.

    All right, so this was the one that did the trick: Blending Image Slideshow Script. Essentially, it allows you to rotate a sequence of images, each with its own specific pop-up link.

    I've been toying around with the script on my site, and all is working as promised. However, I'd now like to customize my popups:
    • Specify the size of the popup window (width and height)
    • Specify the screen position
    • Disable user resizing
    • Disable scrollbars, toolbars, etc.
    • Ensure that the popup links load into the same window, rather than creating a series of new windows.

    I know this is pretty basic stuff, and is fairly simple to apply to basic popup situations -- I just can't figure out where it should be applied in this particular script. I can't seem to get any of the parameters to work. Any guidance would be most welcome.

    Thanks so much!

    Don Keychain
    Last edited by keychain; 11-26-2004 at 09:27 PM.

  2. #2
    Join Date
    Nov 2004
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    OK...

    HELP! Getting desperate! Yeah, I know -- it's Thanksgiving Eve, and my post has been up less than 24 hours. But my site is ready to go live all but for this one little issue.

    Any quick guidance will be rewarded with ..... um ..... a reward! Yes, that's it -- a reward!

    Thanks

    Don

  3. #3
    Join Date
    Nov 2004
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    OK, I managed to figure out answers to a couple of my own questions.

    For specifiying the popup size and disabling scrollbars, this did the trick. The original script line ...

    window.open(slidelinks[whichlink])

    ... was tweaked to include the stuff in bold:

    window.open(slidelinks[whichlink],'','width=520,height=553')

    Now, I'll be all set if I can figure out how to enable these two properties:

    -- Make each link load into THE SAME POPUP WINDOW
    -- Randomize the whole slideshow in the first place


    Please -- I'm begging for help at this point! Please ... even purty please.

    Thanks,
    DK

  4. #4
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I seem to remember trying to randomize this script...

    *searches forums*

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  5. #5
    Join Date
    Nov 2004
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I searched the forums. Believe me -- I'm obviously desperate for a solution. But the only results that popped up were for Mysticode's two futile posts from this week.

    I tried "Blending Image" and "random," plus "randomize," "randomizes," "randomizing." Nothing. If you're telling me I'm missing some post from the past, the only hope left is that the poster was British... guess I'll go try variations on "randomise" now ...

  6. #6
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm British, but there are so many fine Americans online that I typo occasionally.

    edit: BitSpirit is eating all my bandwidth right now, I'll start work on the script if you bump this tomorrow.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  7. #7
    Join Date
    Nov 2004
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    All right, I've got a solution to the randomization question.

    To randomize the slideshow, change this line

    Code:
    whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
    to this:
    Code:
    whichimage=Math.floor( Math.random()*slideimages.length );
    To ensure that the slideshow starts with a different image each time, change these lines
    Code:
    var whichlink=0
    var whichimage=0
    to this:
    Code:
    var whichimage=Math.floor( Math.random()*slideimages.length );
    var whichlink=whichimage;
    OK, so that takes care of randomizing. Now, can anybody help me get the slideshow links to load into the same popup window????

    Danke schoen,
    Don Keychain

  8. #8
    Join Date
    Nov 2004
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    cr3ative,

    Looks like we crossed messages. As you can see, I got the random thing figured out. Getting links to open into the same single popup window would now be my final quest...

    Thanks!

  9. #9
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    *thinks*

    http://www.yourhtmlsource.com/javasc...upwindows.html

    Yarr, we need to implement this.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  10. #10
    Join Date
    Nov 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you keychain.

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
  •