Voilà ce que je voudrais faire un popup qui s'ouvre mais transparent pour faire un pub popup
par exemple comme ici -> http://www.wanadooregie.com/en_nature/e ... pping.html
(attention ici ce n'est qu'un screenshot donc c'est un peu different mais cela donne une bonne idée du truc)
Le truc c'est que j'arrive à faire le tranparent voici un exemple de code :
Code: Select all
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="630" height="550">
<param name=movie value="test.swf">
<!-- parametre de transparence !!!! --->
<param name="wmode" value="transparent">
<param name=quality value=high>
<embed src="test.swf" quality=high wmode=transparent pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="630" height="550">
</embed>
</object>
mais je sais pas lancer le fichier par dessus ou alors il ne faut pas faire de popup ?
Peut être un simple code suffit ?
Le soucis c'est qu'en mettant le code en veritable popup dhtml le flash n'est plus tranparent.
Code: Select all
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript1.2">
var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var bouncelimit=32
var direction="up"
function initbox(){
if (!dom&&!ie&&!ns4)
return
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
scroll_top=(ie)? document.body.scrollTop : window.pageYOffset
crossobj.top=scroll_top-250
crossobj.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropin()",50)
}
function dropin(){
scroll_top=(ie)? document.body.scrollTop : window.pageYOffset
if (parseInt(crossobj.top)<100+scroll_top)
crossobj.top=parseInt(crossobj.top)+40
else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",50)
}
}
function bouncein(){
crossobj.top=parseInt(crossobj.top)-bouncelimit
if (bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if (bouncelimit==0){
clearInterval(bouncestart)
}
}
function dismissbox(){
if (window.bouncestart) clearInterval(bouncestart)
crossobj.visibility="hidden"
}
window.onload=initbox
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="dropin" style="position:absolute;visibility:hidden;left:250;top:100;width:255;height:255;background-color:#F5F5F5">
<div align="center"><a href="#" onClick="dismissbox();return false">[Fermer] </a></div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="630" height="550">
<param name=movie value="test.swf">
<!-- parametre de transparence !!!! --->
<param name="wmode" value="transparent">
<param name=quality value=high>
<embed src="test.swf" quality=high wmode=transparent pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="630" height="550">
</embed>
</object>
</div>
</body>
</html>
Bon vous avez des idées elles sont les bienvenues. :chinois: