Title: insert javascript code in page
Last modified: August 19, 2016

---

# insert javascript code in page

 *  [ratjetoe](https://wordpress.org/support/users/ratjetoe/)
 * (@ratjetoe)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/insert-javascript-code-in-page/)
 * Hi there!
 * In one of my pages in my WordPress site I would like to insert this code:
    —————–
   <!– begin 360 foto –> <SCRIPT LANGUAGE=”JavaScript” TYPE=”text/javascript” SRC
   =”detectflash.js”></SCRIPT> <TABLE WIDTH=”500″><TR><TD ALIGN=”center”> <SCRIPT
   LANGUAGE=”JavaScript” TYPE=”text/javascript”> <!– var nr = “01”; var hasReqestedVersion
   = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
   if (hasReqestedVersion) { document.write(” <SCRIPT LANGUAGE=\”JavaScript\” SRC
   =\”flash.js\” TYPE=\”text/javascript\”></SCRIPT> “); } else { document.write(”
   <SCRIPT LANGUAGE=\”JavaScript\” SRC=\”java.js\” TYPE=\”text/javascript\”></SCRIPT
   > “); } //–> </SCRIPT><FONT FACE=”Arial” SIZE=”2″ COLOR=”#000000″>photographer:
   [<FONT FACE=”Arial” SIZE=”2″ COLOR=”#000000″>virro</FONT>](http://www.virro.nl)
   </FONT></TD></TR></TABLE> <!– end 360 foto –> —————–
 * If I simply put this in the HTML editor, I get this error on the page itself:
   —————–“);}
   else { document.write(” “); } //–> photographer : virro —————–
 * I need to put the files flash.js and java.js in the same folder as you can see.
   I’ve put them in these folders, but it did not help:
    * my WordPress rootfolder(‘
   wp’) * wp/wp-content * wp/wp-content/themes * wp/wp-content/themes/atahualpa *
   wp/wp-content/themes/atahualpa/functions (Atahualpa is the theme I’m using)
 * Can anyone please help me?
 * Thanx, Laura

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [ratjetoe](https://wordpress.org/support/users/ratjetoe/)
 * (@ratjetoe)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/insert-javascript-code-in-page/#post-1352070)
 * By the way: I also tried to insert it this way:
    <?php include(“[http://the-mix.nu/web/360/01.html&#8221](http://the-mix.nu/web/360/01.html&#8221););?
   >
 * (By using [http://wpmarketing.org/wp-plugins/hana-code-insert/](http://wpmarketing.org/wp-plugins/hana-code-insert/))
 * As you can see, [http://the-mix.nu/web/360/01.html](http://the-mix.nu/web/360/01.html)
   itself works.
    But WordPress gives me some php-errors…
 *  Thread Starter [ratjetoe](https://wordpress.org/support/users/ratjetoe/)
 * (@ratjetoe)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/insert-javascript-code-in-page/#post-1352268)
 * I found a solution!
    I simply put an iFrame in the html-editor in WordPress in
   the page, like this: <iframe name=”werkplaats” src=”[http://www.the-mix.nu/360/index.html&#8221](http://www.the-mix.nu/360/index.html&#8221);
   scrolling=”no” height=”800″ width=”415″ frameborder=”0″>
 * And now it works!
 * I’m quite proud!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘insert javascript code in page’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [ratjetoe](https://wordpress.org/support/users/ratjetoe/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/insert-javascript-code-in-page/#post-1352268)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
