Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
poj.js
Package: acmstl.rar [view]
Upload User: sunzhf
Upload Date: 2014-11-23
Package Size: 221k
Code Size: 12k
Category:
STL
Development Platform:
Visual C++
- var Image1= new Image(1024,1);Image1.src = "images/bar.jpg";var isIE = window.navigator.userAgent.indexOf("MSIE 6.0")>=1 || window.navigator.userAgent.indexOf("MSIE 7.0")>=1; function cfdel(id,r) { var s = (r == 0 ? "delete" : "resume"); if (confirm("Are you sure to " + s + " this message?")) { window.location = s + "post?message_id=" + id; } } function emb() { if (confirm("Are you sure to empty your mail box?")) { window.location = "emptymailbox"; } } function ca() { var c = document.getElementById('cba').checked; for(var i = 1; ; ++i) { var cb = document.getElementById('cb' + i); if (cb) { cb.checked = c; } else { break; } } } function ds() { for(var i = 1; ; ++i) { var cb = document.getElementById('cb' + i); if (cb) { if (cb.checked) { if (confirm('Are you sure to delete selected mails?')) { document.delform.submit(); } return; } } else { break; } } alert('No mails selected!'); } var TOTTIME = 150; var RATIO = 3.1415926 / 2 / TOTTIME; var targeth = new Array(); function fold(t,time) { var cur = document.getElementById(t); if (time > 0) { var r = time / TOTTIME; var temp = Math.round(r * cur.offsetHeight); if (isIE) { cur.filters.alpha.opacity= 100 * r; } else { cur.style.opacity = r; } if (temp > 1) { cur.style.height = temp; } else { cur.style.visibility="hidden"; cur.style.height = 1; return; } var recur = "fold('"+t+"',"+(time-10)+")"; setTimeout(recur,10); } else { cur.style.visibility='hidden'; cur.style.height = 1; } } function unfold(t,time,h) { var cur = document.getElementById(t); if (time > 0) { var r = 1 - time / TOTTIME; var temp = Math.round(r*h); if (temp > 0) cur.style.height = temp; if (isIE) { cur.filters.alpha.opacity= 100 * r; } else { cur.style.opacity = r; } var recur = "unfold('"+t+"',"+(time-10)+","+h+")"; setTimeout(recur,10); } else { cur.style.height=""; if (isIE) cur.filters.alpha.opacity = 100; else cur.style.opacity = 1; } } function sh(tb) { var tmp_u='u'+tb, tmp_i='i'+tb; var ele_u = document.getElementById(tmp_u); if (ele_u.style.visibility != "hidden") { var temph = ele_u.offsetHeight; fold(tmp_u, TOTTIME); targeth[tmp_u] = temph; document.getElementById(tmp_i).src='images/op.gif'; } else { document.getElementById(tmp_i).src='images/om.gif'; ele_u.style.visibility = ""; if (targeth[tmp_u] == null || targeth[tmp_u] == undefined) { ele_u.style.height='100%'; targeth[tmp_u] = ele_u.offsetHeight; ele_u.style.height=1; } unfold(tmp_u, TOTTIME,targeth[tmp_u]); } } function s2(tb) { var tmp_u='u'+tb, tmp_i='i'+tb; if (document.getElementById(tmp_u).style.display != "none") { document.getElementById(tmp_u).style.display = "none"; document.getElementById(tmp_i).src='images/op.gif'; } else { document.getElementById(tmp_u).style.display = ""; document.getElementById(tmp_i).src='images/om.gif'; } } function scbg(objRef, state) { objRef.style.backgroundColor = (1 == state) ? '#DAE6FF' : '#f1f1fd'; return; } function init() { if (document.all) { topbar.style.position = "absolute"; } } function check() { topbar.style.top = document.documentElement.scrollTop; } g_myBodyInstance = (document.documentElement ? document.documentElement : window); g_myBodyInstance.onscroll = check; var onit=true; var num=0; function moveup(iteam,top,txt,rec) { temp = eval(iteam); tempat = eval(top); temptxt = eval(txt); temprec = eval(rec); at = parseInt(temp.style.top); temprec.style.display = ""; if (num > 27) { temptxt.style.display = ""; } if(at>(tempat-28) && onit) { num++; temp.style.top = at-1; Stop=setTimeout("moveup(temp,tempat,temptxt,temprec)",10); } else { return; } } function movedown(iteam,top,txt,rec) { temp = eval(iteam); temptxt = eval(txt); temprec = eval(rec); clearTimeout(Stop); temp.style.top = top; num = 0; temptxt.style.display = "none"; temprec.style.display = "none"; } function ontxt(iteam,top,txt,rec) { temp = eval(iteam); temptxt = eval(txt); temprec = eval(rec); if (onit) { temp.style.top = top-28; temptxt.style.display = ""; temprec.style.display = ""; } } function movereset(over) { if (over==1) { onit=false; } else { onit=true; } } function table_n_ie(num, tot1, tot2, href01) { var i; var allvalues = 0; for (i=0; i<num; i++) { allvalues += sa[0][i]; } document.write("<br><p align=center><font size=5 color=blue>Statistics</font></p>"); document.write("<table class=a borderColor=#ffffff border=1 width=80% align=center>"); document.write("<tr><td width=80%>Total Submits</td><td align=right><a href=" + href01 + ">" + allvalues + "</a></td></tr>"); document.write("<tr><td>Users Submitted</td><td align=right>" + tot1 + "</td></tr>"); document.write("<tr><td>Users Solved</td><td align=right>" + tot2 + "</td></tr>"); for (i = 0; i < num; i++) { document.write("<tr><td>" + sa[1][i] + "</td><td align=right>" + "<a href=" + sa[2][i] + ">" + sa[0][i] + "</a></td></tr>"); } document.write("</table>"); } function table(num,table_left,table_top,all_width,all_height,table_title,unit,radius,l_width,tot1,tot2,href01) { if (!(window.navigator.userAgent.indexOf("MSIE 6.0")>=1 || window.navigator.userAgent.indexOf("MSIE 7.0")>=1)) { table_n_ie(num, tot1, tot2, href01); return; } var allvalues=0; var color = new Array(); var bg_color = new Array(num); var pie = new Array(num); color[0]="#19ff19"; color[1]="#ff8c19"; color[2]="#ff1919"; color[3]="#ffff19"; color[4]="#1919ff"; color[5]="#fc0000"; color[6]="#3cc000"; color[7]="#ff19ff"; color[8]="#993300"; color[9]="#f60000"; for (i=0,j=0; i<num; i++,j++) { bg_color[i] = color[j]; if (j == color.length) { j = -1; } } for (i=0; i<num; i++) { allvalues += sa[0][i]; } var k = 0; for (i=0; i<num-1; i++) { pie[i] = parseInt((sa[0][i])/allvalues*10000)/10000; k += pie[i]; } pie[num-1] = 1-k; document.writeln("<v:shapetype id='Cake_3D' coordsize='21600,21600' o:spt='95' adj='11796480,5400' path='al10800,10800@0@0@2@14,10800,10800,10800,10800@3@15xe'></v:shapetype>"); document.writeln("<v:shapetype id='3dtxt' coordsize='21600,21600' o:spt='136' adj='10800' path='m@7,l@8,m@5,21600l@6,21600e'>"); document.writeln("<v:path textpathok='t' o:connecttype='custom' o:connectlocs='@9,0;@10,10800;@11,21600;@12,10800' o:connectangles='270,180,90,0'/>"); document.writeln("<v:textpath on='t' fitshape='t'/>"); document.writeln("<o:lock v:ext='edit' text='t' shapetype='t'/>"); document.writeln("</v:shapetype>"); document.writeln("<v:group ID='table' style='position:absolute;left:" + table_left + "px;top:" + table_top + "px;WIDTH:" + l_width + "px;HEIGHT:" + all_height + "px;' coordsize = '21000,11500'>"); document.writeln("<v:Rect style='position:relative;left:500;top:200;width:20000;height:800'filled='false' stroked='false'>"); document.writeln("<v:TextBox inset='0pt,0pt,0pt,0pt'>"); document.writeln("<table width='100%' border='0' align='center' cellspacing='0'>"); document.writeln("<tr>"); document.writeln("<td align='center' valign='middle'><div style='font-size:15pt; font-family:Arial, Helvetica, sans-serif;'><B>" + table_title + "</B></div></td>"); document.writeln("</tr>"); document.writeln("</table>"); document.writeln("</v:TextBox>"); document.writeln("</v:Rect> "); var height0 = 7000/11; document.writeln("<v:rect id='back' style='position:relative;left:500;top:1000;width:20000; height:" + ((num+3)*height0+3400) + ";' onmouseover='movereset(1)' onmouseout='movereset(0)' fillcolor='#9cf' strokecolor='#888888'>"); document.writeln("<v:fill rotate='t' angle='-45' focus='100%' type='gradient'/>"); document.writeln("</v:rect>"); document.writeln("<v:rect id='back' style='position:relative;left:800;top:4100;width:18000; height:" + ((num+3)*height0+0) + ";' fillcolor='#9cf' stroked='t' strokecolor='#0099ff'>"); document.writeln("<v:fill rotate='t' angle='-175' focus='100%' type='gradient'/>"); document.writeln("<v:shadow on='t' type='single' color='silver' offset='3pt,3pt'/>"); document.writeln("</v:rect>"); document.writeln("<a class=s0 style='cursor:hand;' href='" + href01 + "'>"); document.writeln("<v:Rect id='recrec11' style='position:relative;left:1300;top:4200;width:17000;height:500' fillcolor='#000000' stroked='f' strokecolor='#000000'>"); document.writeln("<v:TextBox inset='8pt,4pt,3pt,3pt' style='font-size:11pt; font-family:Arial, Helvetica, sans-serif;'><div><div class=sd1>Total Submit:</div><div class=sd2>" + allvalues + unit + "</div></div></v:TextBox>"); document.writeln("</v:Rect></a>"); document.writeln("<v:Rect style='position:relative;left:1300;top:4700;width:17000;height:500' fillcolor='#000000' stroked='f' strokecolor='#000000'>"); document.writeln("<v:TextBox inset='8pt,4pt,3pt,3pt' style='font-size:11pt; font-family:Arial, Helvetica, sans-serif;'><div align='left'><font color='#ffffff'><B><div class=sd1>User Submit:</div><div class=sd2>" + tot1 + unit + "</div></B></font></div></v:TextBox>"); document.writeln("</v:Rect> "); document.writeln("<v:Rect style='position:relative;left:1300;top:5200;width:17000;height:500' fillcolor='#000000' stroked='f' strokecolor='#000000'>"); document.writeln("<v:TextBox inset='8pt,4pt,3pt,3pt' style='font-size:11pt; font-family:Arial, Helvetica, sans-serif;'><div align='left'><font color='#ffffff'><B><div class=sd1>User Solve:</div><div class=sd2>" + tot2 + unit + "</div></B></font></div></v:TextBox>"); document.writeln("</v:Rect> "); for (i=0; i<num; i++) { document.writeln("<a class=s style='cursor:hand;' onmouseover='moveup(cake" + i + "," + (table_top+radius/14) + ",txt" + i + ",rec" + i + ")'; onmouseout='movedown(cake" + i + "," + (table_top+radius/14) + ",txt" + i + ",rec" + i + ");' href=" + sa[2][i] + ">"); document.writeln("<v:Rect id='rec" + i + "' style='position:relative;left:1100;top:" + Math.round((i+3)*height0+3850) + ";width:17000;height:600;display:none' fillcolor='#efefef' strokecolor='" + bg_color[i] + "'>"); document.writeln("<v:fill opacity='.6' color2='fill darken(118)' o:opacity2='.6' rotate='t' method='linear sigma' focus='100%' type='gradient'/>"); document.writeln("</v:Rect>"); document.writeln("<v:Rect style='position:relative;left:1300;top:" + Math.round((i+3)*height0+3900) + ";width:1300;height:500' fillcolor='" + bg_color[i] + "' stroked='f'/>"); document.writeln("<v:Rect style='position:relative;left:3100;top:" + Math.round((i+3)*height0+3900) + ";width:14400;height:500' filled='f' stroked='f'>"); document.writeln("<v:TextBox inset='0pt,5pt,0pt,0pt' style='font-size:10pt; font-family:Arial, Helvetica, sans-serif; cursor:hand;'><div><div style='position:absolute; left:0px'>" + sa[1][i] + ":</div><div style='position:absolute; right:0px'><b>" + sa[0][i] + unit + "</b></div></div></v:TextBox>"); document.writeln("</v:Rect>"); document.writeln("</a>"); } document.writeln("</v:group>"); var k1 = 180; var k4 = 10; for (i=0; i<num; i++) { k2 = 360 * pie[i]/2; k3 = k1 + k2; if (k3 >= 360) { k3 = k3 - 360; } kkk = (-11796480 * pie[i] + 5898240); k5 = 3.1414926 * 2 * (180-(k3-180))/360; R = radius/2; txt_x = table_left + radius/8-30 + R + R * Math.sin(k5) * 0.7; txt_y = table_top + radius/14-39 + R + R * Math.cos(k5) * 0.7 * 0.5; titlestr = "Type :" + sa[1][i] + " Number :" + sa[0][i] + unit + " Rate :" + Math.round(pie[i]*10000)/100 + "% "; document.writeln("<div style='cursor:hand;'>"); document.writeln("<v:shape id='cake" + i + "' type='#Cake_3D' title='" + titlestr + "'"); document.writeln("style='position:absolute;left:" + (table_left+radius/8) + "px;top:" + (table_top+radius/14) + "px;WIDTH:" + radius + "px;HEIGHT:" + radius + "px;rotation:" + k3 + ";z-index:" + k4 + "'"); document.writeln("adj='" + kkk + ",0' fillcolor='" + bg_color[i] + "' onmouseover='moveup(cake" + i + "," + (table_top+radius/14) + ",txt" + i + ",rec" + i + ")'; onmouseout='movedown(cake" + i + "," + (table_top+radius/14) + ",txt" + i + ",rec" + i + ");'>"); document.writeln("<v:fill opacity='60293f' color2='fill lighten(120)' o:opacity2='60293f' rotate='t' angle='-135' method='linear sigma' focus='100%' type='gradient'/>"); document.writeln("<o:extrusion v:ext='view' on='t' backdepth='25' rotationangle='60' viewpoint='0,0'viewpointorigin='0,0' skewamt='0' lightposition='-50000,-50000' lightposition2='50000'/>"); document.writeln("</v:shape>"); document.writeln("<v:shape id='txt" + i + "' type='#3dtxt' style='position:absolute;left:" + txt_x + "px;top:" + txt_y + "px;z-index:20;display:none;width:50; height:10;' fillcolor='black'"); document.writeln("onmouseover='ontxt(cake" + i + "," + (table_top+radius/14) + ",txt" + i + ",rec" + i + ")'>"); document.writeln("<v:textpath style="font-family:Arial; v-text-kern:t" trim='true' string='" + Math.round(pie[i]*10000)/100 + "%'/>"); document.writeln("</v:shape>"); document.writeln("</div>"); k1 = k1+k2*2; if (k1 >= 360) { k1 = k1-360; } if (k1 > 180) { k4 = k4+1; } else { k4 = k4-1; } } }