HabboxWiki needs you!
Are you a Habbo buff? Or maybe a rare trader with a bunch of LTDs? Get involved with HabboxWiki to share your knowledge!
Join our team!
Whether you're raving for rares, excited for events or happy helping, there's something for you! Click here to apply
Need a helping hand?
Check out our guides for all things to help you make friends, make rooms, and make money!


Results 1 to 3 of 3

Thread: document.write

  1. #1
    Join Date
    Oct 2006
    Location
    London
    Posts
    342
    Tokens
    0

    Default document.write

    I have this javascript:
    Code:
    <script language="javascript">
            <!--
            document.write=("<img scr='../images/logo.png'>")
            //-->
            </script>
    so why wont it work, i have tried all the variations, the document.image and everything.
    can anyone help!?

  2. #2
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    693
    Tokens
    0

    Default

    Remove the equals sign. You're not setting a variable, you're using a function. ;X

    HTML Code:
    <script language="javascript">
            <!--
            document.write('<img scr="../images/logo.png">')
            //-->
            </script>
    XHTML, CSS, AJAX, JS, php, MySQL.

    --

    HxF moderators can't read timestamps.

  3. #3
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    7,554
    Tokens
    0

    Latest Awards:

    Default

    I'm Australian, therefore, I'm better than you.
    so true!

Posting Permissions

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