SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Nov 2004
    Location
    rochester hillz
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help Me with simple script

    Help ME with script

    hello im looking for a javascript, pretty simple but im nothing for making scripts, i just create and design web sites. Well i need a script that does this.
    Searchs web site<http://eternal-lands.solexine.fr/~radu/online_players.htm> for a name. and if it finds the name it puts up this image http://www.freewebs.com/shadowtactics/Online1.jpg, if it does not find a match it displays this http://www.freewebs.com/shadowtactics/offline.jpg.

    Eternal lands is an mmorpg i play with alot of my friends and have been wanting an online/offline status page for a while. That is simply all i ask a sample page of what im asking for here -->http://www.iostr.com/scoguild/online.php, please help me im no good at scripting.

  2. #2
    SitePoint Enthusiast
    Join Date
    Nov 2004
    Location
    Midlands, UK
    Posts
    93
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if all members have ICQ then you can set the site to say if there online.

    Code like that can be found on there site.

    other than that you could make a small .php file which allows each individual to set there online/offline status.

  3. #3
    SitePoint Member
    Join Date
    Nov 2004
    Location
    rochester hillz
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    but this does not help me, thnx tho

  4. #4
    SitePoint Addict loadx's Avatar
    Join Date
    Jul 2004
    Location
    Melbourne, VIC, Australia
    Posts
    221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    basicly using that page your pattern is simple, you get a list of everything between <a href> and </a> that meaning you would get the players name, now a simple thread has already been talking about this topic so i'll direct you there and hopefully you can figure it out..the regex would change a little bit but nothing too major

    http://www.sitepoint.com/forums/showthread.php?t=207489

    if you get lost then post again and im sure we can all help you out


Bookmarks

Posting Permissions

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