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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Dec 2002
    Posts
    109
    Thanks
    0
    Thanked 0 Times in 0 Posts

    transparent oPopup?

    is it possible to make a transparent oPopup window? It always comes up white when i tell it to be transparent. Anyway... that, to me SCREAMS 'impossible,' but i figured i would ask just in case.

    a visual

    Code:
    <HTML xmlns:t ="urn:schemas-microsoft-com:time">
    <?IMPORT namespace="t" implementation="#default#time2"?>
    <HEAD>
    <style>
    .time{behavior: url(#default#time2)}
    </style>
    <SCRIPT LANGUAGE="JScript">
    
    var oPopup = window.createPopup();
    function SplashScreen()
    {
        var oPopBody = oPopup.document.body;
        var w = 236; 
        var h = 249;
        var x = (screen.width - w) / 2; 
        var y = (screen.height - h) / 2; 
    	oPopBody.style.backgroundColor = "transparent";
        oPopBody.innerHTML = "<img src='http://www.technosquid.com/externaljunk/partlytranssample.gif'>";
        oPopup.show(x, y, w, h);
    }
    </SCRIPT>
    </HEAD>
    <BODY bgcolor="blue" onload="SplashScreen()">
    <t:animate dur="10" onend="oPopup.hide();"/>
    </BODY>
    </HTML>

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    no you can't - it's a window.

  • #3
    Regular Coder
    Join Date
    Aug 2002
    Location
    IN, USA
    Posts
    121
    Thanks
    0
    Thanked 0 Times in 0 Posts
    When a popup is created, it is created from part of the OS's UI. Since it is basically just another 'right click' type menu, it is not possible. If that were possible, then Im sure there would be scripts for 'fading right click menus' readily available.

    In a nutshell, no, you cant (using any scripting language).
    Just call me Crash...
    "Crash- and BURN!"
    -Cereal Killer

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Not sure what the oPopup is, but you can achieve the same effect easier with DOM...
    Code:
    <style>
    .splash
    { position: absolute;
       background: transparent;
       background-image: url("yourimage.gif");
       height: 300px;
       width: 500px;
    }
    </style>
    <script>
    var splash = null;
    function makesplash()
    { splash = document.createElement('div');
       splash.className = 'splash';
       with(splash.style)
         { top = // your positioning
            left = // code here
         }
       document.body.appendChild(splash);
       setTimeout("removeSplash()",5000);
    }
    function removeSplash()
    { document.body.removeChild(splash);
    }
    </script>
    Last edited by Vladdy; 01-16-2003 at 05:37 PM.
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing 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
    •