Indsæt variabler problem
HejJeg har denne kode:
var myWidth = QueryString("setWidth");
var id = QueryString("myID");
document.write('<body bgcolor="#ffffff">\n');
document.write('</head>\n');
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="1400" height="400" id="print" align="middle">\n');
document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
document.write('<param name="movie" value="print.swf?enterpriseID="/>\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="bgcolor" value="#ffffff" />\n');
document.write('<embed src="print.swf?enterpriseID=" quality="high" bgcolor="#ffffff" width="1400" height="400" name="print" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
document.write('</object>\n');
document.write('</body>\n');
document.write('</html>\n');
Er der nogen, der kan hjælpe med med at sætte variables myWidth ind de 2 steder hvor der står 1400 og variablen ind efter print.swf?enterpriseID= (også 2 steder)
VH
Anders
