ASP batch generate a large number of regular text content code _ Application Skills

Source: Internet
Author: User
Today, while making a page, because hundreds of files, it is impossible to one manual modification, because the middle of the path ID need to be modified, there is a certain regularity, so think about it, feel the ASP is simpler, PHP is the same principle, VBS and JS is a little bit of trouble, because the text too much, You can't document.write so much.

Batch generation must be inseparable from the For loop, here a simple introduction, we read the understanding.

Copy Code code as follows:

<%
Dxy=1
For I=1 to 300
%>
Article <%=dxy%> a:<br>
<object codebase= "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height = "136" width= "605" classid= "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" >
<param value= "16007" name= "_cx"/>
<param value= "3598" name= "_cy"/>
<param value= "" Name= "Flashvars"/>
<param value= "http://files.jb51.net/file_images/article/201303/tmflash/<%=i%>.swf" name= "Movie"/>
<param value= "window" name= "wmode"/>
<param value= "-1" name= "Play"/>
<param value= "-1" name= "Loop"/>
<param value= "High" name= "Quality"/>
<param value= "" Name= "salign"/>
<param value= "-1" name= "menu"/>
<param value= "" Name= "Base"/>
<param value= "" Name= "allowScriptAccess"/>
<param value= "ShowAll" name= "Scale"/>
<param value= "0" name= "Devicefont"/>
<param value= "0" name= "Embedmovie"/>
<param value= "" name= "bgcolor"/>
<param value= "" Name= "Swremote"/>
<param value= "" Name= "Moviedata"/>
<param value= "1" name= "seamlesstabbing"/>
<param value= "0" name= "Profile"/>
<param value= "" Name= "profileaddress"/>
<param value= "0" name= "Profileport"/>
<param value= "All" name= "allownetworking"/>
<param value= "false" Name= "allowFullScreen"/></object>
<div align= "Left" > above is a demonstration of transparent flash, "<a target=" _blank "href=" http://files.jb51.net/file_images/article/ 201303/<%=i%>.swf "> Download </a>" (Please use the "right key-save target as" way to download, or use the download tool) </div>
<br/><br/>
<%
Dxy=dxy+1
If DXY mod 20=0 then
Response.Write "#分页符 #<br>" "is actually input paging, 300 pieces of code is not possible without paging
End If
Next
%>


Cloud Habitat Community Original chapter, reproduced please indicate the source.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.