Whenever I run this script, I get a line 31 Object expected error… any ideas on what is causing this? Line 31 is supposed to be where I call newWindow… any ideas?
heres the code that went on the actual page:
<script>
html;
html = '<OBJECT classid="clsid<img src="images/smilies/biggrin.gif" border="0" alt="">27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH=800 HEIGHT=600>';
html += '<PARAM NAME=movie VALUE="flashvip3ronline.swf" />';
html += '<PARAM NAME=quality VALUE=best />';
html += '<PARAM NAME=wmode VALUE= />';
html += '<PARAM NAME=bgcolor VALUE=#FF9900 />';
html += '<embed src="flash/vip3ronline.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="600"></embed></object>';
window.name = "launcher"
newWindow( 500, 500, 600, 800, "x", "launcher", 0, html);
</script>
I have included the following file:
var win = window.createPopup();
// the constructor for the new window
function newWindow( winPlaceLeft, winPlaceTop, winSizeHeight, WinSizeWidth, winSrc, launcherName, border, winContent)
{
// intialize default window
var winBody = win.document.body;
winBody.style.border = border;
winBody.innerHTML = winContent;
win.show(winPlaceLeft, winPlaceTop, winSizeHeight, WinSizeWidth, document.body);
launcher = eval(launcherName);
launcher.resizeTo(1,1);
launcherPlaceLeft = winPlaceLeft + 1;
launcherPlaceRight = winPlaceRight + 1;
launcher.moveTo(launcherPlaceLeft, launcherPlaceRight);
}
thanks in advance…