Asp generates code for a large number of regular text content in batches

Source: Internet
Author: User

Today, when I was working on a page, it was impossible to manually modify hundreds of files one by one, because the path id in the middle needs to be modified, which has a certain regularity. So I thought about it, I feel that asp is relatively simple, and php is also the same principle. vbs and js are a little troublesome, because there are too many texts, so there cannot be so many documents. write.

Batch generation is definitely inseparable from the for loop. Here is a brief introduction and you will understand it.

Copy codeThe Code is as follows: <%
Dxy = 1
For 1 to 300
%>
Number <% = dxy %>: <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"> the 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-click to save the target as "method to download, or use the download tool) </div>
<Br/>
<%
Dxy = dxy + 1
If dxy mod 20 = 0 then
Response. write "# paging character # <br>" 'is actually an input paging, and the code segment 300 cannot be paginated.
End if
Next
%>

The original Chapter of the script home. For more information, see the source.

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.