#1
  1. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Posts
    25
    Rep Power
    0

    Weather javascript?


    is there one? is there a way to include outside text files in Javascript?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Location
    Wilmslow, Cheshire
    Posts
    255
    Rep Power
    18
    Weather javascript? I use window.lookOutOf()
    The wind blows warm from Africa, and we are happy.
  4. #3
  5. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Posts
    25
    Rep Power
    0
    What? I want to display current weather. If no script exists, I could make one, but I don't really know javascript. How can I include an external file like a .txt?
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Location
    Wilmslow, Cheshire
    Posts
    255
    Rep Power
    18
    Well, I couldn't resist it, sorry.

    window.lookOutOf()    Seemed funny at the time.

    Anyway, on to more serious matters. There's sites out there which provide weather which you can add to your site. This little snippet works for example:

    <a href="http://oap.weather.com/fcgi-bin/oap/redirect_magnet?loc_id=USFL0204&par=internal&site=magnet&code=171519&promo=english">
    <img border=1 width=270 height=140 SRC="http://oap.weather.com/fcgi-bin/oap/generate_magnet?loc_id=USFL0204&code=171519"></a>

    Example at:

    http://www.geocities.com/dang65/bitsofcode/aweather.htm

    You can change the area displayed with those loc_id codes in the anchor/image tags (e.g. UKXX0085 is London, England). Other than that, go and search around for weather sites. There's no shortage of them, that's for sure. You'd think it was interesting or something
  8. #5
  9. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Posts
    25
    Rep Power
    0
    HeHe
  10. #6
  11. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    3
    Rep Power
    0
    How about something that uses the user's ip address to determine the subnet and set that to a variable that can be used in the magnet? I am specifically speaking of our Intranet of which I know all the subnets and locations so I am assuming I can use some if-then statements.

    Oh, since I am a moron, please be REAL specific if you can help!

    Thanks!!

    Brian

IMN logo majestic logo threadwatch logo seochat tools logo