| |
f13o
Posts: 1
Score: 0
Joined: 8/19/2005
Status: offline
|
I have this HTML page which import next JS files: SCOInteractions.js: movie_DoFSCommand() // realise Flash fscommand // Hook for Internet Explorer. if (navigator.appName &&navigator.appName.indexOf("Microsoft") != -1 &&navigator.userAgent.indexOf("Windows") != -1 &&navigator.userAgent.indexOf("Windows 3.1") == -1) { document.write('<script language=\"VBScript\"\>\n'); document.write('On Error Resume Next\n'); document.write('Sub movie_FSCommand(ByVal command, ByVal args)\n'); document.write(' Call movie_DoFSCommand(command, args)\n'); document.write('End Sub\n'); document.write('</script\>\n'); } FlashWriter.js: writeFlash() - writes <object> & <embed> tags HTML page: <body onLoad="writeFlash(); initTest()"... > <p id="flashmovie"></p> ... </body> This all works in Firefox, cause it doesn't need VBScript for communication, but in IE, for some reason, it does not activate VBScript Call to my JavaScript Sub? Here http://www.moock.org/webdesign/flash/fscommand/ they say VBScript have to reside in <head> tag, and i have tried that it's still not working. If i left out writeFlash() call and hard code <object> tags everything IS working, but I realy need this sort of writing different variations of objedct tags in many HTML pages... I hope I was clear enaough... :) thanx in advance
|
|