Results 1 to 3 of 3

Thread: Image posting error

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    9

    Image posting error

    [FONT=Arial Black][B] Hi
    how are you every body i have the code and i want that loop run then
    picture should overwrite on the existing picture but this is not happening
    why i donot know why the code is
    for(i=0;i<=10;i++)
    {
    document.write("<img scr="+i+".jpg"+" height=400 width=400>")
    }
    when i write this thing then picture appears but not existing picture i
    will apear down the existing picture please help how in javascript
    thanks in advance

  2. #2
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602

    Re: Image posting error

    document.write("<img src="+i+".jpg"+" height=400 width=400>")

    It should be src not scr.
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    9

    Re: Image posting error

    Thank for reply it is not my questin that src or scr but the
    Question is that i want to to write a loop
    as
    Code:
    for(i=0;i<=10;i++)
    {
    document.write("<img src="+i+".jpg"+" ");
    }

    i want overlaping that picture should open on the existing
    picture;
    help

Posting Permissions

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



Click Here to Expand Forum to Full Width