A voir également:
- Document.write et blog
- Blog - Guide
- Blog-o.com profil facebook - Guide
- Blog lines supprimer ✓ - Forum Mail
- Comment retrouver un blog ✓ - Forum Mail
- Retrouver un blog supprimé pix ✓ - Forum Réseaux sociaux
1 réponse
Voilà à quoi j'ai pensé, mais ça n'a pas l'air de fonctionner. Un petit debug ?
<script
var win=null;
function popup(mypage,myname,w,h,scroll,pos,video){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
win.document.write("<object type="application/x-shockwave-flash" data="../video/player.swf" width="320" height="240"><param name="movie" value="www.feeling-empty.com/empty/video/player.swf" /><param name="allowFullScreen" value="true" /><param name="FlashVars" value="flv=www.feeling-empty.com/empty/video/" + video + ".flv&autoload=1" /></object>");}
</script>
<script
var win=null;
function popup(mypage,myname,w,h,scroll,pos,video){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
win.document.write("<object type="application/x-shockwave-flash" data="../video/player.swf" width="320" height="240"><param name="movie" value="www.feeling-empty.com/empty/video/player.swf" /><param name="allowFullScreen" value="true" /><param name="FlashVars" value="flv=www.feeling-empty.com/empty/video/" + video + ".flv&autoload=1" /></object>");}
</script>