using external .js file

Discussion in 'PHP' started by Javver, Apr 20, 2008.

  1. #1
    hi,
    im trying to use an external .js file (4 files with more likely same codes) i used the line for each of them:

    <script type="text/javascript" src="pathto/clock.js">

    however it does not work... nothing displays, i got the code from http://www.maxxblade.co.uk/clock/
    because i want to run a clock with diffrent timezones. i used tables, how can i display the clock working?

    thank you,
     
    Javver, Apr 20, 2008 IP
  2. mobilebuzz

    mobilebuzz Banned

    Messages:
    1,108
    Likes Received:
    101
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i was also having same prob some time ago
    i still have that prob
    but i had read some solution for this
    never tried but
    what u can do is rename clock.js to clock.txt
    i think it will work
    i have not tried
    i read this later i had solved my prob using the php include command
     
    mobilebuzz, Apr 20, 2008 IP