...

View Full Version : transparent oPopup?



Shecky
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"?>
<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>

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

CRASH_OVERRIDE
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).

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


<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>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum