www.webdeveloper.com

Search:

Type: Posts; User: Lesshardtoofind

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    296

    Thanks for the response. I was trying to get...

    Thanks for the response. I was trying to get things sorted out as I wasn't getting the results I expected from methods I was using. I eventually got the game to behave, but I wanted to know WHY...
  2. This error does not happen in Fire Fox

    This error does not happen in Fire Fox
  3. Replies
    3
    Views
    296

    Well it seems if I don't make a function preceed...

    Well it seems if I don't make a function preceed with the declaration and definition


    this.functionName = functionName;
    function functionName(){
    }


    Then I can't call that function later...
  4. Replies
    3
    Views
    296

    Question about methods.

    Hi!

    I am pretty new to Javascript and I've read a few pages about Objects and Methods, but I think I'm still fuzzy on a few things I hope someone can clear things up!



    function pizza()
    {
    ...
  5. Replies
    10
    Views
    461

    Nice post I've not tried using the setTimeout...

    Nice post I've not tried using the setTimeout function yet. I'm still pretty new with the JavaScript so I guess I overcomplicated the problem a little bit.
  6. Replies
    8
    Views
    461

    I figured there should be. Good luck!

    I figured there should be. Good luck!
  7. Replies
    2
    Views
    238

    Right! Or why not actually come up with a...

    Right!

    Or why not actually come up with a standard for what a byte is so there aren't so many discrepencies between each machine?
    Ever looked up the definition of a byte?

    There is no memory...
  8. Replies
    8
    Views
    461

    My apologies function...

    My apologies


    <script>
    function ToggleSnowStorm(){
    if(!snowStorm.disabled)
    snowStorm.freeze();
    else
    snowStorm.resume();
    </script>
  9. Replies
    17
    Views
    743

    Are you wanting to actually perform this...

    Are you wanting to actually perform this countdown as well? Or are you just looking to display how many seconds between each count back to the user?
  10. Replies
    8
    Views
    461

    It looks like it has a method called ...

    It looks like it has a method called


    this.freeze();


    Not sure how you are implimenting it but it should be something like
  11. Replies
    10
    Views
    461

    Lol I doubt that. Glad it works for you. Hope...

    Lol I doubt that. Glad it works for you. Hope you don't mind since I spent some time on it and I think it looks nice I am borrowing the concept for one of my pages! Seriously if you have questions...
  12. Replies
    10
    Views
    461

    Lol dunno why I got hooked on this, but I...

    Lol dunno why I got hooked on this, but I realized the coding would get really redundant if you continued on that path when needing to add multiple elements. So I adjusted the code again if you...
  13. Replies
    10
    Views
    461

    I adjusted your code to a working example... I...

    I adjusted your code to a working example... I simplified things alot. If you have any questions or comments on the new code let me know. I am very new at JavaScript too. I just started last week,...
  14. Replies
    10
    Views
    461

    A few things. I would read ...

    A few things. I would read

    https://developer.mozilla.org/en-US/docs/DOM/window.setInterval

    If you call the setInterval once it will continue to call the function on the interval.
    Your code...
  15. You are showing a Call to a function and not a...

    You are showing a Call to a function and not a Function definition.

    Usually the function will be defined somewhere in between two <script></script> tags. If not that then they will be...
  16. Can you not right click view source?

    Can you not right click view source?
  17. Replies
    4
    Views
    214

    I found the problem. var x =...

    I found the problem.


    var x = Text.style.top;

    returns a string with px appended to it. So to do arithmatic with two such variables you would end up with an appended string looking like
    ...
  18. I use the Firefox tools as well. Highly...

    I use the Firefox tools as well. Highly informative!
  19. Here is a small example:: ...

    Here is a small example::



    <!DOCTYPE html>
    <html lang = "en-US">
    <head>
    </head>
    <body onload = "DoIt()">
    <div id = "debugger" style = "left: 5%; top: 5%; height: 100px; width: 100px;...
  20. I depends on the situation and the web browser it...

    I depends on the situation and the web browser it appears. If the browser being used allows Javascript to run in the main GUI thread then the window won't update until the javascript is finished...
  21. Replies
    4
    Views
    214

    so in other words there is no way to circumvent...

    so in other words there is no way to circumvent the problem?
  22. I'm having a problem simulating your issue can...

    I'm having a problem simulating your issue can you post a code snippet that demonstrates your error?
  23. window.close() as long as you opened that...

    window.close()

    as long as you opened that window with your script as well otherwise you will get this error:

    [16:13:09.666] Scripts may not close windows that were not opened by script. @...
  24. A couple suggestions. 1. Use Code Tags 2. ...

    A couple suggestions.

    1. Use Code Tags
    2. Use Identation
    3. Describe the actual error you are encoutering

    It will help others trying to assist you to see the problem more clearly. The...
  25. It looks like you are always appending to the...

    It looks like you are always appending to the variable aka +=. If you don't reset it back to zero when you call the function then you will just get an incrementally large result. Like if I did

    ...
Results 1 to 25 of 26
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles