Support » Fixing WordPress » WordPress javascript

  • I have done google searches on how to use javascript and wordpress but I have not been able to get anything to work.

    Am I missing something?
    All I am trying to do is add some javascript to a single static page. And for my counter. But when I make the edits the code disapears.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Have you tried surrounding the js with //<![CDATA[ tags?

    Didnt work ..

    <script language=”JavaScript” type=”text/javascript”>

    <CENTER> <IMG src=”/cam/01.jpg” width=”320″ height=”240″ border=”1″ name=”refresh”> </CENTER>

    var t = 9 // interval in seconds
    image = “/cam/01.jpg” //name of the image
    function Start() {
    tmp = new Date();
    tmp = “?”+tmp.getTime()
    document.images[“refresh”].src = image+tmp
    setTimeout(“Start()”, t*1000)



    Are you adding the JS to the content or to a template?

    See also:

    This code is going in a regular page.
    Not in a template.


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress javascript’ is closed to new replies.