Shadowbox + Greybox Vs Flash
Olá,
Sorry pour mon français, je ne suis pas francophone.
Je suis depuis des heures et des heures pour résoudre un problème sans avoir arrivée et peut-être que le forum pourra me donner un coup de main, merci d’avance !
Avec « Shadowbox » lors qu’une iframe (une webcam) est appelée par un bouton flash (As2) d’un movieclip cette iframe ne laisse aucune transparence au movieclip, click!
Le même problème est avec la « Greybox », click! ... par contre si cette iframe est appelé par une image tout fonctionne à merveilles, click!
Certainement que je suis le fautive, mais où est ma gaffe ???
SHADOWBOX - FLASH
As2 du bouton :
Code:
1 2 3 4
| on (release) {
getURL("javascript:openShadowbox('http://www.bruxelles.be/webcamgrandplace/webcamproxy2.swf','iframe','382','286')", "_self");
} |
Extrait source de la page :
<!-- SHADOWBOX
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| <link rel="stylesheet" type="text/css" href="http://www.ronstclair.com/shbox/shadowbox.css">
<script type="text/javascript" src="http://www.ronstclair.com/shbox/shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({
overlayColor: '#000',
overlayOpacity: '0.5',
language: 'fr',
players: ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv']
});
</script>
<script type="text/javascript">
function openShadowbox(content, player, width, height ){
Shadowbox.open({
content: content,
player: player,
width: width,
height: height
});
}
</script>
</head> |
<!-- FLASH
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
| <div>
<object id="shbox" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="480">
<param name="movie" value="shbox.swf" />
<param name="quality" value="best" />
<param name="wmode" value="transparent" />
<param name="allowscriptaccess" value="sameDomain" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="shbox.swf" width="640" height="480">
<param name="quality" value="best" />
<param name="wmode" value="transparent" />
<param name="allowscriptaccess" value="sameDomain"/>
<!--<![endif]--> |
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
GREYBOX - FLASH
As2 du bouton :
Code:
1 2 3 4
| on (release)
{
getURL("javascript:openBox('http://www.bruxelles.be/webcamgrandplace/webcamproxy2.swf')", "_self");
} |
Extrait source de la page :
<!-- GREYBOX
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| <script type="text/javascript">
var GB_ROOT_DIR = "http://www.ronstclair.com/gb/";
</script>
<script type="text/javascript" src="gb/AJS.js"></script>
<script type="text/javascript" src="gb/AJS_fx.js"></script>
<script type="text/javascript" src="gb/gb_scripts.js"></script>
<link href="gb/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript">
function openBox() {
GB_showCenter('DarDar','http://www.bruxelles.be/webcamgrandplace/webcamproxy2.swf',286,382);
}
</script> |
<!-- FLASH
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| <div>
<object id="btgb" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="480">
<param name="movie" value="btgb.swf" />
<param name="quality" value="best" />
<param name="wmode" value="transparent" />
<param name="allowscriptaccess" value="always" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="btgb.swf" width="640" height="480">
<param name="quality" value="best" />
<param name="wmode" value="transparent" />
<param name="allowscriptaccess" value="always" />
<!--<![endif]--> |
------------------------------------------------------------------------
GREYBOX - IMAGE ( No Problem !!! )
Code:
1 2 3 4 5
| <div id="btgbimg">
<a href="http://www.bruxelles.be/webcamgrandplace/webcamproxy2.swf" rel="gb_page_center[382, 286]" title="DarDar">
<img src="http://www.ronstclair.com/btgbimg.jpg"/>
</a>
</div> |
Solution avec Lightwindow mais...
Merci Jean Philipe pour l'intervention mais avec "_blank" j'ai ne qu'une nouvelle page bien "blanche" comme la
pleine lune (lol!).
Bien, no problem car j'ai trouvé la solution avec Lightwindow, ouf!!! (voir) mais il
me reste un tout petit problème à résoudre (voir) stp.
Voici donc ma petite formule (simple comme un bonjour!) , si quelqu'un en à une autre plus performante je suis
preneur !!!
AS2 du bouton :
Code:
1 2 3 4
| on (release)
{
getURL("javascript:openLightWindow('xxx','external','xxx','xxx','xxx')", "_self");
} |
HTML :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| <link rel="stylesheet" href="/lightwindow/css/lightwindow.css" type="text/css" media="screen" />
<script src="/lightwindow/javascript/prototype.js" type="text/javascript"></script>
<script src="/lightwindow/javascript/effects.js" type="text/javascript"></script>
<script src="/javascript/scriptaculous.js?load=effects" type="text/javascript"></script>
<script src="/lightwindow/javascript/lightwindow.js" type="text/javascript"></script>
<script type="text/javascript">
function openLightWindow(href,type, title, height, width) {
myLightWindow.activateWindow({
"href": href,
"type": type,
"title": title,
"height": height,
"width": width
});
}
</script> |