Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Oct 2005
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript Error

    this is probably a simple solution, but i am a designer not a programmer, so its easy for me to make mistakes. this script works great in IE , but in firefox and netscape, it opens a blank page with only the script on it. i have this script repeated throughout the page multiple times, drawing from different files, but it is the 1st one that appears. what am i missing from the tag?

    <td width="49%" height="4" align="center" valign="middle" bgcolor="#F7F7F7">
    <div align="center">
    <font size="1" face="Verdana, Arial, Helvetica, sans-serif" color="#777777">
    <script type="text/javascript" src="times/newzealand.js"></script>
    </font></div></td>


    it is a simple script that simply displays the time in different time zones, but like i said, it freaks out on me in netscape and mozilla. can someone tell me what im doing wrong? thanks

  • #2
    Regular Coder Lerura's Avatar
    Join Date
    Aug 2005
    Location
    Denmark
    Posts
    947
    Thanks
    0
    Thanked 130 Times in 129 Posts
    can you post a link to the page then it'll be a lot easier to help

  • #3
    New Coder
    Join Date
    Oct 2005
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #4
    Regular Coder Lerura's Avatar
    Join Date
    Aug 2005
    Location
    Denmark
    Posts
    947
    Thanks
    0
    Thanked 130 Times in 129 Posts
    the problem is that in all of your scripts you got
    Code:
    if(!document.all){ window.onload=dT; }else{ dT(); }
    which should be:
    Code:
    if(!document.all){ window.onload=dT(); }else{ dT(); }
    Beside that.
    You only need 1 script for all of the Timezones.
    So I have modified your script and page:

    Timezone.js
    aboutus_ouroffices_cont.html

  • #5
    New Coder
    Join Date
    Oct 2005
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    wow. thats really awesome of you to do that. thanks a million. it works great. i hope you didnt spend too much time on that! that is really awesome !

  • #6
    Regular Coder Lerura's Avatar
    Join Date
    Aug 2005
    Location
    Denmark
    Posts
    947
    Thanks
    0
    Thanked 130 Times in 129 Posts
    the modification didn't take long.
    The worst part was ,since it is such a large table, to find out in what files to look for the timezonedifferences and then retrieve them

    but what, I have the time.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •