Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: Looking for jscheuer1 (Mad Professor)

  1. #1
    Join Date
    Jan 2006
    Posts
    234
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Question Looking for jscheuer1 (Mad Professor)

    Hi John.

    I think you are the one person who can help me out here.
    If you could check out this here for me please:

    Link

    When you click the image in the middle of that page a flash popup opens.
    You did help me with this script before.
    Now after I fixed the dotted line around ActiveX content in IE I have this problem.
    The flash popup is not centered.
    I mean sometimes it is and sometimes it is not.
    Mostly it is not when the page is open in full window mode.
    Probably got something to do with the starfield background java script I think but I'm not sure.
    Could you please have a look at the script and help me to fix it so the popup will be always centered.

    Thank you so much in advance.
    Cheng

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    This question is a lot different than the other one(s) you have asked...

    Which one is you want the answer for?
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Jan 2006
    Posts
    234
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Hi BLIZZaRD.

    Thanks for your reply again.
    Yes it is different as I'm trying a few different things right now.
    Until I'm not able to replace the SWF files by GIF images, I need the flash poupups to work properly.
    Right now they are sometimes centered and sometimes not.
    Most of the time when they are not centered it helps to refresh the page with ctrl+F5 and then they are centered.
    There is probably a conflict somewhere.
    Are you able to fix this?
    Would be great if you could.
    I addressed jscheuer1 because he definitly can do this.
    But if you can help instead I would very much appreciated as well.

    Thanks again.
    Cheng

  4. #4
    Join Date
    Jan 2006
    Posts
    234
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    In addition to the post above I must say that when I open the page in 1024/768 there is mostly no problem but when I open full screen in 1440/900 then the popup is out of place.

  5. #5
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Okay, I think I fully understand you now.

    Your problem is a common one with centering elements, and is a constant battle with designers. There is no simple answer, because of differences in browsers, screen resolutions, Monitor sizes, etc etc etc

    However, I believe your answer lies in CSS. I know there was a thread in the CSS forum here about a fix for browser centering compatability.

    Run a search for it. I will look also, and if I find it I will link to it for you.


    <edit>
    After a quick search I couldn't find the exact thread I was speaking of, but one of these may help, have a look:

    http://www.dynamicdrive.com/forums/s...ead.php?t=9202

    http://www.dynamicdrive.com/forums/s...ead.php?t=6648

    http://www.dynamicdrive.com/forums/s...ead.php?t=4735
    Last edited by BLiZZaRD; 07-08-2006 at 11:58 AM.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  6. #6
    Join Date
    Jan 2006
    Posts
    234
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Hi BLIZZaRD.

    Thanks again but this is way to heavy for me.
    I'm not a webdesigner and I'm not familiar with CSS as well.
    The popups were working fine before I fixed the dotted line around the flash content.
    I really appreciate your help but I need someone to point out the right script for me or at least tell me exactly where and what to fix.
    Otherwise I'm lost.
    That's why I was asking in the 1st place on how to do the same popups with GIF images instead of flash popups.
    It is possible as I have seen it many times.
    If I could find a tutorial on that I probably could manage but I can't find one.

    Thanks again very much.
    Cheng

  7. #7
    Join Date
    Jan 2006
    Posts
    234
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Exclamation I found the conflict.

    Hi.

    I think I found the conflict.
    As I thought it is about the fix for the dotted Line in IE that I think causes the problem.
    Maybe you have an idea how to fix the conflict.
    The javascript file that causes this is attached and this is the script inside the html page below the last object on that page:

    <script type="text/javascript" src="ieupdate.js"></script>
    I think for someone who knows what he is doing it's just a small modification.

    Here again the link where the popup is not always centerd because of the javascript:

    Link:

    Hope someone can help.

    Thanks in advance.
    Cheng

  8. #8
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Eh, sorry buddy I am no more help. I have looked at this every way I know how and the pop up always shows up centered to me. I have tested in FireFox (1.0.6 and 1.5.2) IE5, IE6, and Konquerer.

    The image always shows up in the same place. I even checked on a 14 inch CRT monitor, a 14" LCD, 15" LCD and a 21" LCD all at 800X600 as well as 1024X768

    The image was always centered for me. Besides the source code being confusing and messy as hell, I didn't notice anything out of the ordinary

    Perhaps a screen shot of when it is off center and one when it is centered so I can see what you are seeing?

    Other than that I don't know what to tell you.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  9. #9
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Looking again, you centerpopup function looks like this:
    Code:
    function centerPopUp(){
    var w=window.innerWidth? window.innerWidth : document.body.clientWidth
    document.getElementById('flashDiv').style.left=(w-document.getElementById('popup').width)/2+'px'
    }
    
    onresize=function(){centerPopUp();jsStarFieldBG_onResize();}
    Instead of doing all that, you can get rid of the flash pop up and use a gif like you wanted. just use this for the "on click" action of the pic on the page:

    Code:
    <script language="JavaScript">
    function openNewWindow(URLtoOpen,windowName,height,width)
    {
    windowFeatures ="menubar=no,scrollbars=no,location=yes,favorites=no,resizable=no,status=no,toolbar=no,directories=no";
    var test = "'";
    winLeft = (screen.width-width)/2;
    winTop = (screen.height-(height+110))/2;
    myWin= open(URLtoOpen,windowName,"width=" + width +",height=" + height + ",left=" + winLeft + ",top=" + winTop + test + windowFeatures + test);
    myWin.document.open();
    myWin.document.close();
    }
    </script>
    
    </head><p><img src="images/this.jpg" onclick="openNewWindow('http://www.wwwhiz.com/lazy_programmer/index.html','windowname',400,400)">
    Changing the addresses to your gif image of course.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  10. #10
    Join Date
    Jan 2006
    Posts
    234
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Hi BLIZZaRD.

    The script you gave for the GIF images is not what I want but still thanks.
    I got now what I was looking for.
    The GIF popups should look like this:

    Link

    At least I want them that way.
    Still it would be nice if somehow the conflict from that external javascript could be fixed.
    Attached are 2 screenshots from when the flash popup is centered and when it is not.
    This conflict will be only in IE6 I guess.

    I'm happy with GIF popups now.
    If you want the script let me know and I posted for you.

    Thanks again.
    Cheng

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
  •