Call External Javascript

Get help using Construct 2

Post » Mon Dec 19, 2011 12:20 pm

Hi, I have to call a greybox link

<script type="text/javascript" src="greybox/AJS.js"></script>
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" />

How do I add this link into the game if I have added the game inside an Iframe

<a href="http://google.com" onclick="return GB_showPage('Google', this.href)">Show Google in another layout</a>

thanks.
B
4
G
1
Posts: 30
Reputation: 685

Post » Mon Dec 19, 2011 12:58 pm

There is a callJs plugin in the plugins section that should do about that.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,786

Post » Mon Dec 19, 2011 1:06 pm

Thanks, I go to watch this.
B
4
G
1
Posts: 30
Reputation: 685


Return to How do I....?

Who is online

Users browsing this forum: Governador, tarek2, Thelegendvinny and 22 guests