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></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
The topic ‘insert javascript code in page’ is closed to new replies.