|
|
|
| пробую генерировать файл javascript`ом и сам файл тоже должен его содержать, вот часть после которой начинает выводить остальной код в браузер
write('<html><head><title>UserList</title>\n');
write('<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">\n');
write('<link rel="STYLESHEET" type="text/css" href="<?php echo $current_design?>style.css">\n');
write('</head><body bgcolor="#f1f1f1" text="#000000" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>\n');
write("<script>");
write('function sel(href){if(href!="") document.getElementById("rr").innerHTML = "<EMBED type=application/x-mplayer2 src="+href+" width=180 height=50 transparentAtStart animationAtStart ShowStatusBar=1 ShowControls=1 autoSize displaySize><br>";}sel("");');
write("</script>");
|
или так сделать невозможно? | |
|
|
|
|
|
|
|
для: Blizard
(18.05.2009 в 14:05)
| | Замените
write("<script>");
...
write("</script>");
|
на
write("<sc"+"ript>");
...
write("</sc"+"ript>");
|
| |
|
|
|
|
|
|
|
для: ExtraBrain
(18.05.2009 в 14:43)
| | ExtraBrain, благодарю! работает! | |
|
|
|