MyFiles.cs 160 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980
  1. using System;
  2. using System.IO;
  3. using System.Text;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Web;
  7. /// <summary>
  8. ///MyPicture 的摘要说明
  9. /// </summary>
  10. public class MyFiles
  11. {
  12. public MyFiles()
  13. {
  14. //
  15. //TODO: 在此处添加构造函数逻辑
  16. //
  17. }
  18. //获取文件扩展名
  19. public string GetExtension(string fileName)
  20. {
  21. int i = fileName.LastIndexOf(".") + 1;
  22. string Name = fileName.Substring(i);
  23. return Name;
  24. }
  25. //获取文件的名字
  26. public string GetFileName(string fileName)
  27. {
  28. int i = fileName.LastIndexOf("\\") + 1;
  29. string Name = fileName.Substring(i);
  30. return Name;
  31. }
  32. //获得中不含文件名的路径
  33. public string GetURLnotFilename()
  34. {
  35. string s1 = HttpContext.Current.Request.Url.ToString();
  36. string s2 = System.IO.Path.GetFileName(HttpContext.Current.Request.Path).ToString();
  37. string s3 = subStr(s1, 0, s1.Length - s2.Length);
  38. return s3;
  39. }
  40. //将脚本转换为ASP.NET 语句
  41. public string ScriptToStringBulder(string Script_filename)
  42. {
  43. StringBuilder sb = new StringBuilder();
  44. if (!File.Exists(Script_filename))
  45. {
  46. HttpContext.Current.Response.Write("<script>alert('文件" + Script_filename + "不存在!')</script>");
  47. }
  48. else
  49. {
  50. StreamReader sr = File.OpenText(Script_filename);
  51. string input;
  52. int s = 0;
  53. while ((input = sr.ReadLine()) != null)
  54. {
  55. s = s + 1;
  56. sb.Append("sb.Append(\"" + input + "\");\n");
  57. //Response.Write(input + "<br>");
  58. }
  59. sr.Close();
  60. }
  61. return sb.ToString();
  62. }
  63. //一行一行读文本文件的内容
  64. public string LineReadTxtFile(string Txt_filename)
  65. {
  66. StringBuilder sb = new StringBuilder();
  67. if (!File.Exists(Txt_filename))
  68. {
  69. HttpContext.Current.Response.Write("<script>alert('文件" + Txt_filename + "不存在!')</script>");
  70. }
  71. else
  72. {
  73. StreamReader sr = File.OpenText(Txt_filename);
  74. string input;
  75. int s = 0;
  76. while ((input = sr.ReadLine()) != null)
  77. {
  78. s = s + 1;
  79. sb.Append(input + "\n");
  80. //Response.Write(input + "<br>");
  81. }
  82. sr.Close();
  83. }
  84. return sb.ToString();
  85. }
  86. /// <summary>
  87. /// 自定义截取字符串方法
  88. /// </summary>
  89. /// <param name="str">原始字符串</param>
  90. /// <param name="index">起始位</param>
  91. /// <param name="count">截取字节长度</param>
  92. /// <returns></returns>
  93. public string subStr(string str, int index, int count)
  94. {
  95. string retStr = string.Empty;
  96. byte[] strs = System.Text.Encoding.Default.GetBytes(str);
  97. retStr = System.Text.Encoding.Default.GetString(strs, index, count);
  98. return retStr;
  99. }
  100. public string GetAllFiles(string Dir)
  101. {
  102. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(Dir));
  103. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  104. foreach (FileInfo FileName in ArrUnPostil)
  105. {
  106. if (FileName.Length > 0)
  107. {
  108. HttpContext.Current.Response.Write(FileName.Name + "<BR>");
  109. }
  110. }
  111. return "";
  112. }
  113. public static int GetFilesnumber(string Dir)
  114. {
  115. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath("SCripts"));
  116. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  117. int k = 0;
  118. foreach (FileInfo FileName in ArrUnPostil)
  119. {
  120. if (FileName.Length > 0)
  121. {
  122. k = k + 1;
  123. }
  124. }
  125. return k;
  126. }
  127. public void CreateTestFile(String htmlTestFilename, String keycode)
  128. {//htmlTestFilename 生成测试文件详细路径及文件名 关键代码,如TX18(HttpContext.Current.Server.MapPath("images"), "", "", "").ToString()
  129. string FILE_NAME = "";
  130. FILE_NAME = HttpContext.Current.Server.MapPath(htmlTestFilename);
  131. if (File.Exists(FILE_NAME)) //如果文件存在,则先删除
  132. { File.Delete(FILE_NAME); }
  133. StreamWriter sr;
  134. sr = File.CreateText(FILE_NAME);
  135. sr.WriteLine("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\">");
  136. sr.WriteLine("\n <head>");
  137. sr.WriteLine("\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"/>");
  138. sr.WriteLine("\n <title>刘友生设计图片特效</title>");
  139. sr.WriteLine("\n </head><body>");
  140. sr.WriteLine(keycode);
  141. sr.WriteLine("\n </body></html>");
  142. sr.Close();
  143. }
  144. //+ imagesDir + "\\" + FileName.Name +
  145. // sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"css/TX29.css\" />");
  146. //sb.Append("\n <script type=\"text/javascript\" src=\"js/TX29.js\"></script>");
  147. /// <summary>
  148. ///根据图片文件夹,自动生成播放表列XML文件
  149. /// </summary>
  150. /// <param name="imagesDir">图片所在目录 </param>
  151. /// <param name="xmlDirName">XML文件存放目录</param>
  152. /// <param name="maxfileNumber">最多播放表列文件列表数</param>
  153. /// <param name="XMLFilename">播放表列XML文件名</param>
  154. /// <param name="firstrowcode">XML文件第一行代码 </param>
  155. /// <param name="endrowcode"> XML文件最后一行代码 </param>
  156. /// <returns></returns>
  157. public void CreateXMLFile(String imagesDir, String xmlDirName, int maxfileNumber, string XMLFilename, string firstrowcode, string endrowcode, string middlerowcode)
  158. {//图片所在目录
  159. //xmlDirName 生成XML所在目录
  160. //maxfileNumber最多文件数
  161. //XMLFilename生成XML文件名
  162. //firstrowcode XML文件第一行代码
  163. //endrowcode XML文件最后一行代码
  164. //middlerowcode XML文件根据文件生成的代码
  165. string FILE_NAME = "";
  166. FILE_NAME = HttpContext.Current.Server.MapPath(xmlDirName + "//" + XMLFilename);
  167. DirectoryInfo UnPostil = new DirectoryInfo(imagesDir);
  168. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  169. if (File.Exists(FILE_NAME)) //如果文件存在,则先删除
  170. { File.Delete(FILE_NAME); }
  171. StreamWriter sr;
  172. sr = File.CreateText(FILE_NAME);
  173. sr.WriteLine(firstrowcode);
  174. int s = 0;
  175. foreach (FileInfo FileName in ArrUnPostil)
  176. {
  177. if (FileName.Length > 0)
  178. {
  179. s = s + 1;
  180. // sr.WriteLine("\n <item url=\"#\" target=\"_blank\" img=\"" + imagesDir + "\\" + FileName.Name + "\" thumb=\"" + imagesDir + "\\" + FileName.Name + "\"/>");
  181. sr.WriteLine("\n <project mytitle=\"刘友生设计\" mypic=\"" + imagesDir + "\\" + FileName.Name + "\" links=\"#\" />"); //TX18
  182. }
  183. if (s == maxfileNumber)
  184. { break; }
  185. }
  186. sr.WriteLine(middlerowcode);
  187. sr.WriteLine("\n " + endrowcode);
  188. sr.Close();
  189. }
  190. //经典相册效果
  191. public string TX40(string imagesDir, int maxfileNumber)
  192. {
  193. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  194. DirectoryInfo UnPostil = new DirectoryInfo(imagesDir);
  195. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  196. sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"css/TX40.css\" />");
  197. sb.Append("\n <div id=info>");
  198. sb.Append("\n <h3>Doorle Photo");
  199. sb.Append("\n <div id=zs>");
  200. sb.Append("\n <ul>");
  201. int s = 0;
  202. foreach (FileInfo FileName in ArrUnPostil)
  203. {
  204. if (FileName.Length > 0)
  205. {
  206. s = s + 1;
  207. int t = s % 6 + 1;
  208. sb.Append("\n <li><a class=\"b"+t.ToString()+" z\" title=photo"+s.ToString()+" href=\"http://www.alixixi.com\" target=_blank>");
  209. sb.Append("<span><img alt=我的第" + s.ToString() + "张照片 src=\"" + imagesDir + "\\" + FileName.Name + "\" onload=\"return imgzoom(this,600);\" onClick=\"javascript:window.open(this.src);\" style=\"cursor:pointer;\"/>");
  210. sb.Append("\n Photo" + s.ToString() +"");
  211. sb.Append("\n www</span></a> ");
  212. sb.Append("</div>");
  213. }
  214. if (s == maxfileNumber)
  215. { break; }
  216. }
  217. // <li><a class="b1 z" title=photo1 href="http://www.alixixi.com" target=_blank><span><img alt=photo1 src="http://img.alixixi.com/mylogo.gif" onload="return imgzoom(this,600);" onClick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  218. //photo1
  219. //www.alixixi.com</span></a>
  220. // <li><a class="b2 z" title=photo2 href="http://www.alixixi.com" target=_blank><span><img alt=photo2 src="http://img.alixixi.com/mylogo1.gif" onload="return imgzoom(this,600);" onClick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  221. //photo2
  222. //www.alixixi.com</span></a>
  223. // <li><a class="b3 z" title=photo3 href="http://www.alixixi.com" target=_blank><span><img alt=photo3 src="http://img.alixixi.com/mylogo2.gif" onload="return imgzoom(this,600);" onClick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  224. //photo3
  225. //www.alixixi.com</span></a>
  226. // <li><a class="b4 z" title=photo4 href="http://www.alixixi.com" target=_blank><span><img alt=photo4 src="http://img.alixixi.com/mylogo3.gif" onload="return imgzoom(this,600);" onClick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  227. //photo4
  228. //www.alixixi.com</span></a>
  229. // <li><a class="b5 z" title=photo5 href="http://www.alixixi.com" target=_blank><span><img alt=photo5 src="http://img.alixixi.com/mylogo.gif" onload="return imgzoom(this,600);" onClick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  230. //photo5
  231. //www.alixixi.com</span></a>
  232. // <li><a class="b6 z" title=photo6 href="http://www.alixixi.com" target=_blank><span><img alt=photo6 src="http://img.alixixi.com/mylogo1.gif" onload="return imgzoom(this,600);" onClick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  233. //photo6
  234. //www.alixixi.com</span></a>
  235. // <li><a class="b1 z" title=photo1 href="http://www.alixixi.com" target=_blank><span><img alt=photo1 src="http://img.alixixi.com/mylogo2.gif" onload="return imgzoom(this,600);" onClick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  236. //photo1
  237. //www.alixixi.com</span></a>
  238. // <li><a class="b2 z" title=photo2 href="http://www.alixixi.com" target=_blank><span><img alt=photo2 src="http://img.alixixi.com/mylogo3.gif" onload="return imgzoom(this,600);" onClick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  239. //photo2
  240. //www.alixixi.com</span></a>
  241. sb.Append("\n </li></ul></div></div>");
  242. return sb.ToString();
  243. }
  244. //炫酷精美图片展示效果7 OK, 类似分屏效果
  245. public string TX39(string imagesDir, int maxfileNumber)
  246. {
  247. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  248. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  249. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  250. sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"css/TX39.css\" />");
  251. sb.Append("\n <script type=\"text/javascript\" src=\"js/TX39.js\"></script>");
  252. sb.Append("\n <div id=\"center\">");
  253. sb.Append("\n <div id=\"slider\">");
  254. int s = 0;
  255. foreach (FileInfo FileName in ArrUnPostil)
  256. {
  257. if (FileName.Length > 0)
  258. {
  259. s = s + 1;
  260. sb.Append("\n <div class=\"slide\">");
  261. sb.Append("\n <img class=\"diapo\" src=\"" + imagesDir + "/" + FileName.Name + "\" alt=\"广东松山职业技术学院计算机系刘友生设计\" onload=\"return imgzoom(this,600);\" onclick=\"javascript:window.open(this.src);\" style=\"cursor:pointer;\"/>");
  262. sb.Append("\n <div class=\"text\"><span class=\"title\"> </div>");
  263. sb.Append("\n </div>");
  264. }
  265. if (s == maxfileNumber)
  266. { break; }
  267. }
  268. //<div class="slide">
  269. // <img class="diapo" src="/image/1.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  270. // <div class="text"><span class="title">站长特效网,专注于网页特效及广告代码,供站长和js爱好者参考。</div>
  271. //</div>
  272. //<div class="slide">
  273. // <img class="diapo" src="/image/2.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  274. // <div class="text"> <span class="title">zzjs.net,打造国内最帅的网页特效站。</div>
  275. //</div>
  276. //<div class="slide">
  277. // <img class="diapo" src="/image/3.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  278. // <div class="text"> <span class="title">觉得不错就收藏本站吧。</div>
  279. //</div>
  280. //<div class="slide">
  281. // <img class="diapo" src="img/04.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  282. // <div class="text"> <span class="title">也可以推荐给你的朋友。</div>
  283. //</div>
  284. //<div class="slide">
  285. // <img class="diapo" src="img/01.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  286. // <div class="text"> <span class="title">zzjs.net</span>站长zz,js特效,.net也精彩
  287. // </div>
  288. //</div>
  289. //<div class="slide">
  290. // <img class="diapo" src="img/02.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  291. // <div class="text">
  292. // <span class="title">站长特效</span>我们追求的不是数量,而是质量。 </div>
  293. //</div>
  294. //<div class="slide">
  295. // <img class="diapo" src="img/03.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  296. // <div class="text">
  297. // <span class="title">zzjs.net</span>感谢您的光临,有什么意见或建议欢迎留言。</div>
  298. //</div>
  299. //<div class="slide">
  300. // <img class="diapo" src="/image/3.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  301. // <div class="text">
  302. // <span class="title">站长特效</span>有你更精彩。</div>
  303. //</div>
  304. //<div class="slide">
  305. // <img class="diapo" src="/image/4.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  306. // <div class="text">
  307. // <span class="title">zzjs.net</span>打造国内最帅的网页特效站。</div>
  308. //</div>
  309. //<div class="slide">
  310. // <img class="diapo" src="/image/5.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  311. // <div class="text"> <a class="title" href="http://www.zzjs.net">呵呵</a>这个特效挺酷吧。站长特效网,永不言败</div>
  312. //</div>
  313. sb.Append("\n </div>");
  314. sb.Append("\n </div>");
  315. sb.Append("\n <script type=\"text/javascript\">");
  316. /* ==== start script ==== */
  317. sb.Append("\n slider.init();");
  318. sb.Append("\n </script>");
  319. return sb.ToString();
  320. }
  321. //炫酷精美图片展示效果六OK, 分别用鼠标移动在图片上,单击、移动、双击看看效果
  322. public string TX38(string imagesDir, int maxfileNumber)
  323. {
  324. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  325. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  326. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  327. sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"css/TX38.css\" />");
  328. sb.Append("\n <script type=\"text/javascript\" src=\"js/TX38.js\"></script>");
  329. sb.Append("\n <div id=\"screen\">");
  330. sb.Append("\n </div>");
  331. sb.Append("\n <div id=\"bankImages\">");
  332. int s = 0;
  333. foreach (FileInfo FileName in ArrUnPostil)
  334. {
  335. if (FileName.Length > 0)
  336. {
  337. s = s + 1;
  338. // sb.Append("\n img" + s.ToString() + "=new Image ();img" + s.ToString() + ".src='images/" + FileName.Name + "';");
  339. sb.Append("\n <img alt=\"广东松山职业技术学院计算机系刘友生设计\" src=\"" + imagesDir + "/" + FileName.Name + "\" onload=\"return imgzoom(this,600);\" onclick=\"javascript:window.open(this.src);\" style=\"cursor:pointer;\"/>");
  340. }
  341. if (s == maxfileNumber)
  342. { break; }
  343. }
  344. sb.Append("\n </div>");
  345. sb.Append("\n <script type=\"text/javascript\">");
  346. /* ==== start script ==== */
  347. sb.Append("\n onresize = tv.resize;");
  348. sb.Append("\n tv.init();");
  349. sb.Append("\n </script>");
  350. return sb.ToString();
  351. }
  352. //炫酷精美图片展示效果三OK, 分别用鼠标移动在图片上,单击、移动、双击看看效果
  353. public string TX37(string imagesDir, int maxfileNumber, int picW, int picH)
  354. {
  355. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  356. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  357. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  358. sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"css/TX37.css\" />");
  359. sb.Append("\n <script type=\"text/javascript\" src=\"js/TX37.js\"></script>");
  360. sb.Append("\n <div>分别用鼠标移动在图片上,单击、移动、双击看看效果</div>");
  361. sb.Append("\n <div id=\"diapoContainer\">");
  362. //<img class="imgsrc" src="img/01.jpg" alt="站长特效一号图片" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  363. //<img class="imgsrc" src="img/02.jpg"alt="站长特效二号图片" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  364. //<img class="imgsrc" src="img/03.jpg" alt="站长特效三号图片" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  365. //<img class="imgsrc" src="img/04.jpg" alt="站长特效四号图片" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  366. //<img class="imgsrc" src="img/01.jpg" alt="站长特效五号图片" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  367. //<img class="imgsrc" src="img/03.jpg" alt="站长特效六号图片" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  368. //<img class="imgsrc" src="img/04.jpg" alt="站长特效七号图片" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  369. //<img class="imgsrc" src="img/03.jpg" alt="站长特效八号图片" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
  370. int s = 0;
  371. foreach (FileInfo FileName in ArrUnPostil)
  372. {
  373. if (FileName.Length > 0)
  374. {
  375. s = s + 1;
  376. // sb.Append("\n img" + s.ToString() + "=new Image ();img" + s.ToString() + ".src='images/" + FileName.Name + "';");
  377. sb.Append("\n <img class=\"imgsrc\" src=\"" + imagesDir + "/" + FileName.Name + "\" alt=\"广东松山职业技术学院计算机系刘友生设计\" onload=\"return imgzoom(this,600);\" onclick=\"javascript:window.open(this.src);\" style=\"cursor:pointer;\"/>");
  378. }
  379. if (s == maxfileNumber)
  380. { break; }
  381. }
  382. sb.Append("\n <div id=\"bkgcaption\">");
  383. sb.Append("\n </div>");
  384. sb.Append("\n <div id=\"caption\">");
  385. sb.Append("\n </div>");
  386. sb.Append("\n </div>");
  387. sb.Append("\n <script type=\"text/javascript\">");
  388. /* ==== start script ==== */
  389. sb.Append("\n function dom_onload() {");
  390. sb.Append("\n if(document.getElementById(\"diapoContainer\")) diapo.init(); else setTimeout(\"dom_onload();\", 128);");
  391. sb.Append("\n }");
  392. sb.Append("\n dom_onload();");
  393. sb.Append("\n </script>");
  394. return sb.ToString();
  395. }
  396. //一款仿切片滤镜的JS焦点图,效果炫丽OK
  397. public string TX36(string imagesDir, int maxfileNumber, int picW, int picH)
  398. {
  399. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  400. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  401. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  402. sb.Append("\n <style type=\"text/css\">");
  403. sb.Append("\n *{margin:0;padding:0;border:0;list-style:none;}");
  404. sb.Append("\n body{font:12px/1.5 Verdana, Geneva, sans-serif;background:#eee;padding:20px;}");
  405. /*=========mF_liuzg ========*/
  406. sb.Append("\n .mF_liuzg{position:relative;width:450px;height:296px;overflow:hidden;font:12px/1.5 Verdana,Geneva;background:#fff;}");
  407. sb.Append("\n .mF_liuzg .loading{position:absolute;z-index:9999;width:100%;height:100%;color:#666;text-align:center;padding-top:90px;background:#fff url(img/main_bg.gif) center -40px no-repeat;}/*载入画面*/");
  408. sb.Append("\n .mF_liuzg .pic li{width:450px;position:relative;overflow:hidden;*margin-top:-2px;}");
  409. sb.Append("\n .mF_liuzg .pic li p{width:450px;position:absolute;}");
  410. sb.Append("\n .mF_liuzg .pic li p a{display:block;}/*图片和焦点图框架一样大小*/");
  411. sb.Append("\n .mF_liuzg .pic li p img{width:450px;height:296px;}");
  412. sb.Append("\n .mF_liuzg .txt li{position:absolute;z-index:2;bottom:0;width:450px;height:36px;line-height:34px;overflow:hidden;display:none;}");
  413. sb.Append("\n .mF_liuzg .txt li a{display:block;color:#fff;padding:2px 0 0 16px;font-size:14px;font-weight:bold;text-decoration:none;}/*标题样式*/");
  414. sb.Append("\n .mF_liuzg .txt-bg{position:absolute;bottom:0;z-index:1;width:450px;height:36px;overflow:hidden;background:#000;filter:alpha(opacity=40);opacity:0.4;}/*标题背景*/");
  415. sb.Append("\n .mF_liuzg .num{position:absolute;z-index:3;bottom:6px;right:8px;color:#333;}/*按钮样式*/");
  416. sb.Append("\n .mF_liuzg .num li{float:left;width:22px;height:18px;position:relative;border:1px solid #333;line-height:18px;text-align:center;margin-right:3px;cursor:pointer;background:#aaa;filter:alpha(opacity=90);opacity:0.9;}");
  417. sb.Append("\n .mF_liuzg .num li.current,.mF_liuzg .num li.hover{background:#f60;color:#fff;font-weight:bold;height:20px;line-height:20px;top:-2px;}");
  418. sb.Append("\n </style>");
  419. sb.Append("\n <script type=\"text/javascript\">");
  420. sb.Append("\n var myFocus={");
  421. //Design By Koen @ 2010.8.x
  422. sb.Append("\n $:function(id){return document.getElementById(id);},");
  423. sb.Append("\n $$:function(tag,obj){return (typeof obj=='object'?obj:this.$(obj)).getElementsByTagName(tag);},");
  424. sb.Append("\n style:function(obj,style){return (+[1,])?window.getComputedStyle(obj,null)[style]:obj.currentStyle[style];},//getStyle简化版");
  425. sb.Append("\n easeOut:function(t,b,c,d){return -c*((t=t/d-1)*t*t*t - 1) + b;},");
  426. sb.Append("\n move:function(obj,prop,val,type,spd,fn){//运动函数,spd为运动需要的时间,时间越大速度越小");
  427. sb.Append("\n var t=0,b=parseInt(this.style(obj,prop)),c=val-b,d=spd||50,st=type,m=c>0?'ceil':'floor';");
  428. sb.Append("\n if(obj[prop+'Timer']) clearInterval(obj[prop+'Timer']);");
  429. sb.Append("\n obj[prop+'Timer']=setInterval(function(){");
  430. sb.Append("\n if(t<d){obj.style[prop]=Math[m](myFocus[st](++t,b,c,d))+'px';}");
  431. sb.Append("\n else {clearInterval(obj[prop+'Timer']);fn&&fn.call(obj);}");
  432. sb.Append("\n },10);return this;");
  433. sb.Append("\n },");
  434. sb.Append("\n addList:function(obj,cla,x){//生成HMTL,cla为列表的class,其中封装有:cla='txt'(生成alt文字),cla='num'(生成按钮数字),cla='thumb'(生成小图)");
  435. sb.Append("\n var s=[],n=x||this.$$('li',this.$$('ul',obj)[0]).length,num=cla.length;");
  436. sb.Append("\n for(var j=0;j<num;j++){");
  437. sb.Append("\n s.push('<ul class='+cla[j]+'>');");
  438. sb.Append("\n for(var i=0;i<n;i++){s.push('<li>'+(cla[j]=='num'?(i+1):(cla[j]=='txt'?this.$$('li',obj)[i].innerHTML.replace(/<img.*?>/i,this.$$('img',obj)[i].alt):(cla[j]=='thumb'?'<img src='+(this.$$('img',obj)[i].getAttribute(\"thumb\")||this.$$('img',obj)[i].src)+' />':'')))+'<span></span></li>')};");
  439. sb.Append("\n s.push('</ul>');");
  440. sb.Append("\n }; obj.innerHTML+=s.join('');");
  441. sb.Append("\n },");
  442. sb.Append("\n setting:function(par){");
  443. sb.Append("\n if(window.attachEvent){window.attachEvent('onload',function(){myFocus[par.style](par)});}");
  444. sb.Append("\n else{window.addEventListener('load',function(){myFocus[par.style](par)},false);}");
  445. sb.Append("\n },");
  446. sb.Append("\n mF_liuzg:function(par){");
  447. sb.Append("\n var box=this.$(par.id),boxH=box.offsetHeight,t=par.time*1000;");
  448. sb.Append("\n this.addList(box,['txt-bg','txt','num']);");
  449. sb.Append("\n var pic=this.$$('li',this.$$('ul', box)[0]),n=pic.length;");
  450. sb.Append("\n var c=boxH%par.chip?8:par.chip,h=boxH/c,pics=[];");
  451. sb.Append("\n for(var i=0;i<c;i++){");
  452. sb.Append("\n pics.push('<li><p>')");
  453. sb.Append("\n for(var j=0;j<n;j++) pics.push(pic[j].innerHTML);");
  454. sb.Append("\n pics.push('</p></li>')");
  455. sb.Append("\n }");
  456. sb.Append("\n this.$$('ul', box)[0].innerHTML=pics.join('');");
  457. sb.Append("\n var ul=this.$$('ul',box),txt=this.$$('li',ul[2]),btn=this.$$('li',ul[3]),pic=this.$$('li',ul[0]);");
  458. sb.Append("\n for(var i=0;i<c;i++){//初始化样式设置");
  459. sb.Append("\n this.$$('p',pic[i])[0].style.top=-i*h+'px';");
  460. sb.Append("\n pic[i].style.height=h+'px';");
  461. sb.Append("\n this.$$('p',pic[i])[0].style.height=boxH*c+'px';");
  462. sb.Append("\n }");
  463. sb.Append("\n var index = 0;//开始显示的序号");
  464. sb.Append("\n box.removeChild(this.$$('div',box)[0]);");
  465. sb.Append("\n var run = function(idx) {");
  466. sb.Append("\n var tt=par.type==4?Math.round(1+(Math.random()*(3-1))):par.type;//效果选择");
  467. sb.Append("\n btn[index].className = '';");
  468. sb.Append("\n txt[index].style.display='none';");
  469. sb.Append("\n if(index==n-1) index=-1;");
  470. sb.Append("\n var N=idx!=undefined?idx:index+1;");
  471. sb.Append("\n var spd=tt==2?20:(tt==1?80:Math.round(20+(Math.random()*(80-20))));");
  472. sb.Append("\n for(var i=0;i<c;i++){");
  473. sb.Append("\n if(tt==3) spd=Math.round(20+(Math.random()*(80-20)));");
  474. sb.Append("\n myFocus.move(myFocus.$$('p',pic[i])[0],'top',-N*c*h-i*h,'easeOut',spd);");
  475. sb.Append("\n spd=tt==2?spd+10:(tt==1?spd-10:spd);");
  476. sb.Append("\n }");
  477. sb.Append("\n btn[N].className = 'current';");
  478. sb.Append("\n txt[N].style.display='block';");
  479. sb.Append("\n index = N;");
  480. sb.Append("\n }");
  481. sb.Append("\n run(index);");
  482. sb.Append("\n var auto=setInterval(function(){run()},t);");
  483. sb.Append("\n for (var j=0;j<n;j++){");
  484. sb.Append("\n btn[j].j=j;");
  485. sb.Append("\n btn[j].onclick=function(){if(!this.className) run(this.j)}");
  486. sb.Append("\n }");
  487. sb.Append("\n box.onmouseover=function(){clearInterval(auto);}");
  488. sb.Append("\n box.onmouseout=function(){auto=setInterval(function(){run()},t);}");
  489. sb.Append("\n for(var i=0,lk=this.$$('a',box),ln=lk.length;i<ln;i++) lk[i].onfocus=function(){this.blur();}//去除虚线框");
  490. sb.Append("\n }");
  491. sb.Append("\n };");
  492. sb.Append("\n myFocus.setting({");
  493. sb.Append("\n style:'mF_liuzg',//style为风格样式,");
  494. sb.Append("\n id:'myFocus',//焦点图ID");
  495. sb.Append("\n chip:8,//图片切片数量,能被焦点图的高整除才有效,默认为8片");
  496. sb.Append("\n type:4,//切片效果,1为甩头,2为甩尾,3为凌乱,4为随机效果");
  497. sb.Append("\n time:4//每帧图片时间间隔");
  498. sb.Append("\n });//更多样式设置留意myFocus正式版");
  499. sb.Append("\n </script>");
  500. sb.Append("\n <div id=\"myFocus\" class=\"mF_liuzg\">");
  501. sb.Append("\n <div class=\"loading\"><span>请稍候...</span></div><!--载入画面-->");
  502. sb.Append("\n <ul class=\"pic\"><!--内容列表-->");
  503. //sb.Append("\n <li><a href=\"#\"><img src=\"http://www.alixixi.com/web/UploadPic/2010-8/2010826163527189.jpg\" alt=\"图片1来源于网络,版权属于原作者\" /></a></li>");
  504. //sb.Append("\n <li><a href=\"#\"><img src=\"http://www.alixixi.com/web/UploadPic/2010-8/2010826163527162.jpg\" alt=\"版权属于原作者,图片2来源于网络\" /></a></li>");
  505. //sb.Append("\n <li><a href=\"#\"><img src=\"http://www.alixixi.com/web/UploadPic/2010-8/2010826163527790.jpg\" alt=\"图片3来源于网络,版权属于原作者\" /></a></li>");
  506. //sb.Append("\n <li><a href=\"#\"><img src=\"http://www.alixixi.com/web/UploadPic/2010-8/2010826163527230.jpg\" alt=\"版权属于原作者,图片4来源于网络\" /></a></li>");
  507. int s = 0;
  508. foreach (FileInfo FileName in ArrUnPostil)
  509. {
  510. if (FileName.Length > 0)
  511. {
  512. s = s + 1;
  513. // sb.Append("\n img" + s.ToString() + "=new Image ();img" + s.ToString() + ".src='images/" + FileName.Name + "';");
  514. sb.Append("\n <li><a href=\"#\"><img src=\"" + imagesDir + "/" + FileName.Name + "\" alt=\"广东松山刘友生设计\" /></a></li>");
  515. }
  516. if (s == maxfileNumber)
  517. { break; }
  518. }
  519. sb.Append("\n </ul>");
  520. sb.Append("\n </div>");
  521. return sb.ToString();
  522. }
  523. //网站常用数字导航,自动淡化滚屏效果,OK,纯脚本控制
  524. public string TX35(string imagesDir, int maxfileNumber,int picW,int picH)
  525. {
  526. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  527. DirectoryInfo UnPostil = new DirectoryInfo(imagesDir);
  528. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  529. sb.Append("\n <script>");
  530. sb.Append("\n var widths="+picW.ToString()+";");
  531. sb.Append("\n var heights="+picH.ToString()+";");
  532. int s = 0;
  533. foreach (FileInfo FileName in ArrUnPostil)
  534. {
  535. if (FileName.Length > 0)
  536. {
  537. s = s + 1;
  538. sb.Append("\n img" + s.ToString() + "=new Image ();img" + s.ToString() + ".src='images/" + FileName.Name + "';");
  539. sb.Append("\n url"+s.ToString()+"=new Image ();url"+s.ToString()+".src='#';");
  540. }
  541. if (s == maxfileNumber)
  542. { break; }
  543. }
  544. //img1=new Image ();img1.src='/img/1_16395N43_zzjs.jpg';
  545. //img2=new Image ();img2.src='/img/1_1101524d_zzjs.jpg';
  546. //img3=new Image ();img3.src='/img/1_110116138_zzjs.jpg';
  547. //img4=new Image ();img4.src='/img/1_2314441t_zzjs.jpg';
  548. //img5=new Image ();img5.src='/img/1_1U455230_zzjs.jpg';
  549. //img6=new Image ();img6.src='/img/1_2314441t_zzjs.jpg';
  550. //url1=new Image ();url1.src='http://www.zzjs.net';
  551. //url2=new Image ();url2.src='http://www.zzjs.net';
  552. //url3=new Image ();url3.src='http://www.zzjs.net';
  553. //url4=new Image ();url4.src='http://www.zzjs.net';
  554. //url5=new Image ();url5.src='http://www.zzjs.net';
  555. //url6=new Image ();url6.src='http://www.zzjs.net';
  556. //欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。
  557. sb.Append("\n var counts="+s+";");
  558. sb.Append("\n var nn=1;");
  559. sb.Append("\n var key=0;");
  560. sb.Append("\n function change_img()");
  561. sb.Append("\n {if(key==0){key=1;}");
  562. sb.Append("\n else if(document.all)");
  563. sb.Append("\n {document.getElementById(\"pic\").filters[0].Apply();document.getElementById(\"pic\").filters[0].Play(duration=2);}");
  564. sb.Append("\n eval('document.getElementById(\"pic\").src=img'+nn+'.src');");
  565. sb.Append("\n eval('document.getElementById(\"url\").href=url'+nn+'.src');");
  566. sb.Append("\n for (var i=1;i<=counts;i++){document.getElementById(\"xxjdjj\"+i).className='axx';}");
  567. sb.Append("\n document.getElementById(\"xxjdjj\"+nn).className='bxx';");
  568. sb.Append("\n nn++;if(nn>counts){nn=1;}");
  569. sb.Append("\n tt=setTimeout('change_img()',4000);}");
  570. sb.Append("\n function changeimg(n){nn=n;window.clearInterval(tt);change_img();}");
  571. sb.Append("\n document.write('<style>');");
  572. sb.Append("\n document.write('.axx{padding:1px 7px;border-left:#cccccc 1px solid;}');");
  573. sb.Append("\n document.write('a.axx:link,a.axx:visited{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#666;}');");
  574. sb.Append("\n document.write('a.axx:active,a.axx:hover{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#999;}');");
  575. sb.Append("\n document.write('.bxx{padding:1px 7px;border-left:#cccccc 1px solid;}');");
  576. sb.Append("\n document.write('a.bxx:link,a.bxx:visited{text-decoration:none;color:#fff;line-height:15px;font:9px sans-serif;background-color:#D34600;}');");
  577. sb.Append("\n document.write('a.bxx:active,a.bxx:hover{text-decoration:none;color:#fff;line-height:15px;font:9px sans-serif;background-color:#D34600;}');");
  578. sb.Append("\n document.write('</style>');");
  579. sb.Append("\n document.write('<div style=\"width:'+widths+'px;height:'+heights+'px;overflow:hidden;text-overflow:clip;\">');");
  580. sb.Append("\n document.write('<div><a id=\"url\"><img id=\"pic\" style=\"border:0px;filter:progid:dximagetransform.microsoft.wipe(gradientsize=1.0,wipestyle=4, motion=forward)\" width='+widths+' height='+heights+' /></a></div>');");
  581. sb.Append("\n document.write('<div style=\"filter:alpha(style=1,opacity=10,finishOpacity=80);background: #888888;width:100%-2px;text-align:right;top:-15px;position:relative;margin:1px;height:15px;padding:0px;margin:0px;border:0px;\">');");
  582. sb.Append("\n for(var i=1;i<counts+1;i++){document.write('<a href=\"javascript:changeimg('+i+');\" id=\"xxjdjj'+i+'\" class=\"axx\" target=\"_self\">'+i+'</a>');}");
  583. sb.Append("\n document.write('</div></div>');");
  584. sb.Append("\n change_img();");
  585. sb.Append("\n </script>");
  586. return sb.ToString();
  587. }
  588. //
  589. public string TX34(string imagesDir, int maxfileNumber)
  590. {
  591. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  592. DirectoryInfo UnPostil = new DirectoryInfo(imagesDir);
  593. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  594. sb.Append("\n <div id=demo style=overflow:hidden;height:150;width:90;background:#214984;color:#ffffff>");
  595. sb.Append("\n <div id=demo1>");
  596. sb.Append("\n <img src=\"images/01.jpg\">");
  597. sb.Append("\n <img src=\"images/02.jpg\">");
  598. sb.Append("\n <img src=\"images/03.jpg\">");
  599. sb.Append("\n <img src=\"images/04.jpg\">");
  600. sb.Append("\n <img src=\"images/06.jpg\">");
  601. sb.Append("\n </div>");
  602. sb.Append("\n <div id=demo2></div>");
  603. sb.Append("\n </div>");
  604. sb.Append("\n <script>");
  605. sb.Append("\nvar speed=30");
  606. sb.Append("\n demo2.innerHTML=demo1.innerHTML");
  607. sb.Append("\n function Marquee(){");
  608. sb.Append("\n if(demo2.offsetTop-demo.scrollTop<=0)");
  609. sb.Append("\n demo.scrollTop-=demo1.offsetHeight");
  610. sb.Append("\n else{");
  611. sb.Append("\n demo.scrollTop++");
  612. sb.Append("\n}//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。");
  613. sb.Append("\n}");
  614. sb.Append("\n var MyMar=setInterval(Marquee,speed)");
  615. sb.Append("\n demo.onmouseover=function() {clearInterval(MyMar)}");
  616. sb.Append("\n demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}");
  617. sb.Append("\n </script>");
  618. return sb.ToString();
  619. }
  620. public string TX33(string imagesDir, int maxfileNumber)
  621. {
  622. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  623. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  624. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  625. //<a href="http://www.zzjs.net/">站长特效网</a>,站长必备的高质量网页特效和广告代码。zzjs.net,站长js特效。<hr>
  626. //<!--欢迎来到站长特效网,我们网站收集大量高质量js特效,提供许多广告代码下载,网址:www.zzjs.net,zzjs@msn.com,用.net打造靓站-->
  627. sb.Append("\n <script language=\"javascript\">");
  628. //欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。
  629. sb.Append("\n var images=Array();");
  630. int s = 0;
  631. foreach (FileInfo FileName in ArrUnPostil)
  632. {
  633. if (FileName.Length > 0)
  634. {
  635. s = s + 1;
  636. sb.Append("\n images.push(" + imagesDir + "/" + FileName.Name + "\");");
  637. sb.Append("\n images.push(\"mailto:ssxylys@163.com\");");
  638. }
  639. if (s == maxfileNumber)
  640. { break; }
  641. }
  642. //images.push("/img/200406301.jpg");
  643. //images.push("http://www.zzjs.net");
  644. //images.push("/img/200406302.jpg");
  645. //images.push("http://www.zzjs.net");
  646. //images.push("/img/200406303.jpg");
  647. //images.push("http://www.zzjs.net");
  648. //images.push("/img/200406304.jpg");
  649. //images.push("http://www.zzjs.net");
  650. //images.push("/img/200406305.jpg");
  651. //images.push("http://www.zzjs.net");
  652. //images.push("/img/200406305.jpg");
  653. //images.push("http://www.zzjs.net");
  654. //images.push("/img/200406304.jpg");
  655. //images.push("http://www.zzjs.net");
  656. //images.push("/img/200406303.jpg");
  657. //images.push("http://www.zzjs.net");
  658. //Specify the slider's width (in pixels)
  659. sb.Append("\n var sliderwidth=695");
  660. //Specify the slider's height
  661. sb.Append("\n var sliderheight=82");
  662. //Specify the slider's slide speed (larger is faster 1-10)
  663. sb.Append("\n var slidespeed=1");
  664. //configure background color:
  665. sb.Append("\n slidebgcolor=\"#fff\"");
  666. //Specify the slider's images
  667. sb.Append("\n var leftrightslide=new Array()");
  668. sb.Append("\n var finalslide=''");
  669. sb.Append("\n leftrightslide[0]='<table border=\"0\" cellspacing=\"13\" cellpadding=\"0\" width=\"695px\" style=\"margin-top:-10px\">'+'<tr align=\"center\">';");
  670. sb.Append("\n var size=images.length/2;");
  671. sb.Append("\n for(var i=0;i<size;i++)");
  672. sb.Append("\n leftrightslide[0]+=\"<td width='80' height='62'><div onclick=\"window.open('\"+images[i*2+1]+\"');\" style=\"cursor:pointer;width:72px;height:62px;background:url(\"+images[i*2]+\") no-repeat;\"><img src=\"/img/20070429204708_01.gif\" width=\"72\" height=\"62\" border=\"0\" /></div></td>\";");
  673. sb.Append("\n leftrightslide[0]+='</tr></table>';");
  674. ////NO NEED TO EDIT BELOW THIS LINE////////////
  675. sb.Append("\n var copyspeed=slidespeed");
  676. sb.Append("\n leftrightslide='<nobr>'+leftrightslide.join(\" \")+'</nobr>'");
  677. sb.Append("\n var iedom=document.all||document.getElementById");
  678. sb.Append("\n if (iedom)");
  679. sb.Append("\n document.write('<span id=\"temp\" style=\"visibility:hidden;position:absolute;top:0;left:0\">'+leftrightslide+'</span>')");
  680. sb.Append("\n var actualwidth=''");
  681. sb.Append("\n var cross_slide, ns_slide");
  682. sb.Append("\n function fillup(){");
  683. sb.Append("\n if (iedom){");
  684. sb.Append("\n cross_slide=document.getElementById? document.getElementById(\"test2\") : document.all.test2");
  685. sb.Append("\n cross_slide2=document.getElementById? document.getElementById(\"test3\") : document.all.test3");
  686. sb.Append("\n cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide");
  687. sb.Append("\n actualwidth=document.all? cross_slide.offsetWidth : document.getElementById(\"temp\").offsetWidth");
  688. sb.Append("\n cross_slide2.style.left=actualwidth-5");
  689. sb.Append("\n }//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。");
  690. sb.Append("\n else if (document.layers){");
  691. sb.Append("\n ns_slide=document.ns_slidemenu.document.ns_slidemenu2");
  692. sb.Append("\n ns_slide2=document.ns_slidemenu.document.ns_slidemenu3");
  693. sb.Append("\n ns_slide.document.write(leftrightslide)");
  694. sb.Append("\n ns_slide.document.close()");
  695. sb.Append("\n actualwidth=ns_slide.document.width");
  696. sb.Append("\n ns_slide2.left=actualwidth");
  697. sb.Append("\n ns_slide2.document.write(leftrightslide)");
  698. sb.Append("\n ns_slide2.document.close()");
  699. sb.Append("\n }");
  700. sb.Append("\n lefttime=setInterval(\"slideleft()\",30)");
  701. sb.Append("\n }");
  702. sb.Append("\n window.onload=fillup");
  703. sb.Append("\n function slideleft(){");
  704. sb.Append("\n if (iedom){");
  705. sb.Append("\n if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))");
  706. sb.Append("\n cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed");
  707. sb.Append("\n else");
  708. sb.Append("\n cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth-5");
  709. sb.Append("\n if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))");
  710. sb.Append("\n cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed");
  711. sb.Append("\n else");
  712. sb.Append("\n cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth-5");
  713. sb.Append("\n }");
  714. sb.Append("\n else if (document.layers){");
  715. sb.Append("\n if (ns_slide.left>(actualwidth*(-1)+8))");
  716. sb.Append("\n ns_slide.left-=copyspeed");
  717. sb.Append("\n else");
  718. sb.Append("\n ns_slide.left=ns_slide2.left+actualwidth");
  719. sb.Append("\n if (ns_slide2.left>(actualwidth*(-1)+8))");
  720. sb.Append("\n ns_slide2.left-=copyspeed");
  721. sb.Append("\n else");
  722. sb.Append("\n ns_slide2.left=ns_slide.left+actualwidth");
  723. sb.Append("\n }");
  724. sb.Append("\n }//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。");
  725. sb.Append("\n if (iedom||document.layers){");
  726. sb.Append("\n with (document){");
  727. sb.Append("\n document.write('<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><td>')");
  728. sb.Append("\n if (iedom){");
  729. sb.Append("\n write('<div style=\"position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden\">')");
  730. sb.Append("\n write('<div style=\"position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'\" onMouseover=\"copyspeed=0\" onMouseout=\"copyspeed=slidespeed\">')");
  731. sb.Append("\n write('<div id=\"test2\" style=\"width:695px;position:absolute;left:0;top:0\"></div>')");
  732. sb.Append("\n write('<div id=\"test3\" style=\"position:absolute;left:0;top:0;width:695px;\"></div>')");
  733. sb.Append("\n write('</div></div>')");
  734. sb.Append("\n }");
  735. sb.Append("\n else if (document.layers){");
  736. sb.Append("\n write('<ilayer width='+sliderwidth+' height='+sliderheight+' name=\"ns_slidemenu\" bgColor='+slidebgcolor+'>')");
  737. sb.Append("\n write('<layer name=\"ns_slidemenu2\" left=0 top=0 onMouseover=\"copyspeed=0\" onMouseout=\"copyspeed=slidespeed\"></layer>')");
  738. sb.Append("\n write('<layer name=\"ns_slidemenu3\" left=0 top=0 onMouseover=\"copyspeed=0\" onMouseout=\"copyspeed=slidespeed\"></layer>')");
  739. sb.Append("\n write('</ilayer>')");
  740. sb.Append("\n }");
  741. sb.Append("\n document.write('</td></table>')");
  742. sb.Append("\n }");
  743. sb.Append("\n }//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。");
  744. sb.Append("\n </script>");
  745. return sb.ToString();
  746. }
  747. //漂亮网页相册
  748. public string TX32(string imagesDir, int maxfileNumber)
  749. {
  750. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  751. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  752. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  753. sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"TX32.css\" />");
  754. sb.Append("\n <div id=\"www_zzjs_net\">");
  755. sb.Append("\n <h1>特效网相册系统</h1>");
  756. sb.Append("\n <ul>");
  757. int s = 0;
  758. foreach (FileInfo FileName in ArrUnPostil)
  759. {
  760. if (FileName.Length > 0)
  761. {
  762. s = s + 1;
  763. sb.Append("\n <li><a href=\"" + imagesDir + "/" + FileName.Name + "\" title=\"提示信息\"><img width=\"30\" height=\"30\" src=\"" + imagesDir + "/" + FileName.Name + "\" />图片" + s.ToString() + "</a></li>");
  764. }
  765. if (s == maxfileNumber)
  766. { break; }
  767. }
  768. //<li><a href="/img/1_195857.jpg" title="四只长颈鹿"><img src="/img/1_200223.jpg" />长颈鹿</a></li>
  769. //<li><a href="/img/1_195911.jpg" title="绿色的小青蛙"><img src="/img/1_200235.jpg" />青蛙</a></li>
  770. //<li><a href="/img/1_195923.jpg" title="小狗狗会汪汪"><img src="/img/1_200243.jpg" />小狗狗</a></li>
  771. //<li><a href="/img/1_195937.jpg" title="小老鼠兄弟"><img src="/img/1_200255.jpg" />鼠小弟</a></li>
  772. //<li><a href="/img/1_195953.jpg" title="烫发的白天鹅"><img src="/img/1_200306.jpg" />白天鹅</a></li>
  773. //<li><a href="/img/1_200004.jpg" title="鹦鹉夫妇"><img src="/img/1_200320.jpg" />鹦鹉</a></li>
  774. //<li><a href="/img/1_200022.jpg" title="北方的狼 站长特效"><img src="/img/1_200330.jpg" />狼</a></li>
  775. //<li><a href="/img/1_200039.jpg" title="警觉中的斑马"><img src="/img/1_200340.jpg" />斑马</a></li>
  776. //<li><a href="/img/1_200053.jpg" title="绿色的鸟"><img src="/img/1_200348.jpg" />绿色的鸟</a></li>
  777. //<li><a href="/img/1_200112.jpg" title="金黄色的小金鱼"><img src="/img/1_200401.jpg" />小金鱼</a></li>
  778. sb.Append("\n </ul>");
  779. sb.Append("\n </div>");
  780. sb.Append("\n <script language=\"javascript\">");
  781. sb.Append("\n function setDiv(){");
  782. sb.Append("\n var www_zzjs_net = document.getElementById(\"www_zzjs_net\");");
  783. sb.Append("\n var showpic = document.createElement(\"div\");");
  784. sb.Append("\n showpic.setAttribute(\"id\", \"showpic\");");
  785. sb.Append("\n www_zzjs_net.appendChild(showpic);");
  786. sb.Append("\n showpic.appendChild(document.createElement(\"h2\"));");
  787. sb.Append("\n showpic.appendChild(document.createElement(\"img\"));");
  788. sb.Append("\n var links = www_zzjs_net.getElementsByTagName(\"a\");");
  789. sb.Append("\n for(var k=0; k<links.length; k++){");
  790. sb.Append("\n links[k].onclick = function(){");
  791. sb.Append("\n return showPic(this);");
  792. sb.Append("\n }");//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。
  793. sb.Append("\n }");
  794. sb.Append("\n }");
  795. sb.Append("\n function showPic(pic){");
  796. sb.Append("\n var showpic = document.getElementById(\"showpic\");");
  797. sb.Append("\n showpic.style.display = \"block\";");
  798. sb.Append("\n showpic.getElementsByTagName(\"h2\")[0].innerHTML = pic.title;");
  799. sb.Append("\n showpic.getElementsByTagName(\"img\")[0].setAttribute(\"src\", pic.href);");
  800. sb.Append("\n return false;");
  801. sb.Append("\n }//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。");
  802. sb.Append("\n window.onload = setDiv;");
  803. sb.Append("\n </script>");
  804. return sb.ToString();
  805. }
  806. //点击按钮图片切换浏览效果
  807. public string TX30(string imagesDir, int maxfileNumber)
  808. {
  809. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  810. DirectoryInfo UnPostil = new DirectoryInfo(imagesDir);
  811. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  812. sb.Append("\n <button onclick=\"Slider.next()\">下一张</button>");
  813. sb.Append("\n <script type=\"text/javascript\">");
  814. sb.Append("\n <!--");
  815. sb.Append("\n Slider = {");
  816. sb.Append("\n isIE : true,");
  817. sb.Append("\n m_imageSource : [],");
  818. sb.Append("\n m_selIdx : 0,");
  819. sb.Append("\n m_direction : 1,");
  820. sb.Append("\n m_mainviewer : null,");
  821. sb.Append("\n m_delayTimer : null,");
  822. sb.Append("\n m_delayTimer1 : null,");
  823. sb.Append("\n m_curObj : null,");
  824. sb.Append("\n m_tarObj : null,");
  825. sb.Append("\n m_inited : false,");
  826. sb.Append("\n init : function(id, w, h, w1, h1, p, t, s, source){");
  827. sb.Append("\n this.isIE = document.all ? true : false;");
  828. sb.Append("\n this.canvasWidth = w;");
  829. sb.Append("\n this.canvasHeight = h;");
  830. sb.Append("\n this.imageWidth = w1;");
  831. sb.Append("\n this.imageHeight = h1;");
  832. sb.Append("\n this.m_percent = p;");
  833. sb.Append("\n this.m_top = t;");
  834. sb.Append("\n this.m_spaceWidth = s;");
  835. sb.Append("\n this.writeCanvas(id);");
  836. sb.Append("\n for(var i=0;i<source.length;i++)");
  837. sb.Append("\n {");
  838. sb.Append("\n this.container.innerHTML += '<img src=\"'+source[i]+'\" border=\"0\" style=\"'+(this.isIE?'filter:alpha(opacity=50)':'opacity:0.5')+';width:'+w1+'px;height:'+h1+'px;position:absolute;left:'+(i*w1+i*this.m_spaceWidth)+'px;top:'+this.m_top+'px;\" index=\"'+i+'\"/>';");
  839. sb.Append("\n }");
  840. sb.Append("\n this.m_mainviewer = this.container.firstChild.cloneNode(true);");
  841. sb.Append("\n this.bind();");
  842. sb.Append("\n this.start();");
  843. sb.Append("\n },");
  844. sb.Append("\n writeCanvas : function(id)");
  845. sb.Append("\n {");
  846. sb.Append("\n document.write('<div id=\"'+id+'\" style=\"width:'+this.canvasWidth+'px;height:'+this.canvasHeight+'px;position:relative;overflow:hidden;background-color:black\"></div>');");
  847. sb.Append("\n this.container = document.getElementById(id);");
  848. sb.Append("\n },");
  849. sb.Append("\n bind : function(obj, evt, fun){");
  850. sb.Append("\n var obj = this.container;");
  851. sb.Append("\n for(var i=0;i<obj.childNodes.length;i++)");
  852. sb.Append("\n {");
  853. sb.Append("\n this.attachEvent(this.container.childNodes[i], \"mouseover\", this.mouseover);");
  854. sb.Append("\n this.attachEvent(this.container.childNodes[i], \"mouseout\" , this.mouseout);");
  855. sb.Append("\n this.attachEvent(this.container.childNodes[i], \"click\" , this.click);");
  856. sb.Append("\n }");
  857. sb.Append("\n },");
  858. sb.Append("\n attachEvent : function(obj, evt, fun){");
  859. sb.Append("\n if (Slider.isIE)");
  860. sb.Append("\n {");
  861. sb.Append("\n obj.attachEvent(\"on\"+evt, fun)");
  862. sb.Append("\n }else");
  863. sb.Append("\n {");
  864. sb.Append("\n obj.addEventListener(evt, fun, false);");
  865. sb.Append("\n }");
  866. sb.Append("\n },");
  867. sb.Append("\n mouseover : function(e)");
  868. sb.Append("\n {");
  869. sb.Append("\n if(!e)e=window.event;");
  870. sb.Append("\n var obj = e.srcElement || e.target;");
  871. sb.Append("\n if (Slider.isIE)");
  872. sb.Append("\n {");
  873. sb.Append("\n obj.style.filter = \"alpha(opacity=80)\";");
  874. sb.Append("\n }else{");
  875. sb.Append("\n obj.style.opacity = \"0.8\";");
  876. sb.Append("\n }");
  877. sb.Append("\n },");
  878. sb.Append("\n mouseout : function(e)");
  879. sb.Append("\n {");
  880. sb.Append("\n if(!e)e=window.event;");
  881. sb.Append("\n var obj = e.srcElement || e.target;");
  882. sb.Append("\n if (Slider.isIE)");
  883. sb.Append("\n {");
  884. sb.Append("\n obj.style.filter = \"alpha(opacity=50)\";");
  885. sb.Append("\n }else{");
  886. sb.Append("\n obj.style.opacity = \"0.5\";");
  887. sb.Append("\n }");
  888. sb.Append("\n },");
  889. sb.Append("\n click : function(e)");
  890. sb.Append("\n {");
  891. sb.Append("\n if(!e)e=window.event;");
  892. sb.Append("\n var obj = e.srcElement || e.target;");
  893. sb.Append("\n var mobj = Slider.m_mainviewer;");
  894. sb.Append("\n Slider.m_selIdx = obj.getAttribute(\"index\");");
  895. sb.Append("\n Slider.m_curObj = Slider.m_mainviewer;");
  896. sb.Append("\n Slider.m_tarObj = obj;");
  897. sb.Append("\n Slider.m_delayTimer = Slider.fadeIn(200,5);");
  898. sb.Append("\n },");
  899. sb.Append("\n start : function(){");
  900. sb.Append("\n var obj = this.m_mainviewer;");
  901. sb.Append("\n if (Slider.isIE)");
  902. sb.Append("\n {");
  903. sb.Append("\n obj.style.filter = \"alpha(opacity=100)\";");
  904. sb.Append("\n }else{");
  905. sb.Append("\n obj.style.opacity = \"1\";");
  906. sb.Append("\n }");
  907. sb.Append("\n this.container.appendChild(this.m_mainviewer);");
  908. sb.Append("\n this.m_mainviewer.style.width = parseInt(this.m_mainviewer.style.width)*(1+this.m_percent)+\"px\";");
  909. sb.Append("\n this.m_mainviewer.style.height = parseInt(this.m_mainviewer.style.height)*(1+this.m_percent)+\"px\";");
  910. sb.Append("\n this.m_curObj = this.container.childNodes[this.m_selIdx];");
  911. sb.Append("\n this.m_tarObj = this.m_mainviewer;");
  912. sb.Append("\n if(this.m_delayTimer)clearInterval(Slider.m_delayTimer);");
  913. sb.Append("\n this.m_delayTimer = this.fadeIn(200,5);");
  914. sb.Append("\n },");
  915. sb.Append("\n next : function(){");
  916. sb.Append("\n var obj = this.container;");
  917. sb.Append("\n var mobj = this.m_mainviewer;");
  918. sb.Append("\n if(this.m_selIdx == obj.childNodes.length-2)");
  919. sb.Append("\n {");
  920. sb.Append("\n this.m_direction = -1;");
  921. sb.Append("\n }");
  922. sb.Append("\n if(this.m_selIdx == 0)");
  923. sb.Append("\n {");
  924. sb.Append("\n this.m_direction = 1;");
  925. sb.Append("\n }");
  926. sb.Append("\n Slider.m_curObj = mobj;");
  927. sb.Append("\n Slider.m_tarObj = obj.childNodes[this.m_selIdx];");
  928. sb.Append("\n this.m_delayTimer = this.fadeIn(200,5);");
  929. sb.Append("\n mobj.src = obj.childNodes[this.m_selIdx].src;");
  930. sb.Append("\n if(this.m_direction==-1){");
  931. sb.Append("\n this.m_selIdx --;");
  932. sb.Append("\n }else{");
  933. sb.Append("\n this.m_selIdx ++;");
  934. sb.Append("\n }");
  935. sb.Append("\n },");
  936. sb.Append("\n fadeIn : function(aa, ab){");
  937. sb.Append("\n var obj = this.container;");
  938. sb.Append("\n with(this.m_curObj.style){var t1 = parseInt(left);var t3 = parseInt(width);var t4 = parseInt(height);var t5 = parseInt(top);}");
  939. sb.Append("\n if (Slider.m_inited)");
  940. sb.Append("\n {");
  941. sb.Append("\n var k1 = (t1 - (this.canvasWidth- parseInt(this.m_curObj.style.width))/2)/ab;");
  942. sb.Append("\n var k3 = (t3-parseInt(this.m_tarObj.style.width))/ab;");
  943. sb.Append("\n var k4 = (t4-parseInt(this.m_tarObj.style.height))/ab;");
  944. sb.Append("\n var k5 = (t5 - parseInt(this.m_tarObj.style.top))/ab;");
  945. sb.Append("\n }else{");
  946. sb.Append("\n var k1 = (t1 - (this.canvasWidth- this.imageWidth*(1+this.m_percent))/2)/ab;");
  947. sb.Append("\n var k3 = (t3- this.imageWidth*(1+this.m_percent))/ab;");
  948. sb.Append("\n var k4 = (t4 - this.imageHeight*(1+this.m_percent))/ab;");
  949. sb.Append("\n var k5 = (this.imageHeight * this.m_percent/2)/ab;");
  950. sb.Append("\n }");
  951. sb.Append("\n var mobj = this.m_mainviewer;");
  952. sb.Append("\n return setInterval(function(){if(ab<1){");
  953. sb.Append("\n clearInterval(Slider.m_delayTimer);");
  954. sb.Append("\n if(Slider.m_inited){");
  955. sb.Append("\n if (!Slider.m_fadein)");
  956. sb.Append("\n {");
  957. sb.Append("\n Slider.m_curObj = obj.childNodes[Slider.m_selIdx];");
  958. sb.Append("\n Slider.m_tarObj = mobj;");
  959. sb.Append("\n mobj.src = obj.childNodes[Slider.m_selIdx].src;");
  960. sb.Append("\n Slider.m_fadein = true;");
  961. sb.Append("\n Slider.m_inited = false;");
  962. sb.Append("\n Slider.m_delayTimer = Slider.fadeIn(200,10);");
  963. sb.Append("\n }else{");
  964. sb.Append("\n Slider.m_fadein = false;");
  965. sb.Append("\n Slider.m_inited = true;");
  966. sb.Append("\n }");
  967. sb.Append("\n }");
  968. sb.Append("\n Slider.m_inited = true;");
  969. sb.Append("\n return;");
  970. sb.Append("\n }");
  971. sb.Append("\n ab--;t1-=k1;t3-=k3;t4-=k4;t5-=k5;");
  972. sb.Append("\n if (Slider.m_fadein)");
  973. sb.Append("\n {");
  974. sb.Append("\n for(var i=0;i<obj.childNodes.length-1;i++)");
  975. sb.Append("\n {");
  976. sb.Append("\n obj.childNodes[i].style.left = (parseInt(t1) + (Slider.imageWidth + Slider.m_spaceWidth)*(i-Slider.m_selIdx))+\"px\";");
  977. sb.Append("\n }");
  978. sb.Append("\n }");
  979. sb.Append("\n with(mobj.style){left = t1 + \"px\";top = t5 + \"px\";width = t3 + \"px\";height = t4 + \"px\";}");
  980. sb.Append("\n }");
  981. sb.Append("\n,aa/ab)");
  982. sb.Append("\n }");
  983. sb.Append("\n }");
  984. sb.Append("\n Slider.init('aaa',500,400,250,200, 0.5, 100, 20, [");
  985. //"/image/1.jpg",
  986. //"/image/2.jpg",
  987. //"/image/3.jpg",
  988. //"/image/4.jpg",
  989. //"/image/5.jpg",
  990. //"/image/1.jpg",
  991. //"/image/2.jpg",
  992. //"/image/3.jpg"
  993. int s = 0;
  994. foreach (FileInfo FileName in ArrUnPostil)
  995. {
  996. if (FileName.Length > 0)
  997. {
  998. s = s + 1;
  999. sb.Append("\n " + imagesDir + "\\" + FileName.Name + ",");
  1000. }
  1001. if (s == maxfileNumber)
  1002. { break; }
  1003. }
  1004. sb.Append("\n]);");
  1005. sb.Append("\n //-->");
  1006. sb.Append("\n </script>");
  1007. return sb.ToString();
  1008. }
  1009. //傲游浏览器官网js焦点图定时切换特效 OK
  1010. public string TX29(string imagesDir, int maxfileNumber)
  1011. {
  1012. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  1013. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  1014. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  1015. sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"css/TX29.css\" />");
  1016. sb.Append("\n <script type=\"text/javascript\" src=\"js/TX29.js\"></script>");
  1017. sb.Append("\n <div id=\"index-www_zzjs_net\" class=\"index-www_zzjs_net\">");
  1018. sb.Append("\n <div id=\"feature-slide_zzjs\" class=\"feature-slide_zzjs\">");
  1019. int s = 0;
  1020. foreach (FileInfo FileName in ArrUnPostil)
  1021. {
  1022. if (FileName.Length > 0)
  1023. {
  1024. s = s + 1;
  1025. //sb.Append("\n <li><a href=\"javascript:;\"><img src=\"" + imagesDir + "\\" + FileName.Name + "\" />内容</a></li>");
  1026. sb.Append("\n <div class=\"preview_zzjs_net\" style=\"display: none; \">");
  1027. sb.Append("\n <h3><a href=\"#\">图片标题</a></h3>");
  1028. sb.Append("\n <p>图片说明</p>");
  1029. sb.Append("\n <a href=\"#\" class=\"screenshot\"><img alt=\"\" width=\"308\" height=\"220\" src=\"" + imagesDir + "/" + FileName.Name + "\" /></a></div>");
  1030. }
  1031. //if (s == 5)
  1032. //{ break; }
  1033. }
  1034. //<div class=\"preview_zzjs_net\" style=\"display: none; \">
  1035. // <h3><a href="http://www.zzjs.net">鼠标手势</a></h3>
  1036. // <p>按住右键滑动鼠标,就能够执行前进、后退和刷新等常用操作。您还可以到设置中心对其进行自定义。</p>
  1037. // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="img/01.jpg" /></a>
  1038. //</div>
  1039. //<div class="preview_zzjs_net" style="display: none; ">
  1040. // <h3><a href="http://www.zzjs.net">撤销按钮</a></h3>
  1041. // <p>通过撤销按钮可以轻松找回失手关闭的重要网页,点击按钮旁边的下拉箭头还会显示最近关闭的页面列表。</p>
  1042. // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-2_20110121zzjs_net.png" /></a>
  1043. //</div>
  1044. //<div class="preview_zzjs_net" style="display: none; ">
  1045. // <h3><a href="http://www.zzjs.net">历史搜索</a></h3>
  1046. // <p>通过历史搜索你可以方便的浏览、搜索和清除浏览历史记录、RSS历史记录以及搜索关键字历史记录</p>
  1047. // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-3_20110121zzjs_net.png" /></a>
  1048. //</div>
  1049. //<div class="preview_zzjs_net" style="display: none; ">
  1050. // <h3><a href="http://www.zzjs.net">分屏浏览</a></h3>
  1051. // <p>将浏览器窗口一分为二,更大发挥宽屏显示器作用;你可以同时浏览两个网站,转载和对照更加方便。</p>
  1052. // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-4_20110121zzjs_net.png" /></a>
  1053. //</div>
  1054. //<div class="preview_zzjs_net" style="display: none; ">
  1055. // <h3><a href="http://www.zzjs.net">广告过滤</a></h3>
  1056. // <p>有效阻止各种弹窗、恶意网页的骚扰,还支持自定义过滤和免过滤列表。铺天盖地的广告,消失吧!</p>
  1057. // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-5_20110121zzjs_net.png" /></a>
  1058. //</div>
  1059. //<div class="preview_zzjs_net" style="display: none; ">
  1060. // <h3><a href="http://www.zzjs.net">在线收藏</a></h3>
  1061. // <p>让你随时随地都可以访问自己的私人收藏夹内容。浏览器会在后台自动保存和同步你的在线收藏夹。</p>
  1062. // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-6_20110121zzjs_net.png" /></a>
  1063. //</div>
  1064. //<div class="preview_zzjs_net" style="display: none; ">
  1065. // <h3><a href="http://www.zzjs.net">收集面板</a></h3>
  1066. // <p>随叫随到的在线版记事本。多标签让管理更加方便,可以随时上传下载,也可以另存为文本文档。</p>
  1067. // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-7_20110121zzjs_net.png" /></a>
  1068. //</div>
  1069. //<div class="preview_zzjs_net" style="display: none; ">
  1070. // <h3><a href="http://www.zzjs.net">屏幕截图</a></h3>
  1071. // <p>将网页内容保存为多种图片格式,方便存档和分享。无论是全屏、局部还是整个页面截图,都由你决定。</p>
  1072. // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-8_20110121zzjs_net.png" /></a>
  1073. //</div>
  1074. //<div class="preview_zzjs_net" style="display: none; ">
  1075. // <h3><a href="http://www.zzjs.net">智能填表</a></h3>
  1076. // <p>智能识别表单进行自动填写,网站注册登录一劳永逸。</p>
  1077. // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-9_20110121zzjs_net.png" /></a>
  1078. //</div>
  1079. //<div class="preview_zzjs_net" style="display: none; ">
  1080. // <h3><a href="http://www.zzjs.net">多重代理</a></h3>
  1081. // <p>通过设置代理规则,你可以通过不同代理服务器访问不同网站,有效提高浏览效率。</p>
  1082. // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-10_20110121zzjs_net.png" /></a>
  1083. //</div>
  1084. //<div class="preview_zzjs_net" style="display: none; ">
  1085. // <h3><a href="http://www.zzjs.net">扩展插件</a></h3>
  1086. // <p>通过安装各种插件进一步扩展浏览器的功能。您也可以编写插件与全球用户分享。</p>
  1087. // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-11_20110121zzjs_net.png" /></a>
  1088. //</div>
  1089. //<div class="preview_zzjs_net" style="display: none; ">
  1090. // <h3><a href="http://www.zzjs.net">个性皮肤</a></h3>
  1091. // <p>不同的皮肤使界面呈现不同的风格,美化浏览器,代言你的个性.你还可以制作皮肤与全球用户分享</p>
  1092. // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-12_20110121zzjs_net.png" /></a>
  1093. //</div>
  1094. sb.Append("\n <div id=\"feature-slide-list\" class=\"feature-slide-list\">");
  1095. sb.Append("\n <a href=\"#\" id=\"previous_zzjs\" class=\"previous_zzjs\"></a>");
  1096. sb.Append("\n <div id=\"feature-list_zzjs_net\" class=\"feature-list_zzjs_net\">");
  1097. sb.Append("\n </div>");
  1098. sb.Append("\n <a href=\"#\" id=\"next_zzjs_net\" class=\"next_zzjs_net\"></a>");
  1099. sb.Append("\n </div>");
  1100. sb.Append("\n </div>");
  1101. sb.Append("\n <script type=\"text/javascript\">");
  1102. sb.Append("\n init_zzjs();");
  1103. sb.Append("\n </script>");
  1104. sb.Append("\n </div>");
  1105. return sb.ToString();
  1106. }
  1107. //跟随鼠标移动(大图展示)OK 最好是JPG图片
  1108. public string TX28(string imagesDir, int maxfileNumber)
  1109. {
  1110. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  1111. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  1112. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  1113. sb.Append("\n <style type=\"text/css\">");
  1114. sb.Append("\n html,body{overflow:hidden;}");
  1115. sb.Append("\n body,div,ul,li{margin:0;padding:0;}");
  1116. sb.Append("\n #box ul{width:768px;height:172px;list-style-type:none;margin:10px auto;}");
  1117. sb.Append("\n #box li{float:left;width:170px;height:170px;cursor:pointer;display:inline;border:1px solid #ddd;margin:0 10px;}");
  1118. sb.Append("\n #box li.active{border:1px solid #a10000;}");
  1119. sb.Append("\n #box li img{width:170px;height:170px;vertical-align:top;}");
  1120. sb.Append("\n #big{position:absolute;width:400px;height:400px;border:2px solid #ddd;display:none;}");
  1121. sb.Append("\n #big div{position:absolute;top:0;left:0;width:400px;height:400px;opacity:0.5;filter:alpha(opacity=50);background:#fff url(img/main_bg.gif) 50% 50% no-repeat;}");
  1122. sb.Append("\n </style>");
  1123. sb.Append("\n <script type=\"text/javascript\">");
  1124. sb.Append("\n window.onload = function ()");
  1125. sb.Append("\n {");
  1126. sb.Append("\n var aLi = document.getElementsByTagName(\"li\");");
  1127. sb.Append("\n var oBig = document.getElementById(\"big\");");
  1128. sb.Append("\n var oLoading = oBig.getElementsByTagName(\"div\")[0];");
  1129. sb.Append("\n var i = 0;");
  1130. sb.Append("\n for (i = 0; i < aLi.length; i++)");
  1131. sb.Append("\n {");
  1132. sb.Append("\n aLi[i].index = i;");
  1133. //鼠标划过, 预加载图片插入容器并显示
  1134. sb.Append("\n aLi[i].onmouseover = function ()");
  1135. sb.Append("\n {");
  1136. sb.Append("\n var oImg = document.createElement(\"img\");");
  1137. //图片预加载
  1138. sb.Append("\n var img = new Image(); ");
  1139. sb.Append("\n img.src = oImg.src = aLi[this.index].getElementsByTagName(\"img\")[0].src.replace(\".gif\",\"_big.jpg\");"); //replace(\".gif\",\"_big.jpg\");") 不显示GIF文件
  1140. //插入大图片
  1141. sb.Append("\n oBig.appendChild(oImg);");
  1142. //鼠标移过样式
  1143. sb.Append("\n this.className = \"active\";");
  1144. //显示big
  1145. sb.Append("\n oBig.style.display = oLoading.style.display = \"block\";");
  1146. //判断大图是否加载成功
  1147. sb.Append("\n img.complete ? oLoading.style.display =\"none\" : (oImg.onload = function() {oLoading.style.display = \"none\";}) ");
  1148. sb.Append("\n };");
  1149. //鼠标移动, 大图容器跟随鼠标移动
  1150. sb.Append("\n aLi[i].onmousemove = function (event)");
  1151. sb.Append("\n {");
  1152. sb.Append("\n var event = event || window.event; ");
  1153. sb.Append("\n var iWidth = document.documentElement.offsetWidth - event.clientX; ");
  1154. //设置big的top值
  1155. sb.Append("\n oBig.style.top = event.clientY + 20 + \"px\";");
  1156. //设置big的left值, 如果右侧显示区域不够, 大图将在鼠标左侧显示.
  1157. sb.Append("\n oBig.style.left = (iWidth < oBig.offsetWidth + 10 ? event.clientX - oBig.offsetWidth - 10 : event.clientX + 10) + \"px\";");
  1158. sb.Append("\n };");
  1159. //鼠标离开, 删除大图并隐藏大图容器
  1160. sb.Append("\n aLi[i].onmouseout = function ()");
  1161. sb.Append("\n {");
  1162. sb.Append("\n this.className = \"\";");
  1163. sb.Append("\n oBig.style.display = \"none\";");
  1164. //移除大图片
  1165. sb.Append("\n oBig.removeChild(oBig.lastChild)");
  1166. sb.Append("\n }");
  1167. sb.Append("\n }");
  1168. sb.Append("\n };");
  1169. sb.Append("\n </script>");
  1170. sb.Append("\n <div id=\"box\">");
  1171. sb.Append("\n <ul>");
  1172. int s = 0;
  1173. foreach (FileInfo FileName in ArrUnPostil)
  1174. {
  1175. if (FileName.Length > 0)
  1176. {
  1177. s = s + 1;
  1178. //sb.Append("\n <li><a href=\"javascript:;\"><img src=\"" + imagesDir + "\\" + FileName.Name + "\" />内容</a></li>");
  1179. sb.Append("\n <li><img src=\"" + imagesDir + "/" + FileName.Name + "\" /></li>");
  1180. }
  1181. //if (s == 5)
  1182. //{ break; }
  1183. }
  1184. //<li><img src="http://js.fgm.cc/learn/lesson5/img/shirt_1.jpg" /></li>
  1185. // <li><img src="http://js.fgm.cc/learn/lesson5/img/shirt_2.jpg" /></li>
  1186. // <li><img src="http://js.fgm.cc/learn/lesson5/img/shirt_3.jpg" /></li>
  1187. // <li><img src="http://js.fgm.cc/learn/lesson5/img/shirt_4.jpg" /></li>
  1188. sb.Append("\n </ul>");
  1189. sb.Append("\n </div>");
  1190. sb.Append("\n <div id=\"big\"><div></div></div>");
  1191. return sb.ToString();
  1192. }
  1193. //图片无缝滚动 面向对象的无缝上下滚动图片特效代码OK
  1194. public string TX27(string imagesDir, int maxfileNumber)
  1195. {
  1196. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  1197. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  1198. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  1199. sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"css/TX27.css\" />");
  1200. sb.Append("\n <script type=\"text/javascript\" src=\"js/TX27.js\"></script>");
  1201. sb.Append("\n <div id=\"box\">");
  1202. sb.Append("\n <span class=\"up\">up</span>");
  1203. sb.Append("\n <span class=\"down\">down</span>");
  1204. sb.Append("\n <div>");
  1205. sb.Append("\n <ul class=\"list\">");
  1206. int s=0;
  1207. foreach (FileInfo FileName in ArrUnPostil)
  1208. {
  1209. if (FileName.Length > 0)
  1210. {
  1211. s = s + 1;
  1212. //sb.Append("\n <li><a href=\"javascript:;\"><img src=\"" + imagesDir + "\\" + FileName.Name + "\" />内容</a></li>");
  1213. sb.Append("\n <li><a href=\"javascript:;\"><img src=\"" + imagesDir + "/" + FileName.Name + "\" />图片" + s.ToString() + "</a></li>");
  1214. }
  1215. //if (s == 5)
  1216. //{ break; }
  1217. }
  1218. //<li><a href="javascript:;"><img src="http://js.alixixi.com/img/201108/1.jpeg" />Ozolio - Webcam Hosting</a></li>
  1219. //<li><a href="javascript:;"><img src="http://js.alixixi.com/img/201108/2.jpeg" />Sullivan Construction Inc.</a></li>
  1220. //<li><a href="javascript:;"><img src="http://js.alixixi.com/img/201108/3.jpeg" />Maui Stables</a></li>
  1221. //<li><a href="javascript:;"><img src="http://js.alixixi.com/img/201108/4.jpeg" />Code Rebel 3.0</a></li>
  1222. //<li><a href="javascript:;"><img src="http://js.alixixi.com/img/201108/5.jpeg" />SecurityPro Shop</a></li>
  1223. sb.Append("\n </ul>");
  1224. sb.Append("\n </div>");
  1225. sb.Append("\n </div>");
  1226. return sb.ToString();
  1227. }
  1228. //百度有啊通栏展示效果OK 自动滚屏,单击图片和序号切换
  1229. public string TX26(string imagesDir, int maxfileNumber)
  1230. {
  1231. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  1232. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  1233. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  1234. sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"css/TX26.css\" />");
  1235. sb.Append("\n <script type=\"text/javascript\" src=\"js/TX26.js\"></script>");
  1236. sb.Append("\n <div id=\"box\">");
  1237. sb.Append("\n <div id=\"container\">");
  1238. foreach (FileInfo FileName in ArrUnPostil)
  1239. {
  1240. if (FileName.Length > 0)
  1241. {
  1242. sb.Append("\n <div class=\"item\">");
  1243. sb.Append("\n <div class=\"pic\"> <a href=\"javascript:;\"><img src=\"" + imagesDir + "/" + FileName.Name + "\" /></a> </div>");
  1244. sb.Append("\n <div class=\"txt\">");
  1245. sb.Append("\n <dl>");
  1246. sb.Append("\n <dt><a href=\"javascript:;\">这里是标题!</a></dt>>");
  1247. sb.Append("\n <dd class=\"info\">由广东松山职业技术学院计算机系刘友生设计!</dd>");
  1248. sb.Append("\n <dd class=\"info\">电话:07516502052</dd>");
  1249. sb.Append("\n <dd class=\"info\">Email:ssxylys@163.com</dd>");
  1250. sb.Append("\n </dl>");
  1251. sb.Append("\n <div class=\"comment\">");
  1252. sb.Append("\n <h3>表格中的标题</h3>");
  1253. sb.Append("\n <div class=\"comment_list\">");
  1254. sb.Append("\n <ul id=\"list\">");
  1255. sb.Append("\n <li><b>标题 :</b>表格中的内容1...</li> <li><b>标题 2...:</b>表格中的内容2......</li><li><b>标题3...:</b>表格中的内容3.....</li> </ul>");
  1256. sb.Append("\n </div> </div> </div> </div>");
  1257. }
  1258. }
  1259. // <div class="item">
  1260. // <div class="pic">
  1261. // <a href="javascript:;"><img src="http://js.fgm.cc/learn/lesson10/img/youa/1.jpg" /></a>
  1262. // </div>
  1263. // <div class="txt">
  1264. // <dl>
  1265. // <dt><a href="javascript:;">必图拳馆</a></dt>
  1266. // <dd class="info">不要把自己困住 你需要释放!</dd>
  1267. // <dd><span>总体评价:</span><div class="star"><div style="width:48px;" class="star_red"></div><div class="star_grey"></div></div></dd>
  1268. // <dd><span>用户印象:</span><span class="pink">过瘾</span><span class="blue">带劲</span><span class="green">有活力</span></dd>
  1269. // </dl>
  1270. // <div class="comment">
  1271. // <h3>用户评价</h3>
  1272. // <div class="comment_list">
  1273. // <ul id="list">
  1274. // <li><b>thaifight:</b>是一个非常好的一个拳...</li>
  1275. // <li><b>快乐小友:</b>散打课的实战机会挺多...</li>
  1276. // <li><b>爱情赛车:</b>白天人很少,喜欢安静...</li>
  1277. // </ul>
  1278. // </div>
  1279. // </div>
  1280. // </div>
  1281. // </div>
  1282. // <div class="item">
  1283. // <div class="pic">
  1284. // <a href="javascript:;"><img src="http://js.fgm.cc/learn/lesson10/img/youa/2.jpg"></a>
  1285. // </div>
  1286. // <div class="txt">
  1287. // <dl>
  1288. // <dt><a href="javascript:;">北京「七田阳光」全脑教育培训中心</a></dt>
  1289. // <dd class="info">点亮孩子智慧人生</dd>
  1290. // <dd><span>总体评价:</span><div class="star"><div style="width:48px;" class="star_red"></div><div class="star_grey"></div></div></dd>
  1291. // <dd><span>用户印象:</span><span class="pink">亲切</span><span class="blue">耐心</span><span class="green">干净</span></dd>
  1292. // </dl>
  1293. // <div class="comment">
  1294. // <h3>用户评价</h3>
  1295. // <div class="comment_list">
  1296. // <ul id="list">
  1297. // <li><b>Jcenter:</b>如此诚恳的教育机构 ...</li>
  1298. // <li><b>citaslin:</b>孩子的进步很大</li>
  1299. // <li><b>甲鱼爱媛媛:</b>七田阳光很注重品质,...</li>
  1300. // </ul>
  1301. // </div>
  1302. // </div>
  1303. // </div>
  1304. // </div>
  1305. //<div class="item">
  1306. // <div class="pic">
  1307. // <a href="javascript:;"><img src="http://js.fgm.cc/learn/lesson10/img/youa/3.jpg" /></a>
  1308. // </div>
  1309. // <div class="txt">
  1310. // <dl>
  1311. // <dt><a href="javascript:;">慕纱莹雪婚纱礼服馆</a></dt>
  1312. // <dd class="info">物超所值的性价比,尽在慕纱莹雪!</dd>
  1313. // <dd><span>总体评价:</span><div class="star"><div style="width:62px;" class="star_red"></div><div class="star_grey"></div></div></dd>
  1314. // <dd><span>用户印象:</span><span class="pink">精致</span><span class="blue">做工好</span><span class="green">专业</span></dd>
  1315. // </dl>
  1316. // <div class="comment">
  1317. // <h3>用户评价</h3>
  1318. // <div class="comment_list">
  1319. // <ul id="list">
  1320. // <li><b>小企鹅快跑:</b>这个周末去取了我定的...</li>
  1321. // <li><b>月逢明时:</b>这家婚纱店的婚纱做工...</li>
  1322. // <li><b>日历本丢了:</b>上周末去取了婚纱,婚...</li>
  1323. // </ul>
  1324. // </div>
  1325. // </div>
  1326. // </div>
  1327. // </div>
  1328. // <div class="item">
  1329. // <div class="pic">
  1330. // <a href="javascript:;"><img src="http://js.fgm.cc/learn/lesson10/img/youa/4.jpg"></a>
  1331. // </div>
  1332. // <div class="txt">
  1333. // <dl>
  1334. // <dt><a href="javascript:;">北京金三优装饰有限责任公司</a></dt>
  1335. // <dd class="info">一站式服务让你省时、省力、省钱、省心</dd>
  1336. // <dd><span>总体评价:</span><div class="star"><div style="width:48px;" class="star_red"></div><div class="star_grey"></div></div></dd>
  1337. // <dd><span>用户印象:</span><span class="pink">口碑好</span><span class="blue">规模很大</span><span class="green">讲信誉</span></dd>
  1338. // </dl>
  1339. // <div class="comment">
  1340. // <h3>用户评价</h3>
  1341. // <div class="comment_list">
  1342. // <ul id="list">
  1343. // <li><b>紫婧之梦:</b>这家店不错哦!</li>
  1344. // <li><b>gotometop:</b>装修工都还挺朴实的,...</li>
  1345. // <li><b>libangcheng1:</b>这家公司还可以,去年...</li>
  1346. // </ul>
  1347. // </div>
  1348. // </div>
  1349. // </div>
  1350. // </div>
  1351. // <div class="item">
  1352. // <div class="pic">
  1353. // <a href="javascript:;"><img src="http://js.fgm.cc/learn/lesson10/img/youa/5.jpg"></a>
  1354. // </div>
  1355. // <div class="txt">
  1356. // <dl>
  1357. // <dt><a href="javascript:;">鸿喜族休闲俱乐部—潘家园店</a></dt>
  1358. // <dd class="info">专注人类健康,打造财富传奇!</dd>
  1359. // <dd><span>总体评价:</span><div class="star"><div style="width:48px;" class="star_red"></div><div class="star_grey"></div></div></dd>
  1360. // <dd><span>用户印象:</span><span class="pink">真好</span><span class="blue">专业</span><span class="green">手法好</span></dd>
  1361. // </dl>
  1362. // <div class="comment">
  1363. // <h3>用户评价</h3>
  1364. // <div class="comment_list">
  1365. // <ul id="list">
  1366. // <li><b>永封de铁盒:</b>环境挺不错,灯光控制...</li>
  1367. // <li><b>老冯爱国:</b>不错的地方,是个很有...</li>
  1368. // <li><b>白云寺方丈:</b>我不会打台球,但朋友...</li>
  1369. // </ul>
  1370. // </div>
  1371. // </div>
  1372. // </div>
  1373. // </div>
  1374. // <div class="item">
  1375. // <div class="pic">
  1376. // <a href="javascript:;"><img src="http://js.fgm.cc/learn/lesson10/img/youa/6.jpg"></a>
  1377. // </div>
  1378. // <div class="txt">
  1379. // <dl>
  1380. // <dt><a href="javascript:;">北京心拓城拓展培训</a></dt>
  1381. // <dd class="info">客户第一 执行有力 激情勤奋 简单团结</dd>
  1382. // <dd><span>总体评价:</span><div class="star"><div style="width:48px;" class="star_red"></div><div class="star_grey"></div></div></dd>
  1383. // <dd><span>用户印象:</span><span class="pink">专业</span><span class="blue">安全</span><span class="green">积极</span></dd>
  1384. // </dl>
  1385. // <div class="comment">
  1386. // <h3>用户评价</h3>
  1387. // <div class="comment_list">
  1388. // <ul id="list">
  1389. // <li><b>janice19891:</b>很负责任~</li>
  1390. // <li><b>旺达是条鱼:</b>朋友参加过他们的拓展...</li>
  1391. // <li><b>bjftxiaoniu:</b>吼吼,在这里看到他们...</li>
  1392. // </ul>
  1393. // </div>
  1394. // </div>
  1395. // </div>
  1396. // </div>
  1397. // <div class="item">
  1398. // <div class="pic">
  1399. // <a href="javascript:;"><img src="http://js.fgm.cc/learn/lesson10/img/youa/7.jpg"></a>
  1400. // </div>
  1401. // <div class="txt">
  1402. // <dl>
  1403. // <dt><a href="javascript:;">韩医生专业祛痘连锁机构北京直营店</a></dt>
  1404. // <dd class="info">我们只祛痘 所以更专业</dd>
  1405. // <dd><span>总体评价:</span><div class="star"><div style="width:62px;" class="star_red"></div><div class="star_grey"></div></div></dd>
  1406. // <dd><span>用户印象:</span><span class="pink">效果好</span><span class="blue">细心</span><span class="green">专业</span></dd>
  1407. // </dl>
  1408. // <div class="comment">
  1409. // <h3>用户评价</h3>
  1410. // <div class="comment_list">
  1411. // <ul id="list">
  1412. // <li><b>天涯hehaijiao:</b>这家店很好,顾客很多...</li>
  1413. // <li><b>爱神马geili:</b>我治疗了两天感觉的好...</li>
  1414. // <li><b>天上的语言:</b>这几天已经看到明显效...</li>
  1415. // </ul>
  1416. // </div>
  1417. // </div>
  1418. // </div>
  1419. // </div>
  1420. // <div class="item">
  1421. // <div class="pic">
  1422. // <a href="javascript:;"><img src="http://js.fgm.cc/learn/lesson10/img/youa/8.jpg"></a>
  1423. // </div>
  1424. // <div class="txt">
  1425. // <dl>
  1426. // <dt><a href="javascript:;">罗曼卡婚纱摄影</a></dt>
  1427. // <dd class="info">口碑好 性价比高 无额外消费</dd>
  1428. // <dd><span>总体评价:</span><div class="star"><div style="width:62px;" class="star_red"></div><div class="star_grey"></div></div></dd>
  1429. // <dd><span>用户印象:</span><span class="pink">口碑好</span><span class="blue">很喜欢</span><span class="green">完美</span></dd>
  1430. // </dl>
  1431. // <div class="comment">
  1432. // <h3>用户评价</h3>
  1433. // <div class="comment_list">
  1434. // <ul id="list">
  1435. // <li><b>明确指出i:</b>拍的很不错,老妈都夸...</li>
  1436. // <li><b>爱就一直走吧:</b>他们家服务态度好,衣...</li>
  1437. // <li><b>爱过你me:</b>最后照片拍出来后朋友...</li>
  1438. // </ul>
  1439. // </div>
  1440. // </div>
  1441. // </div>
  1442. // </div>
  1443. sb.Append("\n </div> ");
  1444. sb.Append("\n <div id=\"control\"></div>");
  1445. sb.Append("\n</div>");
  1446. return sb.ToString();
  1447. }
  1448. //JS横向左右切换的焦点图特效 OK扇形分格 纯脚本
  1449. public string TX25(string imagesDir, int pW, int pH)
  1450. {
  1451. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  1452. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  1453. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  1454. sb.Append("\n <style type=\"text/css\">");
  1455. sb.Append("\n * { padding: 0; margin: 0; }");
  1456. sb.Append("\n li { list-style: none; }");
  1457. sb.Append("\n body { background: #f6f9fc; }");
  1458. sb.Append("\n div { width: 660px; height: 254px; border: 1px solid #ccc; margin: 50px auto 0; overflow:hidden; }");
  1459. sb.Append("\n ul { width: 3300px; height: 254px; }");
  1460. sb.Append("\n ul li { width: 22px; height: 254px; float: left; position: relative; overflow:hidden; }");
  1461. sb.Append("\n .active { width: 550px; }");
  1462. sb.Append("\n ul span { width: 21px; height: 244px; padding-top: 10px; border-right: 1px solid #fff; position: absolute; top: 0; right: 0; color: #fff; font-size: 12px; text-align: center; cursor: pointer; }");
  1463. sb.Append("\n ul img { width: 550px; height: 254px; }");
  1464. sb.Append("\n .bg0 { background: #00FFCC; }");
  1465. sb.Append("\n .bg1 { background: #636363; }");
  1466. sb.Append("\n .bg2 { background: #3d7fbb; }");
  1467. sb.Append("\n .bg3 { background: #5ca716; }");
  1468. sb.Append("\n .bg4 { background: #f28b24; }");
  1469. sb.Append("\n .bg5 { background: #7c0070; }");
  1470. sb.Append("\n </style>");
  1471. sb.Append("\n <script type=\"text/javascript\">");
  1472. sb.Append("\n var g_aLis = [];");
  1473. sb.Append("\n var g_aBtns = [];");
  1474. sb.Append("\n var g_oTimer = null;");
  1475. sb.Append("\n var g_minWidth = 22;");
  1476. sb.Append("\n window.onload = function() {");
  1477. sb.Append("\n var a = document.getElementById('show1');");
  1478. sb.Append("\n var i = 0;");
  1479. sb.Append("\n g_aLis = a.getElementsByTagName('li');");
  1480. sb.Append("\n g_aBtns = a.getElementsByTagName('span');");
  1481. sb.Append("\n for (i = 0; i < g_aBtns.length; i++) {");
  1482. sb.Append("\n g_aBtns[i].index = i;");
  1483. sb.Append("\n g_aBtns[i].onmouseover = function() {");
  1484. sb.Append("\n gotoImg(this.index)");
  1485. sb.Append("\n }");
  1486. sb.Append("\n }");
  1487. sb.Append("\n };");
  1488. sb.Append("\n function gotoImg(a) {");
  1489. sb.Append("\n if (g_oTimer) {");
  1490. sb.Append("\n clearInterval(g_oTimer)");
  1491. sb.Append("\n }");
  1492. sb.Append("\n g_oTimer = setInterval(\"changeWidthInner(\" + a + \")\", 35)");
  1493. sb.Append("\n }");
  1494. sb.Append("\n function changeWidthInner(a) {");
  1495. sb.Append("\n var b = document.getElementById('show1');");
  1496. sb.Append("\n var c = 660;");
  1497. sb.Append("\n var w = 0;");
  1498. sb.Append("\n var d = true;");
  1499. sb.Append("\n var i = 0;");
  1500. sb.Append("\n for (i = 0; i < g_aLis.length; i++) {");
  1501. sb.Append("\n if (i == a) {");
  1502. sb.Append("\n continue");
  1503. sb.Append("\n }");
  1504. sb.Append("\n if (g_minWidth == g_aLis[i].offsetWidth) {");
  1505. sb.Append("\n c -= g_aLis[i].offsetWidth;");
  1506. sb.Append("\n continue");
  1507. sb.Append("\n }");
  1508. sb.Append("\n d = false;");
  1509. sb.Append("\n speed = Math.ceil((g_aLis[i].offsetWidth - g_minWidth) / 10);");
  1510. sb.Append("\n w = g_aLis[i].offsetWidth - speed;");
  1511. sb.Append("\n if (w <= g_minWidth) {");
  1512. sb.Append("\n w = g_minWidth");
  1513. sb.Append("\n }");
  1514. sb.Append("\n g_aLis[i].style.width = w + 'px';");
  1515. sb.Append("\n c -= w");
  1516. sb.Append("\n }");
  1517. sb.Append("\n g_aLis[a].style.width = c + 'px';");
  1518. sb.Append("\n if (d) {");
  1519. sb.Append("\n clearInterval(g_oTimer);");
  1520. sb.Append("\n g_oTimer = null");
  1521. sb.Append("\n }");
  1522. sb.Append("\n }");
  1523. sb.Append("\n </script>");
  1524. sb.Append("\n<ul id=\"show1\">");
  1525. int s = 0;
  1526. foreach (FileInfo FileName in ArrUnPostil)
  1527. {
  1528. if (FileName.Length > 0)
  1529. {
  1530. s = s + 1;
  1531. int t = (s - 1) % 5;
  1532. if (s == 1)
  1533. {
  1534. sb.Append("\n <li class=\"active\"> <span class=\"bg" + t.ToString() + "\">这是第" + s.ToString() + "个</span> <img src=\"" + imagesDir + "/" + FileName.Name + "\"></li>");
  1535. }
  1536. else
  1537. { sb.Append("\n <li> <span class=\"bg" + t.ToString() + "\">这是第" + s.ToString() + "个</span> <img src=\"" + imagesDir + "/" + FileName.Name + "\"></li>"); }
  1538. if (s ==10)
  1539. { break; }
  1540. }
  1541. }
  1542. //<li class="active">
  1543. // <span class="bg0">这是第一个</span>
  1544. // <img src="http://www.alixixi.com/skins/iad1.jpg">
  1545. //</li>
  1546. //<li>
  1547. // <span class="bg1">这是第二个</span>
  1548. // <img src="http://www.alixixi.com/skins/iad2.jpg">
  1549. //</li>
  1550. //<li>
  1551. // <span class="bg2">这是第三个</span>
  1552. // <img src="http://www.alixixi.com/skins/iad3.jpg">
  1553. //</li>
  1554. //<li>
  1555. // <span class="bg3">这是第四个</span>
  1556. // <img src="http://www.alixixi.com/skins/iad4.jpg">
  1557. //</li>
  1558. //<li>
  1559. // <span class="bg4">这是第五个</span>
  1560. // <img src="http://www.alixixi.com/skins/iad5.jpg">
  1561. //</li>
  1562. //<li>
  1563. // <span class="bg5">这是第六个</span>
  1564. // <img src="http://www.alixixi.com/skins/iad6.jpg">
  1565. //</li>
  1566. sb.Append("\n </ul>");
  1567. return sb.ToString();
  1568. }
  1569. //非常酷的3D翻转相册展示特效
  1570. public string TX24(string imagesFilename)
  1571. {
  1572. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  1573. sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"css/TX24.css\" />");
  1574. sb.Append("\n <script type=\"text/javascript\" src=\"js/TX24.js\"></script>");
  1575. sb.Append("\n <div id=\"screen\"></div>");
  1576. sb.Append("\n <div id=\"bankImages\">");
  1577. sb.Append("\n <img alt=\"\" src=\"" + imagesFilename + "\">");
  1578. sb.Append("\n </div>");
  1579. sb.Append("\n <div id=\"FPS\"></div>");
  1580. return sb.ToString();
  1581. }
  1582. //JS十字过度效果焦点图 可以运行,只是FLASH无法显示
  1583. public string TX23(string imagesDir, int pW, int pH)
  1584. {
  1585. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  1586. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  1587. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  1588. sb.Append("\n <script type=\"text/javascript\">");
  1589. sb.Append("\nvar pic_width=291; //图片宽度");
  1590. sb.Append("\nvar pic_height=200; //图片高度");
  1591. sb.Append("\nvar button_pos=2; //按扭位置 1左 2右 3上 4下");
  1592. sb.Append("\nvar stop_time=5000; //图片停留时间(1000为1秒钟)");
  1593. sb.Append("\nvar show_text=0; //是否显示文字标签 1显示 0不显示");
  1594. sb.Append("\nvar txtcolor=\"0000ff\"; //文字色");
  1595. sb.Append("\nvar bgcolor=\"DDDDDD\"; //背景色");
  1596. //可编辑内容结束
  1597. string sb1 = " pics='";
  1598. string sb2 = " mylinks='";
  1599. string sb3 = " texts='";
  1600. foreach (FileInfo FileName in ArrUnPostil)
  1601. {
  1602. if (FileName.Length > 0)
  1603. {
  1604. //sb.Append("\n <li data-images=\"rm_container_" + s.ToString() + "\" data-rotation=\"" + (-25 + s * 10) + "\"><img src=\"" + imagesDir + "\\" + FileName.Name + "\"/></li>");
  1605. sb1 += imagesDir + "/" + FileName.Name + "|";
  1606. sb2 += "#|";
  1607. sb3 += "刘友生|";
  1608. }
  1609. }
  1610. sb.Append("\n" + sb1.ToString() + "'");
  1611. sb.Append("\n" + sb2.ToString() + "'");
  1612. sb.Append("\n" + sb3.ToString() + "'");
  1613. // pics='images/01.jpg|images/02.jpg|images/03.jpg|images/04.jpg|images/05.jpg'
  1614. //mylinks='http://www.lanrentuku.com/|http://www.lanrentuku.com/|http://www.lanrentuku.com/|http://www.lanrentuku.com/|http://www.lanrentuku.com/';
  1615. //texts='沈晓海|翁虹|李伟菘|吴晴|于晓光';
  1616. sb.Append("\n</script>");
  1617. sb.Append("\n<script src=\"js/fun.js\"></script>");
  1618. return sb.ToString();
  1619. }
  1620. //傲游JS焦点图
  1621. public string TX22(string imagesDir, int maxNumber)
  1622. {
  1623. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  1624. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  1625. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  1626. sb.Append("\n<link type=\"text/css\" rel=\"stylesheet\" href=\"css/style.css\" />");
  1627. sb.Append("\n<script type=\"text/javascript\" src=\"js/lanrenxixi.js\"></script>");
  1628. sb.Append("\n<div id=\"index-splash-block\" class=\"index-splash-block\">");
  1629. sb.Append("\n<div id=\"feature-slide-block\" class=\"feature-slide-block\">");
  1630. int s = 0;
  1631. foreach (FileInfo FileName in ArrUnPostil)
  1632. {
  1633. if (FileName.Length > 0)
  1634. {
  1635. s = s + 1;
  1636. sb.Append("\n <div class=\"feature-slide-preview\" style=\"display: none; \">");
  1637. sb.Append("\n <h3><a href=\"#\">鼠标手势</a></h3>");
  1638. sb.Append("\n <p>提示信息。</p>");
  1639. sb.Append("\n <a href=\"#\" class=\"screenshot\"><img alt=\"\" src=\"" + imagesDir + "/" + FileName.Name + "\" /></a>");
  1640. sb.Append("\n</div>");
  1641. }
  1642. if (s == maxNumber)
  1643. { break; }
  1644. }
  1645. //<div class="feature-slide-preview" style="display: none; ">
  1646. // <h3><a href="#">鼠标手势</a></h3>
  1647. // <p>按住右键滑动鼠标,就能够执行前进、后退和刷新等常用操作。您还可以到设置中心对其进行自定义。</p>
  1648. // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-1.png" /></a>
  1649. //</div>
  1650. //<div class="feature-slide-preview" style="display: none; ">
  1651. // <h3><a href="#">撤销按钮</a></h3>
  1652. // <p>通过撤销按钮可以轻松找回失手关闭的重要网页,点击按钮旁边的下拉箭头还会显示最近关闭的页面列表。</p>
  1653. // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-2.png" /></a>
  1654. //</div>
  1655. //<div class="feature-slide-preview" style="display: none; ">
  1656. // <h3><a href="#">历史搜索</a></h3>
  1657. // <p>通过历史搜索你可以方便的浏览、搜索和清除浏览历史记录、RSS历史记录以及搜索关键字历史记录</p>
  1658. // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-3.png" /></a>
  1659. //</div>
  1660. //<div class="feature-slide-preview" style="display: none; ">
  1661. // <h3><a href="#">分屏浏览</a></h3>
  1662. // <p>将浏览器窗口一分为二,更大发挥宽屏显示器作用;你可以同时浏览两个网站,转载和对照更加方便。</p>
  1663. // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-4.png" /></a>
  1664. //</div>
  1665. //<div class="feature-slide-preview" style="display: none; ">
  1666. // <h3><a href="#">广告过滤</a></h3>
  1667. // <p>有效阻止各种弹窗、恶意网页的骚扰,还支持自定义过滤和免过滤列表。铺天盖地的广告,消失吧!</p>
  1668. // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-5.png" /></a>
  1669. //</div>
  1670. //<div class="feature-slide-preview" style="display: none; ">
  1671. // <h3><a href="#">在线收藏</a></h3>
  1672. // <p>让你随时随地都可以访问自己的私人收藏夹内容。浏览器会在后台自动保存和同步你的在线收藏夹。</p>
  1673. // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-6.png" /></a>
  1674. //</div>
  1675. //<div class="feature-slide-preview" style="display: none; ">
  1676. // <h3><a href="#">收集面板</a></h3>
  1677. // <p>随叫随到的在线版记事本。多标签让管理更加方便,可以随时上传下载,也可以另存为文本文档。</p>
  1678. // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-7.png" /></a>
  1679. //</div>
  1680. //<div class="feature-slide-preview" style="display: none; ">
  1681. // <h3><a href="#">屏幕截图</a></h3>
  1682. // <p>将网页内容保存为多种图片格式,方便存档和分享。无论是全屏、局部还是整个页面截图,都由你决定。</p>
  1683. // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-8.png" /></a>
  1684. //</div>
  1685. //<div class="feature-slide-preview" style="display: none; ">
  1686. // <h3><a href="#">智能填表</a></h3>
  1687. // <p>智能识别表单进行自动填写,网站注册登录一劳永逸。</p>
  1688. // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-9.png" /></a>
  1689. //</div>
  1690. //<div class="feature-slide-preview" style="display: none; ">
  1691. // <h3><a href="#">多重代理</a></h3>
  1692. // <p>通过设置代理规则,你可以通过不同代理服务器访问不同网站,有效提高浏览效率。</p>
  1693. // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-10.png" /></a>
  1694. //</div>
  1695. //<div class="feature-slide-preview" style="display: none; ">
  1696. // <h3><a href="#">扩展插件</a></h3>
  1697. // <p>通过安装各种插件进一步扩展浏览器的功能。您也可以编写插件与全球用户分享。</p>
  1698. // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-11.png" /></a>
  1699. //</div>
  1700. //<div class="feature-slide-preview" style="display: none; ">
  1701. // <h3><a href="#">个性皮肤</a></h3>
  1702. // <p>不同的皮肤使界面呈现不同的风格,美化浏览器,代言你的个性.你还可以制作皮肤与全球用户分享</p>
  1703. // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-12.png" /></a>
  1704. //</div>
  1705. sb.Append("\n <div id=\"feature-slide-list\" class=\"feature-slide-list\">");
  1706. sb.Append("\n <a href=\"#\" id=\"feature-slide-list-previous\" class=\"feature-slide-list-previous\"></a>");
  1707. sb.Append("\n <div id=\"feature-slide-list-items\" class=\"feature-slide-list-items\">");
  1708. sb.Append("\n </div>");
  1709. sb.Append("\n <a href=\"#\" id=\"feature-slide-list-next\" class=\"feature-slide-list-next\"></a>");
  1710. sb.Append("\n </div>");
  1711. sb.Append("\n </div>");
  1712. sb.Append("\n <script type=\"text/javascript\">");
  1713. sb.Append("\n initFeatureSlide();");
  1714. sb.Append("\n</script>");
  1715. sb.Append("\n</div>");
  1716. return sb.ToString();
  1717. }
  1718. //jQuery网站幻灯片切换效果
  1719. public string TX21(string imagesDir, int maxNumber)
  1720. {
  1721. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  1722. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  1723. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  1724. sb.Append("\n <link rel=\"stylesheet\" href=\"js/lib.css\" type=\"text/css\" media=\"screen\" charset=\"utf-8\">");
  1725. sb.Append("\n<link rel=\"stylesheet\" href=\"js/jQuery.css\" type=\"text/css\" media=\"screen\" charset=\"utf-8\">");
  1726. sb.Append("\n <script src=\"js/jsapi.js\"></script>");
  1727. sb.Append("\n<script>google.load(\"jquery\", \"1\");</script>");
  1728. sb.Append("\n<!-- jQuery Image Scale Carousel CSS & JS -->");
  1729. sb.Append("\n<script src=\"js/jquery-image-scale-carousel.js\" type=\"text/javascript\" charset=\"utf-8\"></script>");
  1730. sb.Append("\n<script>");
  1731. sb.Append("\n var carousel_images = [");
  1732. //"images/01.jpg",
  1733. //"images/02.jpg",
  1734. //"images/03.jpg",
  1735. //"images/04.jpg",
  1736. //"images/05.jpg",
  1737. //"images/06.jpg",
  1738. //"images/07.jpg"
  1739. int s = 0;
  1740. foreach (FileInfo FileName in ArrUnPostil)
  1741. {
  1742. if (FileName.Length > 0)
  1743. {
  1744. s = s + 1;
  1745. sb.Append("\n " + imagesDir + "/" + FileName.Name + ",");
  1746. }
  1747. if (s == 8)
  1748. { break; }
  1749. }
  1750. sb.Append("\n ];");
  1751. // Example without autoplay
  1752. /*$(window).load(function() {
  1753. $("#photo_container").isc({
  1754. imgArray: carousel_images
  1755. });
  1756. });*/
  1757. // Example with autoplay
  1758. sb.Append("\n $(window).load(function() {");
  1759. sb.Append("\n $(\"#photo_container\").isc({");
  1760. sb.Append("\n imgArray: carousel_images,");
  1761. sb.Append("\n autoplay: true,");
  1762. sb.Append("\n autoplayTimer: 5000 // 5 seconds.");
  1763. sb.Append("\n }); ");
  1764. sb.Append("\n }); ");
  1765. sb.Append("\n</script>");
  1766. sb.Append("\n<div id=\"photo_container\"></div>");
  1767. return sb.ToString();
  1768. }
  1769. //Jquery幻灯片焦点图
  1770. public string TX20(string imagesDir, int maxNumber, int pW, int pH)
  1771. {
  1772. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  1773. DirectoryInfo UnPostil = new DirectoryInfo(imagesDir);
  1774. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  1775. sb.Append("\n<script src=\"js/T20_1.js\" type=\"text/javascript\"></script>");
  1776. sb.Append("\n<script src=\"js/T20_2.js\" type=\"text/javascript\"></script>");
  1777. sb.Append("\n<script type=\"text/javascript\">");
  1778. //打开页面随机选择 切换方式(方向),怕增大KinSlideshow.js文件 就没把随机切换写到里面。
  1779. //使用时如有需要随机自己写在前面是一样的。而且还可以只固定随机切换哪几种。
  1780. sb.Append("\nvar moveStyle");
  1781. sb.Append("\n var rand =parseInt(Math.random()*4)");
  1782. sb.Append("\n switch(rand){");
  1783. sb.Append("\ncase 0: moveStyle=\"left\" ;break;");
  1784. sb.Append("\ncase 1: moveStyle=\"right\" ;break;");
  1785. sb.Append("\ncase 2: moveStyle=\"down\" ;break;");
  1786. sb.Append("\ncase 3: moveStyle=\"up\" ;break;");
  1787. sb.Append("\n}");
  1788. sb.Append("\n$(function(){");
  1789. sb.Append("\n$(\"#KinSlideshow1\").KinSlideshow({moveStyle:moveStyle});");
  1790. sb.Append("\n})");
  1791. sb.Append("\n</script>");
  1792. sb.Append("\n<style type=\"text/css\">");
  1793. sb.Append("\n #KinSlideshow{ overflow:hidden; width:600px; height:300px;}");
  1794. sb.Append("\n</style>");
  1795. sb.Append("\n<div id=\"KinSlideshow1\" style=\"visibility:hidden;\">");
  1796. //<a href="http://www.lanrentuku.com" target="_blank"><img src="images/1.jpg" alt="这是标题一" width="600" height="300" /></a>
  1797. //<a href="http://www.lanrentuku.com" target="_blank"><img src="images/2.jpg" alt="这是标题二" width="600" height="300" /></a>
  1798. //<a href="http://www.lanrentuku.com" target="_blank"><img src="images/3.jpg" alt="这是标题三" width="600" height="300" /></a>
  1799. //<a href="http://www.lanrentuku.com" target="_blank"><img src="images/4.jpg" alt="这是标题四" width="600" height="300" /></a>
  1800. //<a href="http://www.lanrentuku.com" target="_blank"><img src="images/5.jpg" alt="这是标题五" width="600" height="300" /></a>
  1801. //<a href="http://www.lanrentuku.com" target="_blank"><img src="images/6.jpg" alt="这是标题六" width="600" height="300" /></a>
  1802. int s = 0;
  1803. foreach (FileInfo FileName in ArrUnPostil)
  1804. {
  1805. if (FileName.Length > 0)
  1806. {
  1807. s = s + 1;
  1808. sb.Append("\n<a href=\"mailto:ssxylys@163.com\" target=\"_blank\"><img src=\"" + imagesDir + "\\" + FileName.Name + "\" alt=\"广东刘友生设计,这里可以改为文字标题\" width=\"" + pW.ToString() + "\" height=\"" + pH.ToString() + "\" /></a>");
  1809. }
  1810. if (s == maxNumber)
  1811. { break; }
  1812. }
  1813. sb.Append("\n</div>");
  1814. return sb.ToString();
  1815. }
  1816. //jquery多功能焦点图代码,最好不超过6个图片,超过6个,修改DATA.js或者TX19.js中的信息和内容
  1817. public string TX19(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
  1818. {
  1819. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  1820. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  1821. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  1822. sb.Append("\n <link rel=\"stylesheet\" href=\"css/screen.css\" type=\"text/css\" media=\"screen\" />");
  1823. sb.Append("\n <div style=\"width: 815px; margin: 0 auto 0 auto;\">");
  1824. sb.Append("\n <div id=\"mlb-wrapper\">");
  1825. sb.Append("\n <div id=\"details\" class=\"base\"> ");
  1826. sb.Append("\n <div id=\"photo\" class=\"base\">");
  1827. sb.Append("\n <ul id=\"photos\">");
  1828. //<li><a href="#1"><img src="images/mlb-1.jpg" alt="Caption 1" width="480" height="270" /></a></li>
  1829. //<li><a href="#2"><img src="images/mlb-2.jpg" alt="Caption 2" width="480" height="270" /></a></li>
  1830. //<li><a href="#3"><img src="images/mlb-3.jpg" alt="Caption 3" width="480" height="270" /></a></li>
  1831. //<li><a href="#4"><img src="images/mlb-4.jpg" alt="Caption 4" width="480" height="270" /></a></li>
  1832. //<li><a href="#5"><img src="images/mlb-5.jpg" alt="Caption 5" width="480" height="270" /></a></li>
  1833. //<li><a href="#6"><img src="images/mlb-6.jpg" alt="Caption 6" width="480" height="270" /></a></li>
  1834. int s = 0;
  1835. foreach (FileInfo FileName in ArrUnPostil)
  1836. {
  1837. if (FileName.Length > 0)
  1838. {
  1839. s = s + 1;
  1840. sb.Append("\n <li><a href=\"#" + s.ToString() + "\"><img src=\"" + imagesDir + "/" + FileName.Name + "\" alt=\"刘友生设计 \" width=\"480\" height=\"270\" /></a></li>");
  1841. }
  1842. if (s == 6)
  1843. { break; }
  1844. }
  1845. sb.Append("\n </ul>");
  1846. sb.Append("\n </div><!-- photo ends -->");
  1847. sb.Append("\n <div id=\"hover-box\">");
  1848. sb.Append("\n <div id=\"thumbs\" class=\"base\">");
  1849. sb.Append("\n <ul>");
  1850. //<li><a href="#1" class="highlight"><img src="images/mlb-1-thumb.jpg" alt="Caption 1" width="74" height="41" /><span></span></a></li>
  1851. //<li><a href="#2"><img src="images/mlb-2-thumb.jpg" alt="Caption 2" width="74" height="41" /></a></li>
  1852. //<li><a href="#3"><img src="images/mlb-3-thumb.jpg" alt="Caption 3" width="74" height="41" /></a></li>
  1853. //<li><a href="#4"><img src="images/mlb-4-thumb.jpg" alt="Caption 4" width="74" height="41" /></a></li>
  1854. //<li><a href="#5"><img src="images/mlb-5-thumb.jpg" alt="Caption 5" width="74" height="41" /></a></li>
  1855. //<li><a href="#6"><img src="images/mlb-6-thumb.jpg" alt="Caption 6" width="74" height="41" /></a></li>
  1856. s = 0;
  1857. foreach (FileInfo FileName in ArrUnPostil)
  1858. {
  1859. if (FileName.Length > 0)
  1860. {
  1861. s = s + 1;
  1862. if (s == 1)
  1863. { sb.Append("\n <li><a href=\"#1\" class=\"highlight\"><img src=\"" + imagesDir + "/" + FileName.Name + "\" alt=\"刘友生设计 \" width=\"74\" height=\"41\" /><span></span></a></li>"); }
  1864. else
  1865. { sb.Append("\n <li><a href=\"#" + s.ToString() + "\"><img src=\"" + imagesDir + "\\" + FileName.Name + "\" width=\"74\" height=\"41\" /></a></li>"); }
  1866. }
  1867. if (s == 6)
  1868. { break; }
  1869. }
  1870. sb.Append("\n </ul>");
  1871. sb.Append("\n <p>我们致力网站构件的设计,联系!</p>");
  1872. sb.Append("\n </div><!-- thumbs -->");
  1873. sb.Append("\n <div id=\"navigation\" class=\"base\">");
  1874. sb.Append("\n <a href=\"#\" id=\"prev\" class=\"prev-next\"><span>&lt;&lt;</span> prev</a>");
  1875. sb.Append("\n <a href=\"#\" id=\"play-pause\" class=\"play pause\" title=\"请按滚动条\">Play/Pause</a>");
  1876. sb.Append("\n <ul>");
  1877. //<li><a href="#1" class="highlight">Story 1</a></li>
  1878. //<li><a href="#2">Story 2</a></li>
  1879. //<li><a href="#3">Story 3</a></li>
  1880. //<li><a href="#4">Story 4</a></li>
  1881. //<li><a href="#5">Story 5</a></li>
  1882. //<li><a href="#6">Story 6</a></li>
  1883. s = 0;
  1884. foreach (FileInfo FileName in ArrUnPostil)
  1885. {
  1886. if (FileName.Length > 0)
  1887. {
  1888. s = s + 1;
  1889. if (s == 1)
  1890. { sb.Append("\n <li><a href=\"#1\" class=\"highlight\">Story 1</a></li>"); }
  1891. else
  1892. { sb.Append("\n <li><a href=\"#" + s.ToString() + "\">Story" + s.ToString() + "</a></li>"); }
  1893. }
  1894. if (s == 6)
  1895. { break; }
  1896. }
  1897. sb.Append("\n </ul>");
  1898. sb.Append("\n <a href=\"#\" id=\"next\" class=\"prev-next\">next <span>&gt;&gt;</span></a>");
  1899. sb.Append("\n </div><!-- navigation -->");
  1900. sb.Append("\n </div><!-- hover box -->");
  1901. sb.Append("\n <div id=\"description\" class=\"base\">");
  1902. sb.Append("\n <p id=\"small-caption\">由刘友生设计.</p>");
  1903. sb.Append("\n <h1 id=\"title\"><a href=\"#\">由刘友生设计</a></h1>");
  1904. sb.Append("\n <p id=\"long-desc\">由刘友生设计");
  1905. sb.Append("\n </p></div><!-- description -->");
  1906. sb.Append("\n </div><!-- base -->");
  1907. sb.Append("\n </div><!-- mlb wrapper -->");
  1908. sb.Append("\n <script type=\"text/javascript\" src=\"js/googleapis.js\"></script>");
  1909. sb.Append("\n <script type=\"text/javascript\" src=\"js/Tx19.js?v=2.0\"></script>");
  1910. sb.Append("\n <script type=\"text/javascript\" src=\"js/general.js?v=2.0\"></script>");
  1911. return sb.ToString();
  1912. }
  1913. //多屏(根据XML文件中确定)带标题Flash+xml焦点图
  1914. public string TX18(string imagesDir)
  1915. {
  1916. CreateXMLFile(HttpContext.Current.Server.MapPath(imagesDir), "xml", 12, "xixi.xml", "<?xml version=\"1.0\" encoding=\"utf-8\"?><data><newsid>", "</newsid></data>", "");
  1917. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  1918. sb.Append("\n <script type=\"text/javascript\" src=\"js/TX18.js\"></script>");
  1919. sb.Append("\n <div id=\"flashcontent\" style=\"width:525px; height:238px; font-size:14px; font-weight:700;\"></div>");
  1920. sb.Append("\n <script type=\"text/javascript\">");
  1921. sb.Append("\n var so = new SWFObject(\"swf/homepage1.swf?xmlPath=xml/xixi.xml\", \"sotester\", \"525\", \"238\", \"7\", \"#000000\");");
  1922. sb.Append("\n so.addParam(\"allowFullScreen\", \"true\");");
  1923. sb.Append("\n so.addParam(\"menu\", \"false\");");
  1924. sb.Append("\n so.addParam(\"wmode\", \"transparent\");");
  1925. sb.Append("\n so.write(\"flashcontent\");");
  1926. sb.Append("\n </script>");
  1927. return sb.ToString();
  1928. }
  1929. //缩略图左右滚动OK OK
  1930. public string TX17(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
  1931. {
  1932. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  1933. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  1934. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  1935. sb.Append("\n <script src=\"js/jquery-1.4.4.min.js\"></script>");
  1936. sb.Append("\n <script src=\"js/slides.min.jquery.js\"></script>");
  1937. sb.Append("\n <script>");
  1938. sb.Append("\n $(function(){");
  1939. sb.Append("\n $('#products').slides({");
  1940. sb.Append("\n preload: true,");
  1941. sb.Append("\n preloadImage: 'img/loading.gif',");
  1942. sb.Append("\n effect: 'slide, fade',");
  1943. sb.Append("\n crossfade: true,");
  1944. sb.Append("\n slideSpeed: 200,");
  1945. sb.Append("\n fadeSpeed: 500,");
  1946. sb.Append("\n generateNextPrev: true,");
  1947. sb.Append("\n generatePagination: false");
  1948. sb.Append("\n });");
  1949. sb.Append("\n });");
  1950. sb.Append("\n </script>");
  1951. sb.Append("\n <link rel=\"stylesheet\" href=\"css/global.css\">");
  1952. sb.Append("\n <div id=\"container\">");
  1953. sb.Append("\n <div id=\"products_example\">");
  1954. sb.Append("\n <div id=\"products\">");
  1955. string sb1 = "\n <div class=\"slides_container\">";
  1956. string sb2 = "\n <ul class=\"pagination\">";
  1957. foreach (FileInfo FileName in ArrUnPostil)
  1958. {
  1959. if (FileName.Length > 0)
  1960. {
  1961. //sb.Append("\n <li data-images=\"rm_container_" + s.ToString() + "\" data-rotation=\"" + (-25 + s * 10) + "\"><img src=\"" + imagesDir + "\\" + FileName.Name + "\"/></li>");
  1962. sb1 += "\n <a href=\"#\" target=\"_blank\"><img src=\"" + imagesDir + "/" + FileName.Name + "\" width=\"366\" alt=\"刘友生设计\"></a>";
  1963. sb2 += "\n <li><a href=\"#\"><img src=\"" + imagesDir + "/" + FileName.Name + "\" width=\"48\" height=\"40\" alt=\"刘友生设计\"></a></li>";
  1964. }
  1965. }
  1966. sb.Append("\n" + sb1.ToString() + "</div>");
  1967. sb.Append("\n" + sb2.ToString() + "</ul>");
  1968. //<div class="slides_container">
  1969. // <a href="http://www.zappos.com/pro-keds-royal-plus-lo-grey" target="_blank"><img src="img/1144953-3-2x.jpg" width="366" alt="1144953 3 2x"></a>
  1970. // <a href="http://www.zappos.com/pro-keds-royal-plus-lo-grey" target="_blank"><img src="img/1144953-1-2x.jpg" width="366" alt="1144953 1 2x"></a>
  1971. // <a href="http://www.zappos.com/pro-keds-royal-plus-lo-grey" target="_blank"><img src="img/1144953-2-2x.jpg" width="366" alt="1144953 2 2x"></a>
  1972. // <a href="http://www.zappos.com/pro-keds-royal-plus-lo-grey" target="_blank"><img src="img/1144953-4-2x.jpg" width="366" alt="1144953 4 2x"></a>
  1973. // <a href="http://www.zappos.com/pro-keds-royal-plus-lo-grey" target="_blank"><img src="img/1144953-5-2x.jpg" width="366" alt="1144953 5 2x"></a>
  1974. // <a href="http://www.zappos.com/pro-keds-royal-plus-lo-grey" target="_blank"><img src="img/1144953-6-2x.jpg" width="366" alt="1144953 6 2x"></a>
  1975. // <a href="http://www.zappos.com/pro-keds-royal-plus-lo-grey" target="_blank"><img src="img/1144953-p-2x.jpg" width="366" alt="1144953 P 2x"></a>
  1976. //</div>
  1977. //<ul class="pagination">
  1978. // <li><a href="#"><img src="img/1144953-3-2x.jpg" width="55" alt="1144953 3 2x"></a></li>
  1979. // <li><a href="#"><img src="img/1144953-1-2x.jpg" width="55" alt="1144953 1 2x"></a></li>
  1980. // <li><a href="#"><img src="img/1144953-2-2x.jpg" width="55" alt="1144953 2 2x"></a></li>
  1981. // <li><a href="#"><img src="img/1144953-4-2x.jpg" width="55" alt="1144953 4 2x"></a></li>
  1982. // <li><a href="#"><img src="img/1144953-5-2x.jpg" width="55" alt="1144953 5 2x"></a></li>
  1983. // <li><a href="#"><img src="img/1144953-6-2x.jpg" width="55" alt="1144953 6 2x"></a></li>
  1984. // <li><a href="#"><img src="img/1144953-p-2x.jpg" width="55" alt="1144953 P 2x"></a></li>
  1985. //</ul>
  1986. sb.Append("\n </div>");
  1987. sb.Append("\n </div>");
  1988. return sb.ToString();
  1989. }
  1990. // 自动扇形滚动的焦点图 XX
  1991. public string TX16(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
  1992. {//jquery.mousewheel.js jquery.RotateImageMenu.js jquery.transform-0.9.3.min_.js
  1993. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  1994. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  1995. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  1996. sb.Append(" <link rel=\"stylesheet\" type=\"text/css\" href=\"css/TX16.css\" />");
  1997. sb.Append("<link href=\"http://fonts.googleapis.com/css?family=PT+Sans+Narrow\" rel=\"stylesheet\" type=\"text/css\" />");
  1998. sb.Append(" <div class=\"content\">");
  1999. sb.Append("\n <h1>Rotating Image Slider</h1>");
  2000. sb.Append("\n <div class=\"rm_wrapper\">");
  2001. sb.Append("\n <div id=\"rm_container\" class=\"rm_container\">");
  2002. sb.Append("\n <ul>");
  2003. int s = 0;
  2004. foreach (FileInfo FileName in ArrUnPostil)
  2005. {
  2006. if (FileName.Length > 0)
  2007. {
  2008. s = s + 1;
  2009. sb.Append("\n <li data-images=\"rm_container_" + s.ToString() + "\" data-rotation=\"" + (-25 + s * 10) + "\"><img src=\"" + imagesDir + "/" + FileName.Name + "\"/></li>");
  2010. }
  2011. if (s == 4)
  2012. { break; }
  2013. }
  2014. //<li data-images="rm_container_1" data-rotation="-15"><img src="images/1.jpg"/></li>
  2015. //<li data-images="rm_container_2" data-rotation="-5"><img src="images/2.jpg"/></li>
  2016. //<li data-images="rm_container_3" data-rotation="5"><img src="images/3.jpg"/></li>
  2017. //<li data-images="rm_container_4" data-rotation="15"><img src="images/4.jpg"/></li>
  2018. sb.Append("\n </ul>");
  2019. sb.Append("\n <div id=\"rm_mask_left\" class=\"rm_mask_left\"></div>");
  2020. sb.Append("\n <div id=\"rm_mask_right\" class=\"rm_mask_right\"></div>");
  2021. sb.Append("\n <div id=\"rm_corner_left\" class=\"rm_corner_left\"></div>");
  2022. sb.Append("\n<div id=\"rm_corner_right\" class=\"rm_corner_right\"></div>");
  2023. sb.Append("\n<h2>Fashion Explosion 2012</h2>");
  2024. sb.Append("\n <div style=\"display:none;\">");
  2025. s = 0;
  2026. string sb1 = "\n <div id=\"rm_container_1\">";
  2027. string sb2 = "\n <div id=\"rm_container_2\">";
  2028. string sb3 = "\n <div id=\"rm_container_3\">";
  2029. string sb4 = "\n <div id=\"rm_container_4\">";
  2030. foreach (FileInfo FileName in ArrUnPostil)
  2031. {
  2032. if (FileName.Length > 0)
  2033. {
  2034. s = s + 1;
  2035. if (s % 4 == 0) { sb1 += ("\n <img src=\"" + imagesDir + "/" + FileName.Name + "\"/>"); }
  2036. if (s % 4 == 1) { sb2 += ("\n <img src=\"" + imagesDir + "/" + FileName.Name + "\"/>"); }
  2037. if (s % 4 == 2) { sb3 += ("\n <img src=\"" + imagesDir + "/" + FileName.Name + "\"/>"); }
  2038. if (s % 4 == 3) { sb4 += ("\n <img src=\"" + imagesDir + "/" + FileName.Name + "\"/>"); }
  2039. }
  2040. }
  2041. sb.Append("\n" + sb1.ToString() + "</div>");
  2042. sb.Append("\n" + sb2.ToString() + "</div>");
  2043. sb.Append("\n" + sb3.ToString() + "</div>");
  2044. sb.Append("\n" + sb4.ToString() + "</div>");
  2045. // <div id=\"rm_container_1\">");
  2046. //<img src="images/1.jpg"/>
  2047. //<img src="images/5.jpg"/>
  2048. //<img src="images/6.jpg"/>
  2049. //<img src="images/7.jpg"/>
  2050. //sb.Append("</div>
  2051. //<div id="rm_container_2">
  2052. // <img src="images/2.jpg"/>
  2053. // <img src="images/8.jpg"/>
  2054. // <img src="images/9.jpg"/>
  2055. // <img src="images/10.jpg"/>
  2056. //</div>
  2057. //<div id="rm_container_3">
  2058. // <img src="images/3.jpg"/>
  2059. // <img src="images/11.jpg"/>
  2060. // <img src="images/12.jpg"/>
  2061. // <img src="images/13.jpg"/>
  2062. //</div>
  2063. //<div id="rm_container_4">
  2064. // <img src="images/4.jpg"/>
  2065. // <img src="images/14.jpg"/>
  2066. // <img src="images/15.jpg"/>
  2067. // <img src="images/16.jpg"/>
  2068. //</div>
  2069. sb.Append("\n </div>");
  2070. sb.Append("\n </div>");
  2071. sb.Append("\n <div class=\"rm_nav\">");
  2072. sb.Append("\n <a id=\"rm_next\" href=\"#\" class=\"rm_next\"></a>");
  2073. sb.Append("\n <a id=\"rm_prev\" href=\"#\" class=\"rm_prev\"></a>");
  2074. sb.Append("\n</div>");
  2075. sb.Append("\n<div class=\"rm_controls\">");
  2076. sb.Append("\n <a id=\"rm_play\" href=\"#\" class=\"rm_play\">Play</a>");
  2077. sb.Append("\n <a id=\"rm_pause\" href=\"#\" class=\"rm_pause\">Pause</a>");
  2078. sb.Append("\n </div>");
  2079. sb.Append("\n </div>");
  2080. sb.Append("\n </div>");
  2081. sb.Append("\n <p align=\"center\"></p>");
  2082. sb.Append("\n<p align=\"center\"></p>");
  2083. return sb.ToString();
  2084. }
  2085. //七屏百叶窗焦点图 OK
  2086. public string TX15(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
  2087. {
  2088. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  2089. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  2090. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  2091. sb.Append(" <LINK rel=stylesheet type=text/css href=\"css/TX15.css\">");
  2092. sb.Append("<SCRIPT type=text/javascript src=\"js/TX15.js\"></SCRIPT>");
  2093. sb.Append(" <DIV id=center>");
  2094. sb.Append("<DIV id=slider>");
  2095. sb.Append(" <DIV id=apDiv1><IMG border=0 alt=\"\" src=\"img/sr.gif\" width=821 height=37></DIV>");
  2096. foreach (FileInfo FileName in ArrUnPostil)
  2097. {
  2098. if (FileName.Length > 0)
  2099. {
  2100. sb.Append("<DIV class=slide><A href=\"#\" target=_blank><IMG class=diapo border=0 src=\"" + imagesDir + "/" + FileName.Name + "\"></A><DIV class=text>刘友生图片特效</DIV></DIV>");
  2101. }
  2102. }
  2103. // <DIV class=slide><A href="http://www.lanrentuku.com/" target=_blank><IMG class=diapo border=0 src="images/01.jpg"></A> <DIV class=text>懒人图库</DIV></DIV>
  2104. // <DIV class=slide><A href="http://www.lanrentuku.com/" target=_blank><IMG class=diapo border=0 src="images/02.jpg"></A> <DIV class=text>懒人图库</DIV></DIV>
  2105. // <DIV class=slide><A href="http://www.lanrentuku.com/" target=_blank><IMG class=diapo border=0 src="images/03.jpg"></A> <DIV class=text>懒人图库</DIV></DIV>
  2106. // <DIV class=slide><A href="http://www.lanrentuku.com/" target=_blank><IMG class=diapo border=0 src="images/04.jpg"></A> <DIV class=text>懒人图库</DIV></DIV>
  2107. // <DIV class=slide><A href="http://www.lanrentuku.com/" target=_blank><IMG class=diapo border=0 src="images/05.jpg"></A> <DIV class=text>懒人图库</DIV></DIV>
  2108. // <DIV class=slide><A href="http://www.lanrentuku.com/" target=_blank><IMG class=diapo border=0 src="images/06.jpg"></A> <DIV class=text>懒人图库</DIV></DIV>
  2109. //sb.Append("</DIV></DIV>");
  2110. sb.Append("<SCRIPT type=text/javascript>slider.init();</SCRIPT>");
  2111. return sb.ToString();
  2112. }
  2113. //ebay幻灯片产品展示效果 XX
  2114. public string TX14(string imagesDir)
  2115. {
  2116. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  2117. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  2118. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  2119. sb.Append("<LINK href=\"css/TX14.css\" type=text/css rel=stylesheet>");
  2120. sb.Append("<SCRIPT src=\"js/lanrenxixi.js\" type=text/javascript></SCRIPT>");
  2121. sb.Append("<div id=carousel>");
  2122. sb.Append("<div class=frame>");
  2123. sb.Append("<div class=frames id=stage>");
  2124. sb.Append("<a href=\"#\" target=\"_blank\"><div id=f1 style=\"BACKGROUND: url(img/tt_logo.jpg); OVERFLOW: hidden; WIDTH: 715px; POSITION: absolute; HEIGHT: 310px\"></div> </a>");
  2125. int s = 0, t = 0;
  2126. foreach (FileInfo FileName in ArrUnPostil)
  2127. {
  2128. if (FileName.Length > 0)
  2129. {
  2130. s = s + 1;
  2131. t = s % 5;
  2132. sb.Append("<a href=\"#\" target=\"_blank\"><div class=frame-" + s.ToString() + " id=f" + s.ToString() + " ></div></a>");
  2133. }
  2134. }
  2135. //<a href="http://www.lanrentuku.com/" target="_blank">
  2136. // <div class=frame-2 id=f2 ></div>
  2137. //</a>
  2138. //<a href="http://www.lanrentuku.com/" target="_blank">
  2139. // <div class=frame-3 id=f3 ></div>
  2140. //</a>
  2141. //<a href="http://www.lanrentuku.com/" target="_blank">
  2142. // <div class=frame-4 id=f4 ></div>
  2143. //</a>
  2144. //<a href="http://www.lanrentuku.com/" target="_blank">
  2145. // <div class=frame-5 id=f5 ></div>
  2146. //</a>
  2147. sb.Append("</div>");
  2148. sb.Append("</div>");
  2149. sb.Append("<div class=controls>");
  2150. sb.Append("<div class=\"arrow l-a\" onmouseover=highlightA(this); onclick=prevF(); ");
  2151. sb.Append(" onmouseout=dehighlightA(this);></div>");
  2152. s = 0;
  2153. foreach (FileInfo FileName in ArrUnPostil)
  2154. {
  2155. if (FileName.Length > 0)
  2156. {
  2157. s = s + 1;
  2158. sb.Append("<div class=off id=control" + sb.ToString() + " onmouseover=hover(" + s.ToString() + ") onclick=press(" + s.ToString() + ",false) onmouseout=out(" + s + ")>" + s.ToString() + "</div>");
  2159. }
  2160. }
  2161. //<div class=off id=control1 onmouseover=hover(1) onclick=press(1,false) onmouseout=out(1)>1</div>
  2162. //<div class=off id=control2 onmouseover=hover(2) onclick=press(2,false) onmouseout=out(2)>2</div>
  2163. //<div class=off id=control3 onmouseover=hover(3) onclick=press(3,false) onmouseout=out(3)>3</div>
  2164. //<div class=off id=control4 onmouseover=hover(4) onclick=press(4,false) onmouseout=out(4)>4</div>
  2165. sb.Append(" <div class=\"arrow r-a\" onmouseover=highlightA(this); onclick=nextF(); onmouseout=dehighlightA(this);></div></div>");
  2166. sb.Append("<INPUT id=numFrame type=hidden value=" + s.ToString() + "></INPUT>");
  2167. s = 0;
  2168. foreach (FileInfo FileName in ArrUnPostil)
  2169. {
  2170. if (FileName.Length > 0)
  2171. {
  2172. s = s + 1;
  2173. sb.Append("<a href=\"#\" target=\"_blank\"><INPUT id=images" + s.ToString() + " type=hidden value=" + imagesDir + "/" + FileName.Name + "></INPUT></a>");
  2174. }
  2175. }
  2176. //<a href="http://www.lanrentuku.com/" target="_blank"><INPUT id=images1 type=hidden value=images/01.jpg></INPUT></a>
  2177. //<a href="http://www.lanrentuku.com/" target="_blank"><INPUT id=images2 type=hidden value=images/02.jpg></INPUT> </a>
  2178. //<a href="http://www.lanrentuku.com/" target="_blank"><INPUT id=images3 type=hidden value=images/03.jpg></INPUT> </a>
  2179. //<a href="http://www.lanrentuku.com/" target="_blank"><INPUT id=images4 type=hidden value=images/04.jpg></INPUT> </a>
  2180. sb.Append("</div>");
  2181. return sb.ToString();
  2182. }
  2183. //带缩略图上下滚动幻灯片 最好不超过5个图片 OK
  2184. public string TX13(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
  2185. {
  2186. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  2187. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  2188. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  2189. sb.Append(" <LINK rel=Stylesheet type=text/css href=\"css/lrtk.css\">");
  2190. sb.Append("<SCRIPT type=text/javascript src=\"js/index_solid.js\"></SCRIPT>");
  2191. sb.Append(" <DIV id=banner>");
  2192. sb.Append("<DIV id=ifocus>");
  2193. sb.Append("<DIV style=\"OVERFLOW: hidden\" id=ifocus_pic>");
  2194. sb.Append("<DIV style=\"OVERFLOW: hidden; TOP: 0px; LEFT: 0px\" id=ifocus_piclist>");
  2195. sb.Append("<UL><!--大图_start -->");
  2196. foreach (FileInfo FileName in ArrUnPostil)
  2197. {
  2198. if (FileName.Length > 0)
  2199. {
  2200. sb.Append("<LI><A href=\"#\" target=_blank><IMG border=0 alt=LYS src=\"" + imagesDir + "/" + FileName.Name + "\"></A> </LI>");
  2201. }
  2202. }
  2203. //<LI><A href="http://www.lanrentuku.com"
  2204. //target=_blank><IMG border=0 alt=多游网 src="images/1.jpg"></A> </LI>
  2205. //<LI><A href="http://www.lanrentuku.com"
  2206. //target=_blank><IMG border=0 alt=多游网 src="images/2.jpg"></A> </LI>
  2207. //<LI><A href="http://www.lanrentuku.com"
  2208. //target=_blank><IMG border=0 alt=多游网 src="images/3.jpg"></A> </LI>
  2209. //<LI><A href="http://www.lanrentuku.com"
  2210. //target=_blank><IMG border=0 alt=多游网 src="images/4.jpg"></A> </LI>
  2211. //<LI><A href="http://www.lanrentuku.com"
  2212. //target=_blank><IMG border=0 alt=多游网 src="images/5.jpg"></A> <!--大图_end --></LI>
  2213. sb.Append("</UL></DIV>");
  2214. sb.Append("<DIV id=ifocus_opdiv></DIV>");
  2215. sb.Append("<DIV id=ifocus_tx><UL><!--小图列表_start -->");
  2216. foreach (FileInfo FileName in ArrUnPostil)
  2217. {
  2218. if (FileName.Length > 0)
  2219. {
  2220. sb.Append("<LI class=current>");
  2221. }
  2222. }
  2223. //<LI class=current>
  2224. //<LI class=normal>
  2225. //<LI class=normal>
  2226. //<LI class=normal>
  2227. //<LI class=normal><!--小图列表_end --></LI>
  2228. sb.Append("</UL></DIV>");
  2229. sb.Append("<DIV id=ifocus_btn>");
  2230. sb.Append("<UL><!--小图_start -->");
  2231. foreach (FileInfo FileName in ArrUnPostil)
  2232. {
  2233. if (FileName.Length > 0)
  2234. {
  2235. sb.Append("<LI class=current><IMG border=0 width=\"30\" height=\"30\" alt=LYS src=\"" + imagesDir + "\\" + FileName.Name + "\"> </LI>");
  2236. }
  2237. }
  2238. //<LI class=current><IMG border=0 alt=多游网 src="images/1.jpg"> </LI>
  2239. //<LI class=normal><IMG border=0 alt=多游网 src="images/2.jpg"> </LI>
  2240. //<LI class=normal><IMG border=0 alt=多游网 src="images/3.jpg"> </LI>
  2241. //<LI class=normal><IMG border=0 alt=多游网 src="images/4.jpg"> </LI>
  2242. //<LI class=normal><IMG border=0 alt=多游网 src="images/5.jpg"> <!--小图_end --></LI>
  2243. sb.Append("</UL></DIV></DIV></DIV></DIV>");
  2244. return sb.ToString();
  2245. }
  2246. // Flash汽车雨刷样式焦点图 XX
  2247. public string TX12(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
  2248. {
  2249. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  2250. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  2251. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  2252. sb.Append(" <SCRIPT src=\"js/eye.js\" type=text/javascript></SCRIPT>");
  2253. sb.Append(" <DIV id=sasFlashFocus311>");
  2254. sb.Append("<OBJECT id=sasFlashFocus311 height=227 width=302 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME=\"_cx\" VALUE=\"7990\"><PARAM NAME=\"_cy\" VALUE=\"6006\"><PARAM NAME=\"FlashVars\" VALUE=\"\"><PARAM NAME=\"Movie\" VALUE=\"swf/17173msw.swf\"><PARAM NAME=\"Src\" VALUE=\"swf/17173msw.swf\"><PARAM NAME=\"WMode\" VALUE=\"Opaque\"><PARAM NAME=\"Play\" VALUE=\"0\"><PARAM NAME=\"Loop\" VALUE=\"-1\"><PARAM NAME=\"Quality\" VALUE=\"High\"><PARAM NAME=\"SAlign\" VALUE=\"LT\"><PARAM NAME=\"Menu\" VALUE=\"0\"><PARAM NAME=\"Base\" VALUE=\"\"><PARAM NAME=\"AllowScriptAccess\" VALUE=\"\"><PARAM NAME=\"Scale\" VALUE=\"NoScale\"><PARAM NAME=\"DeviceFont\" VALUE=\"0\"><PARAM NAME=\"EmbedMovie\" VALUE=\"0\"><PARAM NAME=\"BGColor\" VALUE=\"\"><PARAM NAME=\"SWRemote\" VALUE=\"\"><PARAM NAME=\"MovieData\" VALUE=\"\"><PARAM NAME=\"SeamlessTabbing\" VALUE=\"1\"><PARAM NAME=\"Profile\" VALUE=\"0\"><PARAM NAME=\"ProfileAddress\" VALUE=\"\"><PARAM NAME=\"ProfilePort\" VALUE=\"0\"><PARAM NAME=\"AllowNetworking\" VALUE=\"all\"><PARAM NAME=\"AllowFullScreen\" VALUE=\"false\"></OBJECT></DIV>");
  2255. sb.Append("<SCRIPT type=text/javascript>");
  2256. sb.Append("<!--");
  2257. //可编辑内容开始(可放置特版中)");
  2258. sb.Append("var pic_width=302; //图片宽度");
  2259. sb.Append("var pic_height=227; //图片高度");
  2260. sb.Append("var button_pos=2; //按扭位置 1左 2右 3上 4下");
  2261. sb.Append("var stop_time=2000; //图片停留时间(1000为1秒钟)");
  2262. sb.Append("var show_text=0; //是否显示文字标签 1显示 0不显示");
  2263. sb.Append("var txtcolor=\"ff0000\"; //文字色");
  2264. sb.Append("var bgcolor=\"DDDDDD\"; //背景色");
  2265. sb.Append("//可编辑内容结束");
  2266. sb.Append("var swf_height=show_text==1?pic_height+20:pic_height;");
  2267. sb.Append("var pics=\"\", mylinks=\"\", texts=\"\";");
  2268. string pics = "pics='";
  2269. string mylinks = "mylinks='";
  2270. foreach (FileInfo FileName in ArrUnPostil)
  2271. {
  2272. if (FileName.Length > 0)
  2273. {
  2274. pics = pics + imagesDir + "\\" + FileName.Name + "|";
  2275. mylinks = mylinks + "mailto:ssxylys@163.com|";
  2276. }
  2277. }
  2278. sb.Append(pics + "';");
  2279. sb.Append(mylinks + "';");
  2280. //sb.Append("pics='images/01.jpg|images/02.jpg|images/03.jpg|images/04.jpg|images/05.jpg|images/06.jpg';
  2281. //sb.Append("mylinks='http://www.lanrentuku.com/|http://www.lanrentuku.com/|http://www.lanrentuku.com/|http://www.lanrentuku.com/|http://www.lanrentuku.com/|http://www.lanrentuku.com/';
  2282. sb.Append("var sohuFlash2 = new sohuFlash(\"swf/17173msw.swf\", \"sasFlashFocus311\", pic_width, swf_height, \"6\");");
  2283. sb.Append("sohuFlash2.addParam(\"quality\", \"high\");");
  2284. sb.Append("sohuFlash2.addParam(\"wmode\", \"opaque\");");
  2285. sb.Append("sohuFlash2.addVariable(\"pics\",pics);");
  2286. sb.Append("sohuFlash2.addVariable(\"links\",mylinks);");
  2287. sb.Append("sohuFlash2.addVariable(\"texts\",texts);");
  2288. sb.Append("sohuFlash2.addVariable(\"pic_width\",pic_width);");
  2289. sb.Append("sohuFlash2.addVariable(\"pic_height\",pic_height);");
  2290. sb.Append("sohuFlash2.addVariable(\"show_text\",show_text);");
  2291. sb.Append("sohuFlash2.addVariable(\"txtcolor\",txtcolor);");
  2292. sb.Append("sohuFlash2.addVariable(\"bgcolor\",bgcolor);");
  2293. sb.Append("sohuFlash2.addVariable(\"button_pos\",button_pos);");
  2294. sb.Append("sohuFlash2.addVariable(\"stop_time\",stop_time);");
  2295. sb.Append("sohuFlash2.write(\"sasFlashFocus311\");");
  2296. sb.Append("//-->");
  2297. sb.Append("</SCRIPT>");
  2298. return sb.ToString();
  2299. }
  2300. //ChinaJoy的Flash四屏焦点图 XX
  2301. public string TX11(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
  2302. {
  2303. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  2304. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  2305. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  2306. // string smallpics="", bigpics="", links="", titles="", des="";
  2307. sb.Append("\n <SCRIPT language=JavaScript src=\"js/focusxixi.js\" type=text/javascript></SCRIPT>");
  2308. sb.Append("\n <SCRIPT language=JavaScript type=text/javascript>");
  2309. sb.Append("\n ss = new imgSlides();");
  2310. foreach (FileInfo FileName in ArrUnPostil)
  2311. {
  2312. if (FileName.Length > 0)
  2313. {
  2314. sb.Append("\n s = new imgInfo();");
  2315. sb.Append("\n s.smallpic = \"" + imagesDir + "/" + FileName.Name + "\";");
  2316. sb.Append("\n s.bigpic = \"" + imagesDir + "/" + FileName.Name + "\";");
  2317. sb.Append("\n ss.link = \"#\";");
  2318. sb.Append("\n s.title =\"新闻出版总署署长柳斌杰在高峰论坛讲话\";");
  2319. sb.Append("\n ss.add(s);");
  2320. }
  2321. }
  2322. //s = new imgInfo();
  2323. //s.smallpic = "images/s1.jpg";
  2324. //s.bigpic = "images/1.jpg";
  2325. //s.link = "http://www.lanrentuku.com/";
  2326. //s.title = "新闻出版总署署长柳斌杰在高峰论坛讲话";
  2327. //ss.add(s);
  2328. //s = new imgInfo();
  2329. //s.smallpic = "images/s2.jpg";
  2330. //s.bigpic = "images/2.jpg";
  2331. //s.link = "http://www.lanrentuku.com/";
  2332. //s.title = "高峰论坛主题征集";
  2333. //ss.add(s);
  2334. //s = new imgInfo();
  2335. //s.smallpic = "images/s3.jpg";
  2336. //s.bigpic = "images/3.jpg";
  2337. //s.link = "http://www.lanrentuku.com/";
  2338. //s.title = "海外休闲游戏如何立足中国?";
  2339. //ss.add(s);
  2340. //s = new imgInfo();
  2341. //s.smallpic = "images/s4.jpg";
  2342. //s.bigpic = "images/4.jpg";
  2343. //s.link = "http://www.lanrentuku.com/";
  2344. //s.title = "投资新热点";
  2345. //ss.add(s);
  2346. sb.Append("\n </SCRIPT>");
  2347. return sb.ToString();
  2348. }
  2349. //特炫网页效果3 XX
  2350. public string TX10(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
  2351. {
  2352. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  2353. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  2354. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  2355. sb.Append(" <link href=\"css/TX10.css\" rel=\"stylesheet\" type=\"text/css\" />");
  2356. sb.Append("<script type=\"text/javascript\" src=\"js/TX10.js\"></script>");
  2357. sb.Append(" <div id=\"center\">");
  2358. int s = 0;
  2359. foreach (FileInfo FileName in ArrUnPostil)
  2360. {
  2361. if (FileName.Length > 0)
  2362. {
  2363. s = s + 1;
  2364. sb.Append(" <div id=\"slider\">");
  2365. sb.Append(" <div class=\"slide\">");
  2366. sb.Append("<img class=\"diapo\" title=\"此程序此广东松山职业技术学院刘友生设计\" src=\"" + imagesDir + "/" + FileName.Name + "\">");
  2367. sb.Append(" <div class=\"text\">");
  2368. sb.Append(" <span class=\"title\">广东松山职业技术学院刘友生提醒:</span>");
  2369. // sb.Append(" 此处可添加图片提示信息:");
  2370. // sb.Append(" 此处可添加图片提示信息:");
  2371. sb.Append(" </div>");
  2372. sb.Append(" </div>");
  2373. }
  2374. }
  2375. //sb.Append(" <img class="diapo" src="sf10.jpg" alt="">");
  2376. //sb.Append(" <div class="text">");
  2377. //sb.Append(" <span class="title">广东松山职业技术学院刘友生提醒:</span>");
  2378. //sb.Append(" 此处可添加图片提示信息:");
  2379. sb.Append(" </div>");
  2380. sb.Append("</div>");
  2381. sb.Append("<script type=\"text/javascript\">");
  2382. sb.Append("slider.init();");
  2383. sb.Append("</script>");
  2384. return sb.ToString();
  2385. }
  2386. //远近焦点效果
  2387. public string TX9(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
  2388. {
  2389. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  2390. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  2391. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  2392. sb.Append("<LINK href=\"css/tx9.css\" type=text/css rel=stylesheet>");
  2393. sb.Append("<SCRIPT src=\"js/tx9.js\" type=text/javascript></SCRIPT>");
  2394. sb.Append("<div style=\"position:absolute;left:50%;top:50%\">");
  2395. sb.Append("<div style=\"position:absolute;width:720px;height:560px;left:-360px;top:-280px;background:#fff\"></div>");
  2396. sb.Append("<div style=\"position:absolute;left:-40px;top:-6px;color:#000;font-family:arial;font-size:0.9em\">Loading...</div>");
  2397. sb.Append("<div id=\"screen\" style=\"position:absolute;width:640px;height:480px;left:-320px;top:-240px;overflow:hidden\"></div>");
  2398. sb.Append("</div>");
  2399. sb.Append("<div id=\"images\" style=\"visibility:hidden\">");
  2400. foreach (FileInfo FileName in ArrUnPostil)
  2401. {
  2402. if (FileName.Length > 0)
  2403. {
  2404. sb.Append("<img title=\"此程序此广东松山职业技术学院刘友生设计\" src=\"" + imagesDir + "/" + FileName.Name + "\">");
  2405. }
  2406. }
  2407. //<img title="infinite" src="pil.jpg">
  2408. //<img title="yellow" src="cit.jpg">
  2409. //<img title="earth" src="earth.jpg">
  2410. //<img title="dream" src="draps.jpg">
  2411. //<img title="flowers" src="flo.jpg">
  2412. sb.Append("</div>");
  2413. return sb.ToString();
  2414. }
  2415. //
  2416. //滚动条确定图片位置,倒影放大显示 Flash+JS带缩略图的焦点图OK
  2417. public string TX8(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
  2418. {
  2419. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  2420. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  2421. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  2422. sb.Append("<LINK href=\"css/t.css\" type=text/css rel=stylesheet>");
  2423. sb.Append("<SCRIPT src=\"js/t.js\" type=text/javascript></SCRIPT>");
  2424. sb.Append("<div id=\"imageFlow\">");
  2425. sb.Append("<div class=\"top\"></div>");
  2426. sb.Append(" <div class=\"bank\">");
  2427. foreach (FileInfo FileName in ArrUnPostil)
  2428. {
  2429. if (FileName.Length > 0)
  2430. {
  2431. sb.Append("<a rel=\"" + imagesDir + "/" + FileName.Name + "\" title=\"此程序此广东松山职业技术学院刘友生设计,email:ssxylys@163.com\" href=\"#\">版权所有不得随便用作商业用途!</a>");
  2432. }
  2433. }
  2434. //<a rel="ct37.jpg" title="Myselves" href="http://www.design-studio.cn/">My identity lies in not knowing who I am</a>
  2435. //<a rel="ct60.jpg" title="Discoveries" href="http://www.design-studio.cn/">...are made by not following instructions</a>
  2436. //<a rel="sf53.jpg" title="Nothing" href="http://www.design-studio.cn/">...can come between us</a>
  2437. //<a rel="sf48.jpg" title="New life" href="http://www.design-studio.cn/">Here you come!</a>
  2438. //<a rel="ct81.jpg" title="Optimists" href="http://www.design-studio.cn/">They don't know all the facts yet</a>
  2439. //<a rel="ct134.jpg" title="Empathy" href="http://www.design-studio.cn/">Emotional intimacy</a>
  2440. //<a rel="ct41.jpg" title="Much work" href="http://www.design-studio.cn/">...remains to be done before we can announce our total failure to make any progress</a>
  2441. //<a rel="ct75.jpg" title="System error" href="http://www.design-studio.cn/">Errare Programma Est</a>
  2442. //<a rel="bl201.jpg" title="Nonexistance" href="http://www.design-studio.cn/">There's no such thing</a>
  2443. //<a rel="ct137.jpg" title="Inside" href="http://www.design-studio.cn/">I抦 now trapped, without hope of escape or rescue</a>
  2444. //<a rel="ct65.jpg" title="E-Slaves" href="http://www.design-studio.cn/">The World is flat</a>
  2445. //<a rel="or105.jpg" title="l0v3" href="http://www.design-studio.cn/">1 l0v3 j00 - f0r3v3r</a>
  2446. //<a rel="ct139.jpg" title="T minus zero" href="http://www.design-studio.cn/">111 111 111 x 111 111 111 = 12345678987654321</a>
  2447. //<a rel="ct27.jpg" title="The End" href="http://www.design-studio.cn/">...has not been written yet</a>
  2448. sb.Append(" </div>");
  2449. sb.Append("<div class=\"text\">");
  2450. sb.Append("<div class=\"title\">Loading</div>");
  2451. sb.Append("<div class=\"legend\">Please wait...</div>");
  2452. sb.Append("</div>");
  2453. sb.Append("<div class=\"scrollbar\">");
  2454. sb.Append("<img class=\"track\" src=\"img/sb.gif\" alt=\"\">");
  2455. sb.Append("<img class=\"arrow-left\" src=\"img/sl.gif\" alt=\"\">");
  2456. sb.Append("<img class=\"arrow-right\" src=\"img/sr.gif\" alt=\"\">");
  2457. sb.Append("<img class=\"bar\" src=\"img/sc.gif\" alt=\"\">");
  2458. sb.Append("</div>");
  2459. return sb.ToString();
  2460. }
  2461. //四屏FLASH焦点图 ??
  2462. public string TX7(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
  2463. {
  2464. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  2465. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  2466. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  2467. sb.Append("<script src=\"js/swfobject.js\" type=\"text/javascript\"></script>");
  2468. sb.Append("<DIV id=\"swfContent3\"></DIV>");
  2469. sb.Append("<SCRIPT type=\"text/javascript\">");
  2470. sb.Append("\n");
  2471. sb.Append("\n var xmlData=\"<data>");
  2472. foreach (FileInfo FileName in ArrUnPostil)
  2473. {
  2474. if (FileName.Length > 0)
  2475. {
  2476. sb.Append("<item img='" + imagesDir + "/" + FileName.Name + "' thumb='" + imagesDir + "/" + FileName.Name + "' title='广东松山刘友生' url='mailto:ssxylys@163.com' target='_blank' />\n");
  2477. }
  2478. }
  2479. // <item img='images/99095.jpg' thumb='images/90561.jpg' title='周杰伦新专辑跨时空穿梭' url='http://www.lanrentuku.com/' target='_blank' />
  2480. // <item img='images/70943.jpg' thumb='images/30104.jpg' title='[专访]金俊浩:外面很温柔,内心很强悍' url='http://www.lanrentuku.com/' target='_blank' />
  2481. // <item img='images/69891.jpg' thumb='images/96314.jpg' title='张惠妹全新热辣写真 热裤秀美腿' url='http://www.lanrentuku.com/' target='_blank' />
  2482. // <item img='images/68985.jpg' thumb='images/23362.jpg' title='郭采洁获封反毒大使 称不碰比基尼' url='http://www.lanrentuku.com/' target='_blank' />
  2483. //sb.Append("\</data>");
  2484. sb.Append("\n var flashvars = {xmlData:xmlData};");
  2485. sb.Append("\n var params = {menu:false};");
  2486. sb.Append("\n var attributes = {};");
  2487. sb.Append("\n swfobject.embedSWF(\"" + "swf/lanrentuku.swf" + "\", \"swfContent3\", \"300\", \"400\", \"9\",\"\", flashvars, params, attributes);");
  2488. sb.Append("\n </SCRIPT>");
  2489. return sb.ToString();
  2490. }
  2491. //4屏平滑滚动幻灯片效果
  2492. public string TX6(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
  2493. {
  2494. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  2495. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  2496. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  2497. sb.Append(" <LINK href=\"css/base.css\" type=text/css rel=stylesheet>");
  2498. sb.Append(" <SCRIPT language=javascript type=text/javascript>");
  2499. sb.Append(" var thumbCount =" + GetFilesnumber(HttpContext.Current.Server.MapPath(imagesDir)) + ";");
  2500. int s = 0;
  2501. foreach (FileInfo FileName in ArrUnPostil)
  2502. {
  2503. if (FileName.Length > 0)
  2504. {
  2505. s = s + 1;
  2506. if (s == 1)
  2507. { sb.Append(" document.getElementById('zoom').style.left = -514 + 'px';"); }
  2508. else
  2509. { sb.Append(" document.getElementById(\"zoom" + s.ToString() + "\").style.visibility = \"hidden\";"); }
  2510. }
  2511. }
  2512. //sb.Append(" document.getElementById('zoom').style.left = -514 + 'px';");
  2513. //sb.Append(" document.getElementById(\"zoom1\").style.visibility = \"hidden\";");
  2514. //sb.Append(" document.getElementById(\"zoom2\").style.visibility = \"hidden\";");
  2515. //sb.Append(" document.getElementById(\"zoom3\").style.visibility = \"hidden\";");
  2516. sb.Append(" </SCRIPT>");
  2517. sb.Append(" <SCRIPT src=\"js/base.js\" type=text/javascript></SCRIPT>");
  2518. sb.Append(" <DIV id=fbMaster>");
  2519. sb.Append(" <DL id=content>");
  2520. sb.Append(" <DT><STRONG><SPAN id=zoom>");
  2521. s = 0;
  2522. foreach (FileInfo FileName in ArrUnPostil)
  2523. {
  2524. if (FileName.Length > 0)
  2525. {
  2526. sb.Append(" <IMG id=zoom0 height=432 src=\"" + imagesDir + "/" + FileName.Name + "\" width=514>");
  2527. }
  2528. }
  2529. //sb.Append(" <IMG id=zoom0 height=432 src=\"images/buttom_0.jpg\" width=514>");
  2530. //sb.Append(" <IMG id=zoom1 height=432 src=\"images/buttom_1.jpg\" width=514>");
  2531. //sb.Append(" <IMG id=zoom2 height=432 src=\"images/buttom_2.jpg\" width=514>");
  2532. //sb.Append(" <IMG id=zoom3 height=432 src=\"images/buttom_3.jpg\" width=514>");
  2533. sb.Append(" </SPAN> </STRONG></DT>");
  2534. s = 0;
  2535. foreach (FileInfo FileName in ArrUnPostil)
  2536. {
  2537. if (FileName.Length > 0)
  2538. {
  2539. sb.Append(" <DD><A title=\"懒人图库\"><IMG id=thumb0 height=40 alt=\"\" src=\"" + imagesDir + "/" + FileName.Name + "\" width=36></A></DD>");
  2540. }
  2541. }
  2542. //sb.Append(" <DD><A title=\"懒人图库\"><IMG id=thumb0 height=106 alt=\"\" src=\"images/buttom_0.jpg\" width=106></A></DD>");
  2543. //sb.Append(" <DD><A title=\"懒人图库\"><IMG id=thumb1 height=106 alt=\"\" src=\"images/buttom_1.jpg\" width=106></A></DD>");
  2544. //sb.Append(" <DD><A title=\"懒人图库\"><IMG id=thumb2 height=106 alt=\"\" src=\"images/buttom_2.jpg\" width=106></A></DD>");
  2545. //sb.Append(" <DD class=last><A title=\"懒人图库\"><IMG id=thumb3 height=106 alt=\"\" src=\"images/buttom_3.jpg\" width=106></A></DD>");
  2546. //sb.Append(" </DL>");
  2547. sb.Append(" </DIV>");
  2548. return sb.ToString();
  2549. }
  2550. //FLASH 3D BANNER展示 XX
  2551. public string TX5(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
  2552. {
  2553. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  2554. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  2555. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  2556. sb.Append("<script src=\"js/AC_RunActiveContent.js\" type=\"text/javascript\"></script>");
  2557. sb.Append("\n <script type=text/javascript>");
  2558. sb.Append("\n var varText = \"\"");
  2559. sb.Append("\n function addInfo(title,photourl,sphotourl){");
  2560. sb.Append("\n if(varText!=\"\"){");
  2561. sb.Append("\n varText+=\"|||\";");
  2562. sb.Append("\n }");
  2563. sb.Append("\n varText+=title+\"|_|\"+photourl+\"|_|\"+sphotourl;");
  2564. sb.Append("\n }");
  2565. foreach (FileInfo FileName in ArrUnPostil)
  2566. {
  2567. if (FileName.Length > 0)
  2568. {
  2569. //HttpContext.Current.Response.Write(FileName.Name + "<BR>");
  2570. sb.Append("\n addInfo(\"\",\"" + imagesDir + "/" + FileName.Name + "\",\"" + imagesDir + "/" + FileName.Name + "\");");
  2571. }
  2572. }
  2573. //sb.Append("addInfo("","images/1.jpg","images/spic1.jpg");");
  2574. //sb.Append("addInfo("","images/2.jpg","images/spic2.jpg");");
  2575. //sb.Append("addInfo("","images/3.jpg","images/spic3.jpg");");
  2576. //
  2577. sb.Append("\n document.write('<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"662\" height=\"316\" id=\"01\" align=\"middle\">')");
  2578. sb.Append("\n document.write('<param name=\"allowScriptAccess\" value=\"sameDomain\" />')");
  2579. sb.Append("\n document.write('<param name=\"movie\" value=\"swf/main.swf?info='+varText+'\" />')");
  2580. sb.Append("\n document.write('<param name=\"quality\" value=\"high\" />')");
  2581. sb.Append("\n document.write('<param name=\"bgcolor\" value=\"#ffffff\" /><param name=\"wmode\" value=\"transparent\" />')");
  2582. sb.Append("\n document.write('<embed src=\"swf/main.swf?info='+varText+'\" quality=\"high\" bgcolor=\"#ffffff\" width=\"662\" height=\"316\" name=\"01\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />')");
  2583. sb.Append("\n document.write('</object>')");
  2584. sb.Append("\n </script>");
  2585. return sb.ToString();
  2586. }
  2587. //jQuery图片切换代码 OK
  2588. public string TXjQuery1(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
  2589. {
  2590. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  2591. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  2592. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  2593. sb.Append("<script type=\"text/javascript\" src=\"" + jsFilename1 + "\"></script>");
  2594. sb.Append("<script type=\"text/javascript\" src=\"" + sliderjsFilename + "\"></script>");
  2595. //sb.Append("<link href=\"css/common.css\" rel=\"stylesheet\" type=\"text/css\" />");
  2596. sb.Append("<link href=\"css/index.css\" rel=\"stylesheet\" type=\"text/css\" />"); //在CSS中改高度和宽度
  2597. sb.Append("<div class=\"content_right\">");
  2598. sb.Append("<div class=\"ad\" >");
  2599. sb.Append("<ul class=\"slider\" >");
  2600. int k = 0;
  2601. int i = 0;
  2602. foreach (FileInfo FileName in ArrUnPostil)
  2603. {
  2604. if (FileName.Length > 0)
  2605. {
  2606. k = k + 1;
  2607. //HttpContext.Current.Response.Write(FileName.Name + "<BR>");
  2608. sb.Append("<li><a href=\"#\"><img src=\"" + imagesDir + "/" + FileName.Name + "\"/></a></li>");
  2609. }
  2610. }
  2611. //sb.Append("<li><a href="#"><img src="images/buttom_0.jpg"/></a></li>");
  2612. //sb.Append("<li><a href="#"><img src="images/buttom_1.jpg"/></a></li>");
  2613. //sb.Append("<li><a href="#"><img src="images/buttom_2.jpg"/></a></li>");
  2614. //sb.Append("<li><a href="3"><img src="images/buttom_3.jpg"/></a></li>");
  2615. sb.Append("</ul>");
  2616. sb.Append("<ul class=\"num\" >");
  2617. for (i = 1; i <= k; i++)
  2618. {
  2619. sb.Append("<li>" + i.ToString() + "</li>");
  2620. }
  2621. //sb.Append("<li>1</li>");
  2622. //sb.Append("<li>2</li>");
  2623. //sb.Append("<li>3</li>");
  2624. //sb.Append("<li>4</li>");
  2625. sb.Append("</ul>");
  2626. sb.Append("</div>");
  2627. sb.Append("</div>");
  2628. return sb.ToString();
  2629. }
  2630. //标签焦点图特效 ??
  2631. public string TX2(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
  2632. {
  2633. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  2634. DirectoryInfo UnPostil = new DirectoryInfo(imagesDir);
  2635. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  2636. sb.Append("<link rel=\"stylesheet\" type=\"text/css\" href=\"css/slide.css\" />");
  2637. sb.Append("<script type=\"text/javascript\" src=\"js/jquery-1.2.6.pack.js\"></script>");
  2638. sb.Append("<script type=\"text/javascript\" src=\"js/g.base.js\"></script>");
  2639. sb.Append("<div id=\"slide\"></div>");
  2640. sb.Append("<script type=\"text/javascript\">");
  2641. sb.Append("$(\"#slide\").jdSlide({width:528,height:200,pics:[");
  2642. foreach (FileInfo FileName in ArrUnPostil)
  2643. {
  2644. if (FileName.Length > 0)
  2645. {
  2646. sb.Append("{src:\"images/" + FileName.Name + "\",href:\"#\",alt:\"\",breviary:\"#\",type:\"img\"},");
  2647. }
  2648. }
  2649. //{src:"photo/LNXOZl.jpg",href:"#",alt:"",breviary:"#",type:"img"},
  2650. //{src:"photo/wKwQcK.jpg",href:"#",alt:"",breviary:"#",type:"img"},
  2651. //{src:"photo/hbEXBD.jpg",href:"#",alt:"",breviary:"#",type:"img"},
  2652. //{src:"photo/fbKWmg.jpg",href:"#",alt:"",breviary:"#",type:"img"},
  2653. sb.Append("]})</script>");
  2654. return sb.ToString();
  2655. }
  2656. //有过度效果的jquery焦点图 OK
  2657. public string TX3(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
  2658. {
  2659. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  2660. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  2661. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  2662. sb.Append("<link rel=\"stylesheet\" href=\"css/nivo-slider.css\" type=\"text/css\" media=\"screen\" />");
  2663. sb.Append("<link rel=\"stylesheet\" href=\"css/style.css\" type=\"text/css\" media=\"screen\" />");
  2664. sb.Append("<div id=\"wrapper\">");
  2665. sb.Append("<div id=\"slider-wrapper\">");
  2666. sb.Append("<div id=\"slider\" class=\"nivoSlider\">");
  2667. foreach (FileInfo FileName in ArrUnPostil)
  2668. {
  2669. if (FileName.Length > 0)
  2670. {
  2671. sb.Append(" <a href=\"mailto:ssxylys@163.com/\" target=\"_blank\"><img src=\"" + imagesDir + "/" + FileName.Name + "\" alt=\"\" title=\"刘友生\" /></a>");
  2672. }
  2673. }
  2674. //<a href="http://www.lanrentuku.com/" target="_blank"><img src="images/toystory.jpg" alt="" /></a>
  2675. //<a href="http://lanrentuku.com/" target="_blank"><img src="images/up.jpg" alt="" title="This is an example of a caption" /></a>
  2676. //<a href="http://nifengla.com/" target="_blank"><img src="images/walle.jpg" alt="" /></a>
  2677. //<a href="http://maitianquan.com/" target="_blank"><img src="images/nemo.jpg" alt="" title="#htmlcaption" /></a>
  2678. sb.Append(" </div>");
  2679. sb.Append(" <div id=\"htmlcaption\" class=\"nivo-html-caption\">");
  2680. sb.Append(" <strong>This</strong> is an example of a <em>HTML</em> caption with <a href=\"#\">a link</a>.");
  2681. sb.Append("</div> </div> </div>");
  2682. sb.Append("<script type=\"text/javascript\" src=\"js/jquery-1.4.3.min.js\"></script>");
  2683. sb.Append("<script type=\"text/javascript\" src=\"js/jquery.nivo.slider.pack.js\"></script>");
  2684. sb.Append("<script type=\"text/javascript\">");
  2685. sb.Append(" $(window).load(function() {");
  2686. sb.Append(" $('#slider').nivoSlider();");
  2687. sb.Append(" });");
  2688. sb.Append("</script>");
  2689. return sb.ToString();
  2690. }
  2691. //左右切换幻灯片 XX
  2692. public string TX4(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
  2693. {
  2694. System.Text.StringBuilder sb = new System.Text.StringBuilder();
  2695. DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
  2696. FileInfo[] ArrUnPostil = UnPostil.GetFiles();
  2697. sb.Append(" <link rel=\"stylesheet\" href=\"css/flexslider.css\" type=\"text/css\" media=\"screen\" />");
  2698. sb.Append("<script src=\"js/jquery.min.js\"></script>");
  2699. sb.Append("<script src=\"js/jquery.flexslider-min.js\"></script>");
  2700. sb.Append(" <link rel=\"stylesheet\" href=\"css/demo.css\" type=\"text/css\" media=\"screen\" />");
  2701. sb.Append(" <script type=\"text/javascript\">");
  2702. sb.Append("$(window).load(function() {");
  2703. sb.Append(" $('.flexslider').flexslider();");
  2704. sb.Append(" });");
  2705. sb.Append("</script>");
  2706. sb.Append("<div id=\"container\">");
  2707. sb.Append("<div class=\"flexslider\">");
  2708. sb.Append(" <ul class=\"slides\">");
  2709. //sb.Append(" <li>");
  2710. foreach (FileInfo FileName in ArrUnPostil)
  2711. {
  2712. if (FileName.Length > 0)
  2713. {
  2714. sb.Append(" <li> <img src=\"" + imagesDir + "/" + FileName.Name + "\" /><span>广东松山职业技术学院刘友生设计</span></li>");
  2715. }
  2716. }
  2717. // <img src="demo-stuff/inacup_samoa.jpg" />");
  2718. // <p class="flex-caption">Captions and cupcakes. Winning combination.</p>
  2719. //</li>
  2720. //<li>
  2721. // <a href="#"><img src="demo-stuff/inacup_pumpkin.jpg" /></a>
  2722. // <p class="flex-caption">This image is wrapped in a link!</p>
  2723. //</li>
  2724. //<li>
  2725. // <img src="demo-stuff/inacup_donut.jpg" />
  2726. //</li>
  2727. //<li>");
  2728. // <img src="demo-stuff/inacup_vanilla.jpg" />");
  2729. //</li>");
  2730. sb.Append(" </ul>");
  2731. sb.Append(" </div></div>");
  2732. sb.Append(" <script type=\"text/javascript\">");
  2733. sb.Append("var gaJsHost = ((\"https:\" == document.location.protocol) ? \"https://ssl.\" : \"http://www.\");");
  2734. sb.Append("document.write(unescape(\"%3Cscript src='\" + gaJsHost + \"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E\"));");
  2735. sb.Append("</script>");
  2736. sb.Append("<script type=\"text/javascript\">");
  2737. sb.Append("try {");
  2738. sb.Append("var pageTracker = _gat._getTracker(\"UA-9747705-2\");");
  2739. sb.Append("pageTracker._trackPageview();");
  2740. sb.Append("} catch(err) {}");
  2741. sb.Append("</script>");
  2742. return sb.ToString();
  2743. }
  2744. }