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.