Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7777577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:10:41+00:00 2026-06-01T18:10:41+00:00

I am trying to embed my Unity game into Fancybox using an iframe. It

  • 0

I am trying to embed my Unity game into Fancybox using an iframe. It runs fine when I open it in a separate webpage, but when embedded it does not load. This is the code I have at the top of the page:

http://pastebin.com/embed_js.php?i=tJsjwVnH

And this is the code I’m using to try and bring up the game in fancybox:

http://pastebin.com/embed_js.php?i=dsHKVt4n

I would really appreciate any help, what am I doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T18:10:42+00:00Added an answer on June 1, 2026 at 6:10 pm

    You are binding this class to fancybox: fancybox_swf, but your anchor has this other class: fancybox_unity. Additionally, you don’t have any data- attribute to pass the dimensions to fancybox.

    I guess your anchor should look like

    <a class="fancybox_swf fancybox.iframe" title="Shoot The Hoop" href="unity/WebPlayer.html" data-width="600" data-height="320">
     <img src="images/shootthehoop.png" alt="Shoot The Hoop" />
    </a>
    

    Set data-width and data-height values as your convenience, then you can use your fancybox script.

    Notice that you have to set a HTML5 DOCTYPE.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to embed a ChartModule.aspx page within a Default.aspx page using an iframe
I'm trying to embed a Unity3D-ActiveX control into a WPF-Form by using a WinFormsHost-Control.
Trying to embed Flash into a HTML page using FBML tag fb:swf and I
I am trying to embed a flash movie (.flv) into a webpage with a
I'm trying to embed a IPTC data onto a JPEG image using iptcembed() but
I am trying to embed multiple external websites into one web page. Using an
i'm trying to embed youtube video into my iphone application. I'm using UIWebView and
We are currently trying to embed a swf into our page using https. That
I'm trying to embed Helvetica Neue into my PDF, but all of the resources
I am trying to embed swf to html, and I'm using SwfObject 2.0 My

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.