View Full Version : transparent oPopup?

01-16-2003, 01:31 AM
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 (http://www.technosquid.com/externaljunk/test.html)

<HTML xmlns:t ="urn:schemas-microsoft-com:time">
<?IMPORT namespace="t" implementation="#default#time2"?>
.time{behavior: url(#default#time2)}

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);
<BODY bgcolor="blue" onload="SplashScreen()">
<t:animate dur="10" onend="oPopup.hide();"/>

01-16-2003, 02:09 AM
no you can't - it's a window.

01-16-2003, 02:10 AM
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).

01-16-2003, 06:27 PM
Not sure what the oPopup is, but you can achieve the same effect easier with DOM...

{ position: absolute;
background: transparent;
background-image: url("yourimage.gif");
height: 300px;
width: 500px;
var splash = null;
function makesplash()
{ splash = document.createElement('div');
splash.className = 'splash';
{ top = // your positioning
left = // code here
function removeSplash()
{ document.body.removeChild(splash);

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum