Free Web Hosting PHP/mySQL
GlobalWeb.com.ru Forum Index GlobalWeb.com.ru
Free Web Hosting :: Commercial Web Hosting :: PHP/mySQL :: CGI/Perl
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using For-Next Loops: Multiple Languages.

 
Post new topic   Reply to topic    GlobalWeb.com.ru Forum Index -> Howtos
Author Message
G-Bomb



Joined: 29 Feb 2004
Posts: 73

PostPosted: Tue Mar 02, 2004 9:46 pm    Post subject: Using For-Next Loops: Multiple Languages. Reply with quote

The following are various examples how to incorporate different language for-next loops with basic HTML.

Last edited by G-Bomb on Tue Mar 02, 2004 10:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
G-Bomb



Joined: 29 Feb 2004
Posts: 73

PostPosted: Tue Mar 02, 2004 9:59 pm    Post subject: Reply with quote

Using JavaScript:

Code:
<HTML>
<BODY>
<CENTER>

<SCRIPT LANGUAGE="JavaScript"><!--
var j

for (j = 1; j <= 6; j++) {
   document.write("<H" + j + ">This is text using Header #" + j + ".</H" + j + ">");
}
// --></SCRIPT>

</CENTER>
</BODY>
</HTML>
Back to top
View user's profile Send private message
G-Bomb



Joined: 29 Feb 2004
Posts: 73

PostPosted: Tue Mar 02, 2004 10:11 pm    Post subject: Reply with quote

Using ASP:

Code:
<%@ LANGUAGE="VBScript" %>

<HTML>
<BODY>
<CENTER>

<%
Dim j

For j = 1 To 6
   Response.Write "<H" & j & ">This is text using Header #" & j & ".</H" & j & ">"
Next
%>

</CENTER>
</BODY>
</HTML>
Back to top
View user's profile Send private message
G-Bomb



Joined: 29 Feb 2004
Posts: 73

PostPosted: Tue Mar 02, 2004 10:29 pm    Post subject: Reply with quote

Using PHP:

Code:
<HTML>
<BODY>
<CENTER>

<?
for ($j = 1; $j <= 6; $j++) {
   echo "<H$j>This is text using Header #$j.</H$j>";
}
?>

</CENTER>
</BODY>
</HTML>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    GlobalWeb.com.ru Forum Index -> Howtos All times are GMT
Page 1 of 1

 


Free Web Hosting, Commercial Web Hosting, PHP/mySQL Copyright © 2009
Free Scripts Directory | Free Software Downloads | Newsgroups Directory | Optel.net | Mirroraty | Cruised.net | Hardware Keylogger