yow,
kzit met een eigenaardig probleem met javascript. Ik maak een popup aan en schrijf daarna code in. De code die em maakt is just, maar toch wel em da filmke ni laden. Als ik de gegenereerde code in een html pagina paste, dan werkt het wel...
ben ni meer mee, wrom werkt het met javascript niet als de code juist is?
Code:
function openVideo(video) {
breedte = 362
hoogte = 344
schermX = (window.screen.availWidth - breedte) / 2
schermY = (window.screen.availHeight - hoogte) / 2
mediaplayer = window.open("mediaplayer.htm", "popup", "toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,directories=no,location=no,width=" + breedte + ",height=" + hoogte + ",left=" + schermX + ",top=" + schermY + "");
mediaplayer.document.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n");
mediaplayer.document.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\n");
mediaplayer.document.write("<head>\n");
mediaplayer.document.write("<title>aeromodelisme CLUB AMCA</title>\n");
mediaplayer.document.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />\n");
mediaplayer.document.write("<link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\" />\n");
mediaplayer.document.write("</head>\n");
mediaplayer.document.write("<body>\n");
mediaplayer.document.write(" <div id=\"content\">\n");
mediaplayer.document.write(" <object classid=\"clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" width=\"352px\" height=\"334px\">\n");
mediaplayer.document.write(" <param name=\"src\" value=\"" + video + "\" />\n");
mediaplayer.document.write(" </object>\n");
mediaplayer.document.write(" </div>\n");
mediaplayer.document.write("</body>\n");
mediaplayer.document.write("</html>\n");
}
functie aanroepen met een url.
iemand een idee wat het probleem is, of een andere oplossing?