Skip to Questions

Guide FAQ - Your LibGuides v1 Questions. Answered!

Q

I am trying to embedd a JavaScript game. Is that possible?

For example: http://www.rsc.org/education/teachers/learnnet/ptdata/games/findelement.htm Thanks for your help
Last Updated: Mar 23, 2010  |  307 Views

Was this helpful? 0   0
A

Answer

It is possible to add JavaScript to a Rich Text box, so you could add the game if you had the JavaScript code:

  • Plain Text Editor tabAdd a Rich Text¬†box to your page.
  • Click add text.
  • Click the Plain Text Editor tab.
  • Paste the copied JavaScript code into this box and click Save Changes.
  • Refresh your page.

However, since your example is a Java applet (not JavaScript), this requires something a little different. :)

You can embed the web page into a box on your guide using an IFRAME. From my testing, I found that this worked well for that site in Internet Explorer & Firefox, but not so well in Chrome.

Just copy and paste this code into the Plain Text Editor in a Rich Text box (you can use the same instructions as above):

<iframe src="http://www.rsc.org/education/teachers/learnnet/ptdata/games/findelement .htm" height="425" width="800"></iframe>

You'll need to make sure the box is wide enough to fit the game: the width is set to 800px, so you'll want to add this to a page that has a 1 column layout...or with one column that is about 850px wide (the 2nd column would then have to be 117px wide).

Example:

Example of an iframe using the URL mentioned in the question.

Answered by Anna BurkeBookmark and Share

Other Answers / Comments (0)

    Need Help?

    This site contains FAQs for LibGuides v1 only.

    LibGuides v2 Documentation
    (You must have a LibApps account to access that site.)

    Or click HELP in the orange command bar of your v2 system.

    Support:

    Follow LibGuidesFAQ on Twitter Follow us on Twitter!
     Your questions, answered!

    Browse by Popular Topics

    Accounts  –  Admin Area  –  API / Widgets  –  Boxes  –  Catalog / Database Integration  –  CSS  –  Customization  –  E-Reserves  –  Embedding Objects  –  General System Questions  –  Group Management  –  Guides  –  Holiday Closures  –  How To...  –  Images  –  LibGuides CMS  –  Links  –  Mobile  –  Pages / Tabs  –  Profiles  –  RSS  –  Search  –  Security  –  Statistics  –  Subject Categories  –  Survey/Form Tool  –  System Administrators  –  Tags  –  Webinar  
    View All Topics

    Related content from Springshare v1 Help