The index.html is automatically created as follow:
<!-- This is a security feature of IE if you do not include this it will generate a pop-up when running from local drive>
<!-- saved from url=(0014)about:internet -->
<html><head>
<title>Quest3D Web Project</title>
<SCRIPT language='VBScript'>
function DetectQuest3DPlayerActiveX
on error resume next
dim tControl
dim res
res = 0
set tControl = CreateObject("Quest3DActiveX4.Quest3DCtrl4.3")
if IsObject(tControl) then
res = 1
end if
DetectQuest3DPlayerActiveX = res
end function
</SCRIPT>
<script type="text/javascript">
<!--
function GetQuest3DPlayer () {
return document.getElementById("Quest3DObject");
}
function DetectQuest3DPlayer () {
var detected = false;
if (navigator.appVersion.indexOf("MSIE") != -1 && navigator.appVersion.toLowerCase().indexOf("win") != -1) {
detected = DetectQuest3DPlayerActiveX();
}else {
if (navigator.mimeTypes && navigator.mimeTypes["application/quest"]) {
if (navigator.mimeTypes["application/quest"].enabledPlugin && navigator.plugins && navigator.plugins["Quest3D Player"]) {
detected = true;
}
}
}
return detected;
}
function CreateQuest3DPLayer(URL, width, height){
width = (width==null ? 640 : width);
height = (height==null ? 480 : height);
URL = (URL==null ? "no 3d specified in html" : URL);
if (DetectQuest3DPlayer()) {
if (navigator.appVersion.indexOf("MSIE") != -1){
document.write('<SCRIPT LANGUAGE="javascript" FOR=Quest3DObject Event="OnEvent">
');
document.write('onEvent();
');
document.write('</SCRIPT>
');
document.write('<object id="Quest3DObject" classid="clsid:B5B5F57C-35DE-4D4F-AEFD-AD5D9F0819E4" width="'+width+'" height="'+height+'" CODEBASE="
http://www.quest3d.com/webplugin/download/quest3dactivex41.cab">
');
document.write(' <param name="URL" value="'+URL+'" />
');
document.write(' <param name=name="BackColor" value="16777215" />
');
document.write(' <param name="CheckUpdate" value=1 />
');
document.write('</object>');
}else{
document.write('<embed id="Quest3DObject" documentURL ="'+ document.URL +'" src="'+URL+'" type="application/quest" width=' + width + ' height=' + height + ' checkUpdate=1>
');
}
}else{
installerURL = "
http://quest3d.com/webplugin/webviewer63.exe";
document.write('<div align="center" width="'+width+'" height="'+height+'">
');
document.write('<table border="0" width="'+width+'" height="'+height+'" style="border-collapse: collapse" bgcolor="#FFFFFF"><tr><td align="center">');
document.write('<a href= ' + installerURL + '><img src="
http://www.quest3d.com/webplugin/getquest3dplayer.png" border="0"/></a>
');
document.write('</td></tr></table></div>
');
AutomaticReload();
}
}
function AutomaticReload () {
navigator.plugins.refresh();
if (DetectQuest3DPlayer())
window.location.reload();
setTimeout('AutomaticReload()', 500)
}
function QSetValue(group, channelname, value){
GetQuest3DPlayer().SetChannelValue(group, channelname, value);
}
function QSetText(group, channelname, text){
GetQuest3DPlayer().SetChannelText(group, channelname, text);
}
function QGetValue(group, channelname, value){
return GetQuest3DPlayer().ChannelValue(group, channelname);
}
function QGetText(group, channelname, text){
return GetQuest3DPlayer().ChannelText(group, channelname);
}
//-->
</script>
</head>
<body topmargin="0" leftmargin="0" bgcolor="#FFFFFF">
<script type="text/javaScript">
CreateQuest3DPLayer('webtest1.q3d',640,480);
</script></center>
<center>
</center>
</body>
</html>