Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PowerPoint Pop-ups Override Scrollbar Settings

    Here's what surely must be an obsure JavaScript issue. I have a new website with several pop-up windows that launch PowerPoint slideshows within them. I have scrollbars=0 in my javascript, but the windows never-the-less open with an unwanted scrollbar on the right hand side. It seems to somehow be related to PowerPoint, as the pop-up windows on the same page that don't launch PowerPoint don't have this issue.

    Does anyone have any suggestions as to how to solve this problem? It may seem minor, but in fact the scrollbars make some weird glitches accessible to the visitors that wouldn't be otherwise.

    The url is http://www.newyorkmultimedia.com/presentation. There are four rollovers on the right hand side that open pop-up windows that demonstrate the issue. The first and fourth pop-ups launch PowerPoint (the fourth pop-up also reveals the unwanted glitch--PowerPoint sideshows with animations create an extra "junk slide" ahead of the opening slide that becomes accessible to visitors because of the unwanted scrollbar).

    Thanks very much to anyone who can help.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Why do you have a function that does the same exact thing repeated 10 times? Just pass the proper variables to the function. You only need one function not 10
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <script type="text/javascript">
    //<![CDATA[
    function newWindow(wid,hgt,file)
    {	
    	x = (screen.width - wid) / 2 
    	y = (screen.height - hgt) / 2
    	newWin = window.open(file,"newWin",'width='+wid+',height='+hgt+',left='+x+',top='+y+',scrollbars=0,menubar=0,toolbars=0') 
    }
    //]]>
    </script>
    </head>
    
    <body>
    <a href="../presentation/ppBahLightH.ppt" onclick="newWindow('760','557',this.href);return false" id="ppBhRoll"></a><br />
    <a href="../presentation/ppBw.html" onclick="newWindow('760','570',this.href);return false" id="ppBwRoll"></a><br />
    <a href="../presentation/ppPn.html" onclick="newWindow('760','570',this.href);return false" id="ppPnRoll"></a><br />
    <a href="../presentation/ppIm.ppt" onclick="newWindow('760','557',this.href);return false" id="ppImRoll"></a>
    </body>
    </html>
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •