JavaScript

Moderators: None (Apply to moderate this forum)
Number of threads: 2061
Number of posts: 5164

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Re: can anyone help me with a for loop please!? Posted by mac_doggie on 11 Feb 2002 at 2:33 AM
for(x=0;x<document.alfons.value;x++) {
  document.write('<td><img src=\"transpix.jpg\" with=\"100\"></td>');
}


: I need a for loop that does the following: takes the value of input type= hidden name=alfons value=4. I need the loop to write out a table cell containing the image transpix with a with of 100px as many times as the value of the input field, in this case 4 times.
: Can anyone help me with this please?
: T.I.A
: Ben Gomer
:


-mac-
mailto:programmersheaven@mac-doggie.nl
the Netherlands...


Thread Tree
bengomer can anyone help me with a for loop please!? on 4 Feb 2002 at 2:51 PM
mac_doggie Re: can anyone help me with a for loop please!? on 11 Feb 2002 at 2:33 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.