|
![]() |
名片设计 CorelDRAW Illustrator AuotoCAD Painter 其他软件 Photoshop Fireworks Flash |
|
***start input.asp*** <% thenum= request("num") %> <style type="text/css"> <!-- .trees { border-color: black black black #666666; padding-left: 12px; border-style: solid; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 3px; margin-top: 2px; margin-bottom: 2px} --> </style> <div class = "trees" id="tree<%=thenum%>"><%=thenum%><span id="follow<%=thenum%>"><iframe name = "agent<%=thenum%>" style="display:none" src="prime_number.asp?num=<%=thenum%>"></iframe></span></div> ***end input.asp*** ***start prime_number.asp*** <% IsPrimeNumber = false thenum = request("num") if thenum = 2 or thenum = 1 then IsPrimeNumber = false else for i = 2 to thenum -1 if thenum / i = int(thenum / i) then IsPrimeNumber = true: m = i : exit for next end if if IsPrimeNumber = false then %> <script> var htmltext = \\'<div class = "trees"><%=thenum%>*</div>\\'; parent.follow<%=thenum%>.innerHTML = htmltext; </script> <%else%> <%k = thenum / m%> <script> var htmltext = \\'<div class = "trees"><%=m%>*</div><div class = "trees" id="tree<%=k%>"><%=k%><span id="follow<%=k%>"><iframe name = "agent<%=k%>" style="display:none" src="prime_number.asp?num=<%=k%>"></iframe></span></div>\\'; parent.follow<%=thenum%>.innerHTML = htmltext; </script> <%end if%> ***end prime_number.asp*** 算法应用:分布多线程树读取 返回类别: 教程 上一教程: 动态网页制作技术JSP与ASP的比较 下一教程: 亲密接触ASP.Net(4) 您可以阅读与"分解质因数(asp 分布递归法)"相关的教程: · 分解质因数(ASP 分布递归法) · Flash+XML+ASP作品展示程序 · 调试 ASP 中使用的 VISUAL BASIC COM 组件 · 从ASP迁移至ASP+ --HTML表格转变为ASP+列表 · ASP关于分页办法 |
![]() ![]() |
快精灵印艺坊 版权所有 |
首页![]() ![]() ![]() ![]() ![]() ![]() ![]() |