dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: Sup3rkirby

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    2
    Views
    434

    Looks like the problem is a simple logic slip-up....

    Looks like the problem is a simple logic slip-up. In your toggleAll() function where you set the value of x based on your if/else, if the value is ▼ you set the value to ▼, thus seeing...
  2. Replies
    19
    Views
    1,167

    Well, to first provide an answer to the topic,...

    Well, to first provide an answer to the topic, the code snippet below has added a 'speeds' variable that has a static speed for each of your possible enemy images. You can change these values to...
  3. Replies
    19
    Views
    1,167

    The following quote is taken directly from the...

    The following quote is taken directly from the Mozilla Developer Network site:

    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types

    Frameworks are also a preference....
  4. @Kevin2: I'm not disagreeing that Notepad is...

    @Kevin2: I'm not disagreeing that Notepad is painful and awful to use. But speaking from experience I know that using it initially, before any real knowledge of HTML or any programming, Notepad is...
  5. My original code won't work because I forgot the...

    My original code won't work because I forgot the arguments/parameters in the object function.


    //enemies
    var enemies = [],
    enemy_x = 50,
    enemy_y = -45,
    enemy_w = 50,
    enemy_h = 50,...
  6. When saving webpages with Notepad you need to...

    When saving webpages with Notepad you need to select the 'Save As...' option in the 'File' menu. Once the Save As dialog window shows up you need to change the 'Save as type' (found near the bottom...
  7. I hate to be *that guy* but I couldn't help but...

    I hate to be *that guy* but I couldn't help but notice that you have several topics all pertaining to the same snippet of code. If you get an answer but have additional questions just continue to...
  8. Honestly, both methods would give you the same...

    Honestly, both methods would give you the same result, however AJAX would require more work.

    Using an iframe you can simply load the PHP page and have it format the data as you see fit. If you...
  9. Replies
    19
    Views
    1,167

    The $r is a javascript variable and using the...

    The $r is a javascript variable and using the dollar sign ($) to prefix javascript variables is both valid and acceptable. It's true that PHP variables are required to be prefixed with a dollar sign,...
  10. Replies
    19
    Views
    1,167

    That code will generate enemies the same way you...

    That code will generate enemies the same way you have been doing so, with the exception of the speed, which now changes based on the enemy.
  11. Replies
    5
    Views
    796

    So, one 'trick' you could use to get the desired...

    So, one 'trick' you could use to get the desired look is to change the border-color of the main (DRAW) rows to black as well, making it seem as if there is no border. Below is a simple example of a...
  12. Replies
    19
    Views
    1,167

    Your wording is a bit confusing, but I'll give...

    Your wording is a bit confusing, but I'll give you some possible options based on what I do understand.

    Obviously right now your 'speed' variable is being set to 3, so all enemies will have a...
  13. It looks like your problem is due to you using...

    It looks like your problem is due to you using the 'visibility' CSS property instead of 'display'. Setting visibility will simply show or hide an element on a page, but the element is still treated...
  14. Replies
    19
    Views
    2,647

    Even if you want to, for some reason, disregard...

    Even if you want to, for some reason, disregard any tests from multiple computers, it doesn't negate the fact that on the same computer, the test results would be just as valid as any method of...
  15. Replies
    2
    Views
    834

    For the sake of learning, I'll explain a few...

    For the sake of learning, I'll explain a few things. You kind of had the right idea, or so I'd like to think, but it wasn't really being executed properly at all. Ultimately, you will probably want...
  16. Well, this is why I said the code could be...

    Well, this is why I said the code could be cleaned up and updated.

    If anything I would just change the onload line to


    window.onload = init;
  17. Thread: execute

    by Sup3rkirby
    Replies
    31
    Views
    2,708

    It has nothing to do with #anchor at the end. It...

    It has nothing to do with #anchor at the end. It has nothing to do with how the link is triggered (via href or javascript). These are not my opinions but simply the facts.

    I'm not going to sit...
  18. While the code could be cleaned up (and updated)...

    While the code could be cleaned up (and updated) a little, it actually works just fine for me in Chrome, Firefox and IE11. What browser are you trying to use this in?
  19. Replies
    9
    Views
    1,053

    Other Okay, so the problem with your first if()...

    Okay, so the problem with your first if() statement (if (x == 1)) is that you are trying to set the innerHTML (which is a string/text value) equal to round_1. However, round_1 is a function (not a...
  20. Thread: execute

    by Sup3rkirby
    Replies
    31
    Views
    2,708

    Let's make sure we are clear on a few things....

    Let's make sure we are clear on a few things. Initially .click() was the best javascript solution anyone could offer you (but to be fair, just setting href to the URL would be the 'best' solution)....
  21. Replies
    19
    Views
    2,647

    It looks like I just misunderstood the way you...

    It looks like I just misunderstood the way you were explaining this the first time. You are right that in the actual test that loop becomes much faster after the first time since the $a array is...
  22. Thread: execute

    by Sup3rkirby
    Replies
    31
    Views
    2,708

    Using .click() doesn't work in Safari, which is...

    Using .click() doesn't work in Safari, which is why I gave you the _Link() function. This function was designed to use a different method in Safari browsers.
  23. Replies
    3
    Views
    561

    Have you tried document.activeElement?

    Have you tried document.activeElement?
  24. Thread: undefined.

    by Sup3rkirby
    Replies
    2
    Views
    488

    By the looks of your code, you send an AJAX...

    By the looks of your code, you send an AJAX request to a script, which then places this data on the page. If you are seeing some of the data there (for instance, does row #16 or #18 exist?), then the...
  25. You can control whether you want to load the old...

    You can control whether you want to load the old table data or not using the _SaveTable() and _LoadTable() functions. By default I set the _LoadTable() function to trigger when the page loads.
    ...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles