Не съм много0 на вътре с JS и направих нещо от сорта
ами след като съм задал всички параметри на функцията защо не ми се появява порозорец с фласш елемента който съм избрал???
помогнете за по бързия +1
Код:
var newwindow;
var wheight = 0, wwidth = 0;
function popimg(url, title, iwidth, iheight, colour) {
var pwidth, pheight;
if ( !newwindow || newwindow.closed ) {
pwidth=iwidth+30;
pheight=iheight+30;
newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top=50,left=10');
wheight=iheight;
wwidth=iwidth;
}
if (wheight!=iheight || wwidth!=iwidth ) {
pwidth=iwidth+30;
pheight=iheight+60;
newwindow.resizeTo(pwidth, pheight);
wheight=iheight;
wwidth=iwidth;
}
newwindow.document.clear();
newwindow.focus();
newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <\/head> <body bgcolor= \"' + colour + '\"> <center>');
newwindow.document.writeln('<a title="Hit to close!" href="javascript:window.close();">');
newwindow.document.writeln('<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='www.download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='+ pwidth +' height='+pheight + '>');
newwindow.document.writeln('<param name='movie' value='+ url +'>');
newwindow.document.writeln('<param name='quality' value='high'>');
newwindow.document.writeln('<embed src='+ url +' quality='high' pluginspage='www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='+ pwidth +' height='+pheight +'><\/embed>');
newwindow.document.writeln('<\/object> ');
newwindow.document.writeln('<\/center> <\/body> <\/html>');
newwindow.document.close();
newwindow.focus();
}
ами след като съм задал всички параметри на функцията защо не ми се появява порозорец с фласш елемента който съм избрал???
помогнете за по бързия +1