Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Greetings We have posted this also in the coopercube forum , we post it here also hoping for some answer on this. On WebsitePainter we put 2 html code boxes. The code for each one is exactly what coopercube writes in the html file when exporting to webgl. Now we did a little trick and created 2 copperlichtdata folders and changed in the html code the 3darea to 3darea 1 and 2. In the copperlichtdata (each folder) is a different ccbjs. This has as result 2 coopercube opengl scenes loading in one html page, with different 3d scenes showing. Now what we want to do is this In WebsitePainter we want to click on a combo box and hide and unhide the 3dareas at will!!! Can you help please?? P.S In few words imagine photoshop layers one stacked on the other on the exact same position, and we want to hide and unhide them at will. Best Michael. |
||||
|
Another idea is to call each webgl (make it visible ) content via a javascript were it says javascript:alert('hello!'); but we dont know what to write there!!!! |
||||
|
Yes, you could hide any webgl containter using JavaScript, for example like this: yourWebglElement.style.display = 'none'; That's it :) |
||||
|
wrote: Yes, you could hide any webgl containter using JavaScript, for example like this: yourWebglElement.style.display = 'none'; That's it :) YOU ROCK NIKO thanks once again. Now can you tell me please how i am going to unhide this again? Also were can i find a reference document with those commands, if there are examples also they are most welcome. |
||||
|
Try yourWebglElement.style.display = 'block'; this should do the trick. Reference Document is the HTML DOM, and the CSS by W3C you'll find lots of documentation for this on the internet. |
||||
|
Thank you very very much Niko, i really appreciate all the help you are giving us, we will try our best from inside of our work to get Coopercube and Website painter more closely to the public. We will try your commands and will come back. Best Michael. |
||||
|
Niko yourWebglElement.style.display = 'none'; for hidding worked like a charm. Unfortunately yourWebglElement.style.display = 'block'; did not. Any other ideas / proposals? Best Michael. |
||||
|
If you take a look at the CopperCube page (http://www.ambiera.com/coppercub...), there is a link 'Show older news'. It works exactly like that. Clicking a second time onto the link makes it set to 'none', and it disappears again. Difficult to say what is not working for you without looking at it. Maybe you try again with a div tag wrapped around your webgl element. Or maybe there is some error in your code. Take a look at the javascript console, maybe you get an error? |
|