Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Quick Question

  1. #1
    nca
    nca is offline
    New Coder
    Join Date
    Dec 2003
    Posts
    39
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Quick Question

    1
    Last edited by nca; 12-26-2003 at 03:34 PM.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,730
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    Two problems I can see.

    The function tagline() is not called so is not executed.


    document.write("tagLines[random(2)]");

    The quotes cause a literal to be written. Delete them.

    document.write(tagLines[random(2)]);

    It seems to work OK then.
    Last edited by Philip M; 12-26-2003 at 08:31 AM.


  •  

    Posting Permissions

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