SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    experimental window script

    I'm working on a window object that will do various cool things. Right now I have a given number of windows circling around the screen, but am getting errors when I close them manually (the close em link works fine). I'm almost certain that this is due to the setTimeout()'s trying to moveTo() windows that don't exist, but I cannot fix the error. http://anarchos.xs.mw/circlewin.html is the page.
    ck :: bringing chris to the masses.

  2. #2
    JavaScript Guru (Big Ego) Arielladog's Avatar
    Join Date
    Jul 1999
    Location
    SC, USA
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Anarchs,

    I'm on vacation right now, so I just briefly looked at your code, but you can detect if a variable exists or if the window is closed like this:

    if(window.win1 || win1.closed)

    To detect if a variable exists, just use if(window.variableName) (make sure to include "window." as if(variableName) won't work.

    aDog

  3. #3
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah I got that answer from the website abstraction forums a few days ago, thank you though =). The released version is at http://anarchos.xs.mw/circlewin.phtml if you wanna check it out.
    ck :: bringing chris to the masses.

  4. #4
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    holy cow...dude, that's pretty sweet!
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  5. #5
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks =)
    ck :: bringing chris to the masses.

  6. #6
    ALT.NET - because we need it silver trophybronze trophy dhtmlgod's Avatar
    Join Date
    Jul 2001
    Location
    Scotland
    Posts
    4,836
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice i wrote a script like this, wasnt as smooth


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
  •