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 6 of 6

Thread: What's wrong??

  1. #1
    New Coder
    Join Date
    Jul 2003
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    What's wrong??

    I've made this Javascript:

    <html><head><script language="javascript">
    <!--
    function visa_bild()
    {


    bild=new Array("system/top_carw_001.jpg","system/top_carw_002.jpg","system/top_carw_003.jpg","system/top_carw_004.jpg","system/top_carw_005.jpg","system/top_carw_006.jpg")

    visa_bilden=bild[Math.floor(Math.random()*bild.length)]
    visa_bilden="<IMG SRC=\""+visa_bilden+"\" HSPACE=0 VSPACE=0>"
    return visa_bilden
    }
    //-->
    </script>
    </head><body bgcolor=white scroll=no topmargin=0 leftmargin=0>
    <script language="javascript">
    <!--
    document.write(visa_bild())
    //-->
    </script>


    something is wrong.
    HSPACE=0 and VSPACE=0 doesn't works
    why?

    Sorry for my bad english.
    Last edited by carweb; 07-17-2003 at 05:47 PM.

  • #2
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts
    Because it's HSPACE and VSPACE


  • #3
    New Coder
    Join Date
    Jul 2003
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks

  • #4
    New Coder
    Join Date
    Jul 2003
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What now?
    It doesn't works

  • #5
    Regular Coder
    Join Date
    Jan 2003
    Posts
    867
    Thanks
    4
    Thanked 8 Times in 8 Posts
    That is the most gratuitous, excessive use of smiley faces in the history of the Internet.

    Your script works for me. What is wrong?

  • #6
    New Coder
    Join Date
    Jul 2003
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by arnyinc
    That is the most gratuitous, excessive use of smiley faces in the history of the Internet.

    Your script works for me. What is wrong?
    I've got at table under my image and it is more than 0 pixels under


  •  

    Posting Permissions

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