Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
5-star Rating (1 Vote) Rate It!  Login/Join 
Junior Member
Posted
I want to create a page with buttons or clickable images that will load the appropriate / selected MTX file.

My question is it possible to link the load code -

<script language="javascript">
vmp = new MTSPlugin( "../../3d/p820_output.mtx", 300, 200, "", '<img src="../../images/modern_edition/usn/p800_bow_thumb.jpg">', 'imagelink=1');
</script>

to a button / image so that the 3D scene loads after the button / image is clicked?

If so an example would be appreciated

Thanks
 
Posts: 1 | Registered: July 08, 2007Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
Hey,

Please go through the attached sample files. The Javascript function in the HTML file will do the scene clear and load. You can replace the HTML buttons with images. Let me know if you face any problems.

Hope this helps.

Cheers,

Anup

Zip/GZ archiveloadScene.zip (7 KB, 12 downloads)
 
Posts: 557 | Location: India | Registered: February 12, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community