Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
open website from copperlicht?

yeni
Registered User
Quote
2012-04-25 12:27:41

document. = function(event)
{
var key = String.fromCharCode(event.keyCode);
var box1 = tentara.getTransformedBoundingBox();
var box2 = bangunan.getTransformedBoundingBox();
var box3 = bangunan1.getTransformedBoundingBox();
var box4 = kubus.getTransformedBoundingBox();

if(box1.intersectsWithBox(box2))
{
setTimeout("tentara.Pos.X + =0", 100);
setTimeout("tentara.Pos.Z + =0", 100);
setTimeout("tentara.Pos.Y + =0", 100);
//document.getElementById("coll").value = "asdf";
}
if(box1.intersectsWithBox(box3))
{
setTimeout("tentara.Pos.X + =0", 100);
setTimeout("tentara.Pos.Z + =0", 100);
setTimeout("tentara.Pos.Y + =0", 100);

}
if(box1.intersectsWithBox(box4))
{
....how to open website?
}


if(key=='X' && tentara)
tentara.Pos.Z += 5;
if(key=='Z' && tentara)
tentara.Pos.Z -= 5;
if(key=='F' && tentara)
tentara.Pos.X += 5;
if(key=='G' && tentara)
tentara.Pos.X -= 5;
if(key=='V' && tentara)
tentara.Pos.Y += 5;
if(key=='B' && tentara)
tentara.Pos.Y -= 5;

engine.handleKeyDown(event);

};


niko
Moderator
Quote
2012-04-25 14:30:07

Just as you would do it with standard java script:
window.open('http://www.ambiera.com');

That should work :)


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "I?ternational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact