View Full Version : Flash in the z-index layer?
manga101
10-07-2002, 11:24 PM
have u guys enter a website and all of a sudden see a car races across the screen, or a cartoon play ontop of the index.html?
i know its flash cuz i right click it.and it saids flash player..etc....
after its animation.. it closes itself...
i tried looking at the source code on that page..but cant find it..
anyone know how it is achieved?
DHTML? JS?
chrismiceli
10-07-2002, 11:41 PM
i don't know flash but they could put the flash code in another window and do something like this
body onLoad="test()"
function test() {
window.open("flashsourcesite.com", "flash" "border=0, toolbar=no, scrollbars=no, location=no, menubar=no");
and on the flashsourcesite.com page you put this in the
body onLoad="test0(){
setTimeout("this.close", 39000); //time of flash animation
}
manga101
10-08-2002, 12:20 AM
could it be at random??
cuz there is no onLoad on the body tag... and the flash is different several times..
thinkt they might do some random somewhere..
manga101
10-08-2002, 12:20 AM
yahoo.com use to do this..but now they took it off..
nevub
10-08-2002, 12:51 AM
The animations you speak of are just the Flash OBJECT tag wrapped in a DIV. Inside of the object tag you set <param name="wmode" value="transparent" /> which causes the flash movie to be transparent allowing you to see and interact with the HTML underneath it. This is only possible in IE.
After the animation has played, a function is called from Flash to hide the DIV.
manga101
10-08-2002, 12:58 AM
ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
ok
cool
Roy Sinclair
10-08-2002, 02:30 PM
Originally posted by manga101
ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
ok
cool
Not cool at all, it was advertisements like that which caused me to remove the Flash player from my system. I don't need that kind of annoying distraction when I'm surfing.
manga101
10-08-2002, 06:30 PM
ya its annoying..
but i just wanted to know how they did it from a coding perspective..
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.