How do I make window pop-up in specific position.. Please Help Me!!
  • First thing.. I LOVE this script.. Thank You! Please Help.. I'm having a nightmare trying to figure this out.. I've tried just about everything..

    I have inserted the code from the Quicktime Video demo code exactly as instructed.. and it works perfectly.. but how do I get the window to pop up somewhere else other then exact center position?

    I simply want to be able to have the Video's pop up in a different position in the screen... Right now.. when I click a thumbnail.. it ALWAYs pops up the video in the center of the screen...

    Is It Possible for me to modify this so it will pop up in a specific position of my web page? Any Help would be GREATLY appreciated..
  • I'm trying to find this out also. I've been through the CSS but I'm presuming it's set in the JS file but I can't find the centering function.
  • you can change the top position:
    in the JS file change "projectedTop" value in 2 places _showContent() and _centerOverlay() : (ex for higher position - 100px)



    * Set the proper sizes on the containers and animate the content in.
    */
    _showContent = function(){
    $('.pp_loaderIcon').hide();

    // Calculate the opened top position of the pic holder
    projectedTop = scrollPos['scrollTop'] + ((windowHeight/2) - (correctSizes['containerHeight']/2)) - 100;



    -----------------------------------------------------------------------------------



    function _centerOverlay(){
    if(doresize) {
    titleHeight = $ppt.height();
    contentHeight = $pp_pic_holder.height();
    contentwidth = $pp_pic_holder.width();

    projectedTop = (windowHeight/2) + scrollPos['scrollTop'] - ((contentHeight+titleHeight)/2) - 100;
  • normal pos of iframe is center center (calc in the methods above)

    for me this default behaviour worked 90% of time


    the rest of time i just CSS styled it with something like div.pp_pic_holder { top: 100px !important; }
    so you dont have to change the JS
  • Thanks tesler, worked for me.....

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!