dimanche 21 février 2016

Show html button on top of javascript

Hi I'm working on a project to show the Earth and I need some buttons to appear alongside it, at the moment I can only get my buttons to show up either below or above the javascript. I've included a screenshot and my html code, I hope someone can help, thanks so much, let me know if there's something missing that you'd need to be able to help.

HTML:

<body>
    <div id="webgl"></div>
    <script src="js/three.min.js"></script>
    <script src="js/Detector.js"></script>
    <script src="js/TrackballControls.js"></script>
    <script src="js/earth.js"></script>
    <script type="text/javascript" src="aud.js"></script>
    <script type="text/javascript" src="date.js"></script>
    <input type="image" id="intro" src="images/icon-intro.png"/>
</body>
</html>

Image:

image

Here you can see the button outside of the scene, I want it to be placed over it instead.




Aucun commentaire:

Enregistrer un commentaire