Help - Search - Members - Calendar
Full Version: looping in HTML
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
asadullah797
Hey All.

i have round about 5,000 images/wallpapers/backgrounds and i want to upload them to my server with html.
in html i have to write 5,000 lines of code for the wallpapers, i want to know if there is a way to use loop in
html so that i can save 4499 lines of code. i mean if i use for loop then it will execute 5,000 times and i
will use only one statement for image displaying. thanks in advance.
Darin McGrew
QUOTE
i want to know if there is a way to use loop in html so that i can save 4499 lines of code.
In HTML, no. HTML is just markup. It isn't a programming language.

However, you can use a program of some sort to generate the HTML. What kind of programming languages can you use?
Brian Chandler
QUOTE(asadullah797 @ Feb 13 2011, 02:12 AM) *

Hey All.

i have round about 5,000 images/wallpapers/backgrounds and i want to upload them to my server with html.
in html i have to write 5,000 lines of code for the wallpapers, ...



Note also that html can't be used to "upload them to your server". If the upload is the problem, it may be because you are using a modern "manual" ftp client, which required one operator action for everything it does. If you use a command line program like sftp, you can probably type

put *

and it will transfer 5000 files for you.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.