Page 1 of 1

insert a VRobject in a webpage

Posted: Tue Mar 01, 2016 7:57 pm
by ARobbert
I need it to be located below my menu at the top. I can't seem to get this to work.

I'm hoping to add the needed code to my webpage but don't know what code is needed and where to place it. The HTML file generated from Object2VR works. I'm copying the body section and adding to my page HTML. It's not working.

The XML file, player and skin files are in the folder with the new html file.

Re: insert a VRobject in a webpage

Posted: Tue Mar 01, 2016 8:23 pm
by Hopki
Hi ARobbert,
You also need to add some code from the head section of the HTML page.
If your not sure then it may be easier to use an iframe.

Here is an example of code:
<iframe src="project/index.html" name="Object" width="640" height="480" scrolling="no" marginheight="0" marginwidth="0" frameborder="0" style="float:left; margin-left:0px" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>

When producing the output make sure you select the fullscreen option found under the HTML tab.
Regards,
Hopki

Re: insert a VRobject in a webpage

Posted: Tue Mar 01, 2016 9:09 pm
by ARobbert
Thanks for the reply. I started a new file and it's working!