1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980 |
- using System;
- using System.IO;
- using System.Text;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- /// <summary>
- ///MyPicture 的摘要说明
- /// </summary>
- public class MyFiles
- {
- public MyFiles()
- {
- //
- //TODO: 在此处添加构造函数逻辑
- //
- }
- //获取文件扩展名
- public string GetExtension(string fileName)
- {
- int i = fileName.LastIndexOf(".") + 1;
- string Name = fileName.Substring(i);
- return Name;
- }
- //获取文件的名字
- public string GetFileName(string fileName)
- {
- int i = fileName.LastIndexOf("\\") + 1;
- string Name = fileName.Substring(i);
- return Name;
- }
- //获得中不含文件名的路径
- public string GetURLnotFilename()
- {
- string s1 = HttpContext.Current.Request.Url.ToString();
- string s2 = System.IO.Path.GetFileName(HttpContext.Current.Request.Path).ToString();
- string s3 = subStr(s1, 0, s1.Length - s2.Length);
- return s3;
- }
- //将脚本转换为ASP.NET 语句
- public string ScriptToStringBulder(string Script_filename)
- {
- StringBuilder sb = new StringBuilder();
- if (!File.Exists(Script_filename))
- {
- HttpContext.Current.Response.Write("<script>alert('文件" + Script_filename + "不存在!')</script>");
- }
- else
- {
- StreamReader sr = File.OpenText(Script_filename);
- string input;
- int s = 0;
- while ((input = sr.ReadLine()) != null)
- {
- s = s + 1;
- sb.Append("sb.Append(\"" + input + "\");\n");
- //Response.Write(input + "<br>");
- }
- sr.Close();
- }
- return sb.ToString();
- }
- //一行一行读文本文件的内容
- public string LineReadTxtFile(string Txt_filename)
- {
- StringBuilder sb = new StringBuilder();
- if (!File.Exists(Txt_filename))
- {
- HttpContext.Current.Response.Write("<script>alert('文件" + Txt_filename + "不存在!')</script>");
- }
- else
- {
- StreamReader sr = File.OpenText(Txt_filename);
- string input;
- int s = 0;
- while ((input = sr.ReadLine()) != null)
- {
- s = s + 1;
- sb.Append(input + "\n");
- //Response.Write(input + "<br>");
- }
- sr.Close();
- }
- return sb.ToString();
- }
- /// <summary>
- /// 自定义截取字符串方法
- /// </summary>
- /// <param name="str">原始字符串</param>
- /// <param name="index">起始位</param>
- /// <param name="count">截取字节长度</param>
- /// <returns></returns>
- public string subStr(string str, int index, int count)
- {
- string retStr = string.Empty;
- byte[] strs = System.Text.Encoding.Default.GetBytes(str);
- retStr = System.Text.Encoding.Default.GetString(strs, index, count);
- return retStr;
- }
- public string GetAllFiles(string Dir)
- {
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(Dir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- HttpContext.Current.Response.Write(FileName.Name + "<BR>");
- }
- }
- return "";
- }
- public static int GetFilesnumber(string Dir)
- {
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath("SCripts"));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- int k = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- k = k + 1;
- }
- }
- return k;
- }
- public void CreateTestFile(String htmlTestFilename, String keycode)
- {//htmlTestFilename 生成测试文件详细路径及文件名 关键代码,如TX18(HttpContext.Current.Server.MapPath("images"), "", "", "").ToString()
- string FILE_NAME = "";
- FILE_NAME = HttpContext.Current.Server.MapPath(htmlTestFilename);
- if (File.Exists(FILE_NAME)) //如果文件存在,则先删除
- { File.Delete(FILE_NAME); }
- StreamWriter sr;
- sr = File.CreateText(FILE_NAME);
-
- 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\">");
- sr.WriteLine("\n <head>");
- sr.WriteLine("\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"/>");
- sr.WriteLine("\n <title>刘友生设计图片特效</title>");
- sr.WriteLine("\n </head><body>");
- sr.WriteLine(keycode);
- sr.WriteLine("\n </body></html>");
- sr.Close();
- }
- //+ imagesDir + "\\" + FileName.Name +
- // sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"css/TX29.css\" />");
- //sb.Append("\n <script type=\"text/javascript\" src=\"js/TX29.js\"></script>");
- /// <summary>
- ///根据图片文件夹,自动生成播放表列XML文件
- /// </summary>
- /// <param name="imagesDir">图片所在目录 </param>
- /// <param name="xmlDirName">XML文件存放目录</param>
- /// <param name="maxfileNumber">最多播放表列文件列表数</param>
- /// <param name="XMLFilename">播放表列XML文件名</param>
- /// <param name="firstrowcode">XML文件第一行代码 </param>
- /// <param name="endrowcode"> XML文件最后一行代码 </param>
- /// <returns></returns>
- public void CreateXMLFile(String imagesDir, String xmlDirName, int maxfileNumber, string XMLFilename, string firstrowcode, string endrowcode, string middlerowcode)
- {//图片所在目录
- //xmlDirName 生成XML所在目录
- //maxfileNumber最多文件数
- //XMLFilename生成XML文件名
- //firstrowcode XML文件第一行代码
- //endrowcode XML文件最后一行代码
- //middlerowcode XML文件根据文件生成的代码
- string FILE_NAME = "";
- FILE_NAME = HttpContext.Current.Server.MapPath(xmlDirName + "//" + XMLFilename);
- DirectoryInfo UnPostil = new DirectoryInfo(imagesDir);
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- if (File.Exists(FILE_NAME)) //如果文件存在,则先删除
- { File.Delete(FILE_NAME); }
- StreamWriter sr;
- sr = File.CreateText(FILE_NAME);
- sr.WriteLine(firstrowcode);
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- // sr.WriteLine("\n <item url=\"#\" target=\"_blank\" img=\"" + imagesDir + "\\" + FileName.Name + "\" thumb=\"" + imagesDir + "\\" + FileName.Name + "\"/>");
- sr.WriteLine("\n <project mytitle=\"刘友生设计\" mypic=\"" + imagesDir + "\\" + FileName.Name + "\" links=\"#\" />"); //TX18
- }
- if (s == maxfileNumber)
- { break; }
- }
- sr.WriteLine(middlerowcode);
- sr.WriteLine("\n " + endrowcode);
- sr.Close();
- }
- //经典相册效果
- public string TX40(string imagesDir, int maxfileNumber)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(imagesDir);
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"css/TX40.css\" />");
- sb.Append("\n <div id=info>");
- sb.Append("\n <h3>Doorle Photo");
- sb.Append("\n <div id=zs>");
- sb.Append("\n <ul>");
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- int t = s % 6 + 1;
- sb.Append("\n <li><a class=\"b"+t.ToString()+" z\" title=photo"+s.ToString()+" href=\"http://www.alixixi.com\" target=_blank>");
- 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;\"/>");
- sb.Append("\n Photo" + s.ToString() +"");
- sb.Append("\n www</span></a> ");
- sb.Append("</div>");
- }
- if (s == maxfileNumber)
- { break; }
- }
- // <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;"/>
- //photo1
- //www.alixixi.com</span></a>
- // <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;"/>
- //photo2
- //www.alixixi.com</span></a>
- // <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;"/>
- //photo3
- //www.alixixi.com</span></a>
- // <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;"/>
- //photo4
- //www.alixixi.com</span></a>
- // <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;"/>
- //photo5
- //www.alixixi.com</span></a>
- // <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;"/>
- //photo6
- //www.alixixi.com</span></a>
- // <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;"/>
- //photo1
- //www.alixixi.com</span></a>
- // <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;"/>
- //photo2
- //www.alixixi.com</span></a>
- sb.Append("\n </li></ul></div></div>");
- return sb.ToString();
- }
- //炫酷精美图片展示效果7 OK, 类似分屏效果
- public string TX39(string imagesDir, int maxfileNumber)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"css/TX39.css\" />");
- sb.Append("\n <script type=\"text/javascript\" src=\"js/TX39.js\"></script>");
- sb.Append("\n <div id=\"center\">");
- sb.Append("\n <div id=\"slider\">");
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- sb.Append("\n <div class=\"slide\">");
- 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;\"/>");
- sb.Append("\n <div class=\"text\"><span class=\"title\"> </div>");
- sb.Append("\n </div>");
- }
- if (s == maxfileNumber)
- { break; }
- }
- //<div class="slide">
- // <img class="diapo" src="/image/1.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
- // <div class="text"><span class="title">站长特效网,专注于网页特效及广告代码,供站长和js爱好者参考。</div>
- //</div>
- //<div class="slide">
- // <img class="diapo" src="/image/2.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
- // <div class="text"> <span class="title">zzjs.net,打造国内最帅的网页特效站。</div>
- //</div>
- //<div class="slide">
- // <img class="diapo" src="/image/3.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
- // <div class="text"> <span class="title">觉得不错就收藏本站吧。</div>
- //</div>
- //<div class="slide">
- // <img class="diapo" src="img/04.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
- // <div class="text"> <span class="title">也可以推荐给你的朋友。</div>
- //</div>
- //<div class="slide">
- // <img class="diapo" src="img/01.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
- // <div class="text"> <span class="title">zzjs.net</span>站长zz,js特效,.net也精彩
- // </div>
- //</div>
- //<div class="slide">
- // <img class="diapo" src="img/02.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
- // <div class="text">
- // <span class="title">站长特效</span>我们追求的不是数量,而是质量。 </div>
- //</div>
- //<div class="slide">
- // <img class="diapo" src="img/03.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
- // <div class="text">
- // <span class="title">zzjs.net</span>感谢您的光临,有什么意见或建议欢迎留言。</div>
- //</div>
- //<div class="slide">
- // <img class="diapo" src="/image/3.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
- // <div class="text">
- // <span class="title">站长特效</span>有你更精彩。</div>
- //</div>
- //<div class="slide">
- // <img class="diapo" src="/image/4.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
- // <div class="text">
- // <span class="title">zzjs.net</span>打造国内最帅的网页特效站。</div>
- //</div>
- //<div class="slide">
- // <img class="diapo" src="/image/5.jpg" alt="" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
- // <div class="text"> <a class="title" href="http://www.zzjs.net">呵呵</a>这个特效挺酷吧。站长特效网,永不言败</div>
- //</div>
- sb.Append("\n </div>");
- sb.Append("\n </div>");
- sb.Append("\n <script type=\"text/javascript\">");
- /* ==== start script ==== */
- sb.Append("\n slider.init();");
- sb.Append("\n </script>");
- return sb.ToString();
- }
- //炫酷精美图片展示效果六OK, 分别用鼠标移动在图片上,单击、移动、双击看看效果
- public string TX38(string imagesDir, int maxfileNumber)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"css/TX38.css\" />");
- sb.Append("\n <script type=\"text/javascript\" src=\"js/TX38.js\"></script>");
- sb.Append("\n <div id=\"screen\">");
- sb.Append("\n </div>");
- sb.Append("\n <div id=\"bankImages\">");
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- // sb.Append("\n img" + s.ToString() + "=new Image ();img" + s.ToString() + ".src='images/" + FileName.Name + "';");
- sb.Append("\n <img alt=\"广东松山职业技术学院计算机系刘友生设计\" src=\"" + imagesDir + "/" + FileName.Name + "\" onload=\"return imgzoom(this,600);\" onclick=\"javascript:window.open(this.src);\" style=\"cursor:pointer;\"/>");
- }
- if (s == maxfileNumber)
- { break; }
- }
- sb.Append("\n </div>");
- sb.Append("\n <script type=\"text/javascript\">");
- /* ==== start script ==== */
- sb.Append("\n onresize = tv.resize;");
- sb.Append("\n tv.init();");
- sb.Append("\n </script>");
- return sb.ToString();
- }
- //炫酷精美图片展示效果三OK, 分别用鼠标移动在图片上,单击、移动、双击看看效果
- public string TX37(string imagesDir, int maxfileNumber, int picW, int picH)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"css/TX37.css\" />");
- sb.Append("\n <script type=\"text/javascript\" src=\"js/TX37.js\"></script>");
- sb.Append("\n <div>分别用鼠标移动在图片上,单击、移动、双击看看效果</div>");
- sb.Append("\n <div id=\"diapoContainer\">");
- //<img class="imgsrc" src="img/01.jpg" alt="站长特效一号图片" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
- //<img class="imgsrc" src="img/02.jpg"alt="站长特效二号图片" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
- //<img class="imgsrc" src="img/03.jpg" alt="站长特效三号图片" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
- //<img class="imgsrc" src="img/04.jpg" alt="站长特效四号图片" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
- //<img class="imgsrc" src="img/01.jpg" alt="站长特效五号图片" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
- //<img class="imgsrc" src="img/03.jpg" alt="站长特效六号图片" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
- //<img class="imgsrc" src="img/04.jpg" alt="站长特效七号图片" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
- //<img class="imgsrc" src="img/03.jpg" alt="站长特效八号图片" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- // sb.Append("\n img" + s.ToString() + "=new Image ();img" + s.ToString() + ".src='images/" + FileName.Name + "';");
- 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;\"/>");
- }
- if (s == maxfileNumber)
- { break; }
- }
- sb.Append("\n <div id=\"bkgcaption\">");
- sb.Append("\n </div>");
- sb.Append("\n <div id=\"caption\">");
- sb.Append("\n </div>");
- sb.Append("\n </div>");
- sb.Append("\n <script type=\"text/javascript\">");
- /* ==== start script ==== */
- sb.Append("\n function dom_onload() {");
- sb.Append("\n if(document.getElementById(\"diapoContainer\")) diapo.init(); else setTimeout(\"dom_onload();\", 128);");
- sb.Append("\n }");
- sb.Append("\n dom_onload();");
- sb.Append("\n </script>");
- return sb.ToString();
- }
- //一款仿切片滤镜的JS焦点图,效果炫丽OK
- public string TX36(string imagesDir, int maxfileNumber, int picW, int picH)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n <style type=\"text/css\">");
- sb.Append("\n *{margin:0;padding:0;border:0;list-style:none;}");
- sb.Append("\n body{font:12px/1.5 Verdana, Geneva, sans-serif;background:#eee;padding:20px;}");
- /*=========mF_liuzg ========*/
- sb.Append("\n .mF_liuzg{position:relative;width:450px;height:296px;overflow:hidden;font:12px/1.5 Verdana,Geneva;background:#fff;}");
- 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;}/*载入画面*/");
- sb.Append("\n .mF_liuzg .pic li{width:450px;position:relative;overflow:hidden;*margin-top:-2px;}");
- sb.Append("\n .mF_liuzg .pic li p{width:450px;position:absolute;}");
- sb.Append("\n .mF_liuzg .pic li p a{display:block;}/*图片和焦点图框架一样大小*/");
- sb.Append("\n .mF_liuzg .pic li p img{width:450px;height:296px;}");
- 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;}");
- 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;}/*标题样式*/");
- 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;}/*标题背景*/");
- sb.Append("\n .mF_liuzg .num{position:absolute;z-index:3;bottom:6px;right:8px;color:#333;}/*按钮样式*/");
- 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;}");
- 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;}");
- sb.Append("\n </style>");
- sb.Append("\n <script type=\"text/javascript\">");
- sb.Append("\n var myFocus={");
- //Design By Koen @ 2010.8.x
- sb.Append("\n $:function(id){return document.getElementById(id);},");
- sb.Append("\n $$:function(tag,obj){return (typeof obj=='object'?obj:this.$(obj)).getElementsByTagName(tag);},");
- sb.Append("\n style:function(obj,style){return (+[1,])?window.getComputedStyle(obj,null)[style]:obj.currentStyle[style];},//getStyle简化版");
- sb.Append("\n easeOut:function(t,b,c,d){return -c*((t=t/d-1)*t*t*t - 1) + b;},");
- sb.Append("\n move:function(obj,prop,val,type,spd,fn){//运动函数,spd为运动需要的时间,时间越大速度越小");
- 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';");
- sb.Append("\n if(obj[prop+'Timer']) clearInterval(obj[prop+'Timer']);");
- sb.Append("\n obj[prop+'Timer']=setInterval(function(){");
- sb.Append("\n if(t<d){obj.style[prop]=Math[m](myFocus[st](++t,b,c,d))+'px';}");
- sb.Append("\n else {clearInterval(obj[prop+'Timer']);fn&&fn.call(obj);}");
- sb.Append("\n },10);return this;");
- sb.Append("\n },");
- sb.Append("\n addList:function(obj,cla,x){//生成HMTL,cla为列表的class,其中封装有:cla='txt'(生成alt文字),cla='num'(生成按钮数字),cla='thumb'(生成小图)");
- sb.Append("\n var s=[],n=x||this.$$('li',this.$$('ul',obj)[0]).length,num=cla.length;");
- sb.Append("\n for(var j=0;j<num;j++){");
- sb.Append("\n s.push('<ul class='+cla[j]+'>');");
- 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>')};");
- sb.Append("\n s.push('</ul>');");
- sb.Append("\n }; obj.innerHTML+=s.join('');");
- sb.Append("\n },");
- sb.Append("\n setting:function(par){");
- sb.Append("\n if(window.attachEvent){window.attachEvent('onload',function(){myFocus[par.style](par)});}");
- sb.Append("\n else{window.addEventListener('load',function(){myFocus[par.style](par)},false);}");
- sb.Append("\n },");
- sb.Append("\n mF_liuzg:function(par){");
- sb.Append("\n var box=this.$(par.id),boxH=box.offsetHeight,t=par.time*1000;");
- sb.Append("\n this.addList(box,['txt-bg','txt','num']);");
- sb.Append("\n var pic=this.$$('li',this.$$('ul', box)[0]),n=pic.length;");
- sb.Append("\n var c=boxH%par.chip?8:par.chip,h=boxH/c,pics=[];");
- sb.Append("\n for(var i=0;i<c;i++){");
- sb.Append("\n pics.push('<li><p>')");
- sb.Append("\n for(var j=0;j<n;j++) pics.push(pic[j].innerHTML);");
- sb.Append("\n pics.push('</p></li>')");
- sb.Append("\n }");
- sb.Append("\n this.$$('ul', box)[0].innerHTML=pics.join('');");
- sb.Append("\n var ul=this.$$('ul',box),txt=this.$$('li',ul[2]),btn=this.$$('li',ul[3]),pic=this.$$('li',ul[0]);");
- sb.Append("\n for(var i=0;i<c;i++){//初始化样式设置");
- sb.Append("\n this.$$('p',pic[i])[0].style.top=-i*h+'px';");
- sb.Append("\n pic[i].style.height=h+'px';");
- sb.Append("\n this.$$('p',pic[i])[0].style.height=boxH*c+'px';");
- sb.Append("\n }");
- sb.Append("\n var index = 0;//开始显示的序号");
- sb.Append("\n box.removeChild(this.$$('div',box)[0]);");
- sb.Append("\n var run = function(idx) {");
- sb.Append("\n var tt=par.type==4?Math.round(1+(Math.random()*(3-1))):par.type;//效果选择");
- sb.Append("\n btn[index].className = '';");
- sb.Append("\n txt[index].style.display='none';");
- sb.Append("\n if(index==n-1) index=-1;");
- sb.Append("\n var N=idx!=undefined?idx:index+1;");
- sb.Append("\n var spd=tt==2?20:(tt==1?80:Math.round(20+(Math.random()*(80-20))));");
- sb.Append("\n for(var i=0;i<c;i++){");
- sb.Append("\n if(tt==3) spd=Math.round(20+(Math.random()*(80-20)));");
- sb.Append("\n myFocus.move(myFocus.$$('p',pic[i])[0],'top',-N*c*h-i*h,'easeOut',spd);");
- sb.Append("\n spd=tt==2?spd+10:(tt==1?spd-10:spd);");
- sb.Append("\n }");
- sb.Append("\n btn[N].className = 'current';");
- sb.Append("\n txt[N].style.display='block';");
- sb.Append("\n index = N;");
- sb.Append("\n }");
- sb.Append("\n run(index);");
- sb.Append("\n var auto=setInterval(function(){run()},t);");
- sb.Append("\n for (var j=0;j<n;j++){");
- sb.Append("\n btn[j].j=j;");
- sb.Append("\n btn[j].onclick=function(){if(!this.className) run(this.j)}");
- sb.Append("\n }");
- sb.Append("\n box.onmouseover=function(){clearInterval(auto);}");
- sb.Append("\n box.onmouseout=function(){auto=setInterval(function(){run()},t);}");
- sb.Append("\n for(var i=0,lk=this.$$('a',box),ln=lk.length;i<ln;i++) lk[i].onfocus=function(){this.blur();}//去除虚线框");
- sb.Append("\n }");
- sb.Append("\n };");
- sb.Append("\n myFocus.setting({");
- sb.Append("\n style:'mF_liuzg',//style为风格样式,");
- sb.Append("\n id:'myFocus',//焦点图ID");
- sb.Append("\n chip:8,//图片切片数量,能被焦点图的高整除才有效,默认为8片");
- sb.Append("\n type:4,//切片效果,1为甩头,2为甩尾,3为凌乱,4为随机效果");
- sb.Append("\n time:4//每帧图片时间间隔");
- sb.Append("\n });//更多样式设置留意myFocus正式版");
- sb.Append("\n </script>");
- sb.Append("\n <div id=\"myFocus\" class=\"mF_liuzg\">");
- sb.Append("\n <div class=\"loading\"><span>请稍候...</span></div><!--载入画面-->");
- sb.Append("\n <ul class=\"pic\"><!--内容列表-->");
- //sb.Append("\n <li><a href=\"#\"><img src=\"http://www.alixixi.com/web/UploadPic/2010-8/2010826163527189.jpg\" alt=\"图片1来源于网络,版权属于原作者\" /></a></li>");
- //sb.Append("\n <li><a href=\"#\"><img src=\"http://www.alixixi.com/web/UploadPic/2010-8/2010826163527162.jpg\" alt=\"版权属于原作者,图片2来源于网络\" /></a></li>");
- //sb.Append("\n <li><a href=\"#\"><img src=\"http://www.alixixi.com/web/UploadPic/2010-8/2010826163527790.jpg\" alt=\"图片3来源于网络,版权属于原作者\" /></a></li>");
- //sb.Append("\n <li><a href=\"#\"><img src=\"http://www.alixixi.com/web/UploadPic/2010-8/2010826163527230.jpg\" alt=\"版权属于原作者,图片4来源于网络\" /></a></li>");
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- // sb.Append("\n img" + s.ToString() + "=new Image ();img" + s.ToString() + ".src='images/" + FileName.Name + "';");
- sb.Append("\n <li><a href=\"#\"><img src=\"" + imagesDir + "/" + FileName.Name + "\" alt=\"广东松山刘友生设计\" /></a></li>");
- }
- if (s == maxfileNumber)
- { break; }
- }
- sb.Append("\n </ul>");
- sb.Append("\n </div>");
- return sb.ToString();
- }
- //网站常用数字导航,自动淡化滚屏效果,OK,纯脚本控制
- public string TX35(string imagesDir, int maxfileNumber,int picW,int picH)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(imagesDir);
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n <script>");
- sb.Append("\n var widths="+picW.ToString()+";");
- sb.Append("\n var heights="+picH.ToString()+";");
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- sb.Append("\n img" + s.ToString() + "=new Image ();img" + s.ToString() + ".src='images/" + FileName.Name + "';");
- sb.Append("\n url"+s.ToString()+"=new Image ();url"+s.ToString()+".src='#';");
- }
- if (s == maxfileNumber)
- { break; }
- }
- //img1=new Image ();img1.src='/img/1_16395N43_zzjs.jpg';
- //img2=new Image ();img2.src='/img/1_1101524d_zzjs.jpg';
- //img3=new Image ();img3.src='/img/1_110116138_zzjs.jpg';
- //img4=new Image ();img4.src='/img/1_2314441t_zzjs.jpg';
- //img5=new Image ();img5.src='/img/1_1U455230_zzjs.jpg';
- //img6=new Image ();img6.src='/img/1_2314441t_zzjs.jpg';
- //url1=new Image ();url1.src='http://www.zzjs.net';
- //url2=new Image ();url2.src='http://www.zzjs.net';
- //url3=new Image ();url3.src='http://www.zzjs.net';
- //url4=new Image ();url4.src='http://www.zzjs.net';
- //url5=new Image ();url5.src='http://www.zzjs.net';
- //url6=new Image ();url6.src='http://www.zzjs.net';
- //欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。
- sb.Append("\n var counts="+s+";");
- sb.Append("\n var nn=1;");
- sb.Append("\n var key=0;");
- sb.Append("\n function change_img()");
- sb.Append("\n {if(key==0){key=1;}");
- sb.Append("\n else if(document.all)");
- sb.Append("\n {document.getElementById(\"pic\").filters[0].Apply();document.getElementById(\"pic\").filters[0].Play(duration=2);}");
- sb.Append("\n eval('document.getElementById(\"pic\").src=img'+nn+'.src');");
- sb.Append("\n eval('document.getElementById(\"url\").href=url'+nn+'.src');");
- sb.Append("\n for (var i=1;i<=counts;i++){document.getElementById(\"xxjdjj\"+i).className='axx';}");
- sb.Append("\n document.getElementById(\"xxjdjj\"+nn).className='bxx';");
- sb.Append("\n nn++;if(nn>counts){nn=1;}");
- sb.Append("\n tt=setTimeout('change_img()',4000);}");
- sb.Append("\n function changeimg(n){nn=n;window.clearInterval(tt);change_img();}");
- sb.Append("\n document.write('<style>');");
- sb.Append("\n document.write('.axx{padding:1px 7px;border-left:#cccccc 1px solid;}');");
- 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;}');");
- 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;}');");
- sb.Append("\n document.write('.bxx{padding:1px 7px;border-left:#cccccc 1px solid;}');");
- 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;}');");
- 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;}');");
- sb.Append("\n document.write('</style>');");
- sb.Append("\n document.write('<div style=\"width:'+widths+'px;height:'+heights+'px;overflow:hidden;text-overflow:clip;\">');");
- 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>');");
- 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;\">');");
- 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>');}");
- sb.Append("\n document.write('</div></div>');");
- sb.Append("\n change_img();");
- sb.Append("\n </script>");
- return sb.ToString();
- }
- //
- public string TX34(string imagesDir, int maxfileNumber)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(imagesDir);
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n <div id=demo style=overflow:hidden;height:150;width:90;background:#214984;color:#ffffff>");
- sb.Append("\n <div id=demo1>");
- sb.Append("\n <img src=\"images/01.jpg\">");
- sb.Append("\n <img src=\"images/02.jpg\">");
- sb.Append("\n <img src=\"images/03.jpg\">");
- sb.Append("\n <img src=\"images/04.jpg\">");
- sb.Append("\n <img src=\"images/06.jpg\">");
- sb.Append("\n </div>");
- sb.Append("\n <div id=demo2></div>");
- sb.Append("\n </div>");
- sb.Append("\n <script>");
- sb.Append("\nvar speed=30");
- sb.Append("\n demo2.innerHTML=demo1.innerHTML");
- sb.Append("\n function Marquee(){");
- sb.Append("\n if(demo2.offsetTop-demo.scrollTop<=0)");
- sb.Append("\n demo.scrollTop-=demo1.offsetHeight");
- sb.Append("\n else{");
- sb.Append("\n demo.scrollTop++");
- sb.Append("\n}//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。");
- sb.Append("\n}");
- sb.Append("\n var MyMar=setInterval(Marquee,speed)");
- sb.Append("\n demo.onmouseover=function() {clearInterval(MyMar)}");
- sb.Append("\n demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}");
- sb.Append("\n </script>");
- return sb.ToString();
- }
- public string TX33(string imagesDir, int maxfileNumber)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- //<a href="http://www.zzjs.net/">站长特效网</a>,站长必备的高质量网页特效和广告代码。zzjs.net,站长js特效。<hr>
- //<!--欢迎来到站长特效网,我们网站收集大量高质量js特效,提供许多广告代码下载,网址:www.zzjs.net,zzjs@msn.com,用.net打造靓站-->
- sb.Append("\n <script language=\"javascript\">");
- //欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。
- sb.Append("\n var images=Array();");
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- sb.Append("\n images.push(" + imagesDir + "/" + FileName.Name + "\");");
- sb.Append("\n images.push(\"mailto:ssxylys@163.com\");");
- }
- if (s == maxfileNumber)
- { break; }
- }
- //images.push("/img/200406301.jpg");
- //images.push("http://www.zzjs.net");
- //images.push("/img/200406302.jpg");
- //images.push("http://www.zzjs.net");
- //images.push("/img/200406303.jpg");
- //images.push("http://www.zzjs.net");
- //images.push("/img/200406304.jpg");
- //images.push("http://www.zzjs.net");
- //images.push("/img/200406305.jpg");
- //images.push("http://www.zzjs.net");
- //images.push("/img/200406305.jpg");
- //images.push("http://www.zzjs.net");
- //images.push("/img/200406304.jpg");
- //images.push("http://www.zzjs.net");
- //images.push("/img/200406303.jpg");
- //images.push("http://www.zzjs.net");
- //Specify the slider's width (in pixels)
- sb.Append("\n var sliderwidth=695");
- //Specify the slider's height
- sb.Append("\n var sliderheight=82");
- //Specify the slider's slide speed (larger is faster 1-10)
- sb.Append("\n var slidespeed=1");
- //configure background color:
- sb.Append("\n slidebgcolor=\"#fff\"");
- //Specify the slider's images
- sb.Append("\n var leftrightslide=new Array()");
- sb.Append("\n var finalslide=''");
- sb.Append("\n leftrightslide[0]='<table border=\"0\" cellspacing=\"13\" cellpadding=\"0\" width=\"695px\" style=\"margin-top:-10px\">'+'<tr align=\"center\">';");
- sb.Append("\n var size=images.length/2;");
- sb.Append("\n for(var i=0;i<size;i++)");
- 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>\";");
- sb.Append("\n leftrightslide[0]+='</tr></table>';");
- ////NO NEED TO EDIT BELOW THIS LINE////////////
- sb.Append("\n var copyspeed=slidespeed");
- sb.Append("\n leftrightslide='<nobr>'+leftrightslide.join(\" \")+'</nobr>'");
- sb.Append("\n var iedom=document.all||document.getElementById");
- sb.Append("\n if (iedom)");
- sb.Append("\n document.write('<span id=\"temp\" style=\"visibility:hidden;position:absolute;top:0;left:0\">'+leftrightslide+'</span>')");
- sb.Append("\n var actualwidth=''");
- sb.Append("\n var cross_slide, ns_slide");
- sb.Append("\n function fillup(){");
- sb.Append("\n if (iedom){");
- sb.Append("\n cross_slide=document.getElementById? document.getElementById(\"test2\") : document.all.test2");
- sb.Append("\n cross_slide2=document.getElementById? document.getElementById(\"test3\") : document.all.test3");
- sb.Append("\n cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide");
- sb.Append("\n actualwidth=document.all? cross_slide.offsetWidth : document.getElementById(\"temp\").offsetWidth");
- sb.Append("\n cross_slide2.style.left=actualwidth-5");
- sb.Append("\n }//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。");
- sb.Append("\n else if (document.layers){");
- sb.Append("\n ns_slide=document.ns_slidemenu.document.ns_slidemenu2");
- sb.Append("\n ns_slide2=document.ns_slidemenu.document.ns_slidemenu3");
- sb.Append("\n ns_slide.document.write(leftrightslide)");
- sb.Append("\n ns_slide.document.close()");
- sb.Append("\n actualwidth=ns_slide.document.width");
- sb.Append("\n ns_slide2.left=actualwidth");
- sb.Append("\n ns_slide2.document.write(leftrightslide)");
- sb.Append("\n ns_slide2.document.close()");
- sb.Append("\n }");
- sb.Append("\n lefttime=setInterval(\"slideleft()\",30)");
- sb.Append("\n }");
- sb.Append("\n window.onload=fillup");
- sb.Append("\n function slideleft(){");
- sb.Append("\n if (iedom){");
- sb.Append("\n if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))");
- sb.Append("\n cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed");
- sb.Append("\n else");
- sb.Append("\n cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth-5");
- sb.Append("\n if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))");
- sb.Append("\n cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed");
- sb.Append("\n else");
- sb.Append("\n cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth-5");
- sb.Append("\n }");
- sb.Append("\n else if (document.layers){");
- sb.Append("\n if (ns_slide.left>(actualwidth*(-1)+8))");
- sb.Append("\n ns_slide.left-=copyspeed");
- sb.Append("\n else");
- sb.Append("\n ns_slide.left=ns_slide2.left+actualwidth");
- sb.Append("\n if (ns_slide2.left>(actualwidth*(-1)+8))");
- sb.Append("\n ns_slide2.left-=copyspeed");
- sb.Append("\n else");
- sb.Append("\n ns_slide2.left=ns_slide.left+actualwidth");
- sb.Append("\n }");
- sb.Append("\n }//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。");
- sb.Append("\n if (iedom||document.layers){");
- sb.Append("\n with (document){");
- sb.Append("\n document.write('<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><td>')");
- sb.Append("\n if (iedom){");
- sb.Append("\n write('<div style=\"position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden\">')");
- sb.Append("\n write('<div style=\"position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'\" onMouseover=\"copyspeed=0\" onMouseout=\"copyspeed=slidespeed\">')");
- sb.Append("\n write('<div id=\"test2\" style=\"width:695px;position:absolute;left:0;top:0\"></div>')");
- sb.Append("\n write('<div id=\"test3\" style=\"position:absolute;left:0;top:0;width:695px;\"></div>')");
- sb.Append("\n write('</div></div>')");
- sb.Append("\n }");
- sb.Append("\n else if (document.layers){");
- sb.Append("\n write('<ilayer width='+sliderwidth+' height='+sliderheight+' name=\"ns_slidemenu\" bgColor='+slidebgcolor+'>')");
- sb.Append("\n write('<layer name=\"ns_slidemenu2\" left=0 top=0 onMouseover=\"copyspeed=0\" onMouseout=\"copyspeed=slidespeed\"></layer>')");
- sb.Append("\n write('<layer name=\"ns_slidemenu3\" left=0 top=0 onMouseover=\"copyspeed=0\" onMouseout=\"copyspeed=slidespeed\"></layer>')");
- sb.Append("\n write('</ilayer>')");
- sb.Append("\n }");
- sb.Append("\n document.write('</td></table>')");
- sb.Append("\n }");
- sb.Append("\n }//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。");
- sb.Append("\n </script>");
- return sb.ToString();
- }
- //漂亮网页相册
- public string TX32(string imagesDir, int maxfileNumber)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"TX32.css\" />");
- sb.Append("\n <div id=\"www_zzjs_net\">");
- sb.Append("\n <h1>特效网相册系统</h1>");
- sb.Append("\n <ul>");
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- sb.Append("\n <li><a href=\"" + imagesDir + "/" + FileName.Name + "\" title=\"提示信息\"><img width=\"30\" height=\"30\" src=\"" + imagesDir + "/" + FileName.Name + "\" />图片" + s.ToString() + "</a></li>");
- }
- if (s == maxfileNumber)
- { break; }
- }
- //<li><a href="/img/1_195857.jpg" title="四只长颈鹿"><img src="/img/1_200223.jpg" />长颈鹿</a></li>
- //<li><a href="/img/1_195911.jpg" title="绿色的小青蛙"><img src="/img/1_200235.jpg" />青蛙</a></li>
- //<li><a href="/img/1_195923.jpg" title="小狗狗会汪汪"><img src="/img/1_200243.jpg" />小狗狗</a></li>
- //<li><a href="/img/1_195937.jpg" title="小老鼠兄弟"><img src="/img/1_200255.jpg" />鼠小弟</a></li>
- //<li><a href="/img/1_195953.jpg" title="烫发的白天鹅"><img src="/img/1_200306.jpg" />白天鹅</a></li>
- //<li><a href="/img/1_200004.jpg" title="鹦鹉夫妇"><img src="/img/1_200320.jpg" />鹦鹉</a></li>
- //<li><a href="/img/1_200022.jpg" title="北方的狼 站长特效"><img src="/img/1_200330.jpg" />狼</a></li>
- //<li><a href="/img/1_200039.jpg" title="警觉中的斑马"><img src="/img/1_200340.jpg" />斑马</a></li>
- //<li><a href="/img/1_200053.jpg" title="绿色的鸟"><img src="/img/1_200348.jpg" />绿色的鸟</a></li>
- //<li><a href="/img/1_200112.jpg" title="金黄色的小金鱼"><img src="/img/1_200401.jpg" />小金鱼</a></li>
- sb.Append("\n </ul>");
- sb.Append("\n </div>");
- sb.Append("\n <script language=\"javascript\">");
- sb.Append("\n function setDiv(){");
- sb.Append("\n var www_zzjs_net = document.getElementById(\"www_zzjs_net\");");
- sb.Append("\n var showpic = document.createElement(\"div\");");
- sb.Append("\n showpic.setAttribute(\"id\", \"showpic\");");
- sb.Append("\n www_zzjs_net.appendChild(showpic);");
- sb.Append("\n showpic.appendChild(document.createElement(\"h2\"));");
- sb.Append("\n showpic.appendChild(document.createElement(\"img\"));");
- sb.Append("\n var links = www_zzjs_net.getElementsByTagName(\"a\");");
- sb.Append("\n for(var k=0; k<links.length; k++){");
- sb.Append("\n links[k].onclick = function(){");
- sb.Append("\n return showPic(this);");
- sb.Append("\n }");//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。
- sb.Append("\n }");
- sb.Append("\n }");
- sb.Append("\n function showPic(pic){");
- sb.Append("\n var showpic = document.getElementById(\"showpic\");");
- sb.Append("\n showpic.style.display = \"block\";");
- sb.Append("\n showpic.getElementsByTagName(\"h2\")[0].innerHTML = pic.title;");
- sb.Append("\n showpic.getElementsByTagName(\"img\")[0].setAttribute(\"src\", pic.href);");
- sb.Append("\n return false;");
- sb.Append("\n }//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。");
- sb.Append("\n window.onload = setDiv;");
- sb.Append("\n </script>");
- return sb.ToString();
- }
-
- //点击按钮图片切换浏览效果
- public string TX30(string imagesDir, int maxfileNumber)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(imagesDir);
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n <button onclick=\"Slider.next()\">下一张</button>");
- sb.Append("\n <script type=\"text/javascript\">");
- sb.Append("\n <!--");
- sb.Append("\n Slider = {");
- sb.Append("\n isIE : true,");
- sb.Append("\n m_imageSource : [],");
- sb.Append("\n m_selIdx : 0,");
- sb.Append("\n m_direction : 1,");
- sb.Append("\n m_mainviewer : null,");
- sb.Append("\n m_delayTimer : null,");
- sb.Append("\n m_delayTimer1 : null,");
- sb.Append("\n m_curObj : null,");
- sb.Append("\n m_tarObj : null,");
- sb.Append("\n m_inited : false,");
- sb.Append("\n init : function(id, w, h, w1, h1, p, t, s, source){");
- sb.Append("\n this.isIE = document.all ? true : false;");
- sb.Append("\n this.canvasWidth = w;");
- sb.Append("\n this.canvasHeight = h;");
- sb.Append("\n this.imageWidth = w1;");
- sb.Append("\n this.imageHeight = h1;");
- sb.Append("\n this.m_percent = p;");
- sb.Append("\n this.m_top = t;");
- sb.Append("\n this.m_spaceWidth = s;");
- sb.Append("\n this.writeCanvas(id);");
- sb.Append("\n for(var i=0;i<source.length;i++)");
- sb.Append("\n {");
- 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+'\"/>';");
- sb.Append("\n }");
- sb.Append("\n this.m_mainviewer = this.container.firstChild.cloneNode(true);");
- sb.Append("\n this.bind();");
- sb.Append("\n this.start();");
- sb.Append("\n },");
- sb.Append("\n writeCanvas : function(id)");
- sb.Append("\n {");
- 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>');");
- sb.Append("\n this.container = document.getElementById(id);");
- sb.Append("\n },");
- sb.Append("\n bind : function(obj, evt, fun){");
- sb.Append("\n var obj = this.container;");
- sb.Append("\n for(var i=0;i<obj.childNodes.length;i++)");
- sb.Append("\n {");
- sb.Append("\n this.attachEvent(this.container.childNodes[i], \"mouseover\", this.mouseover);");
- sb.Append("\n this.attachEvent(this.container.childNodes[i], \"mouseout\" , this.mouseout);");
- sb.Append("\n this.attachEvent(this.container.childNodes[i], \"click\" , this.click);");
- sb.Append("\n }");
- sb.Append("\n },");
- sb.Append("\n attachEvent : function(obj, evt, fun){");
- sb.Append("\n if (Slider.isIE)");
- sb.Append("\n {");
- sb.Append("\n obj.attachEvent(\"on\"+evt, fun)");
- sb.Append("\n }else");
- sb.Append("\n {");
- sb.Append("\n obj.addEventListener(evt, fun, false);");
- sb.Append("\n }");
- sb.Append("\n },");
- sb.Append("\n mouseover : function(e)");
- sb.Append("\n {");
- sb.Append("\n if(!e)e=window.event;");
- sb.Append("\n var obj = e.srcElement || e.target;");
- sb.Append("\n if (Slider.isIE)");
- sb.Append("\n {");
- sb.Append("\n obj.style.filter = \"alpha(opacity=80)\";");
- sb.Append("\n }else{");
- sb.Append("\n obj.style.opacity = \"0.8\";");
- sb.Append("\n }");
- sb.Append("\n },");
- sb.Append("\n mouseout : function(e)");
- sb.Append("\n {");
- sb.Append("\n if(!e)e=window.event;");
- sb.Append("\n var obj = e.srcElement || e.target;");
- sb.Append("\n if (Slider.isIE)");
- sb.Append("\n {");
- sb.Append("\n obj.style.filter = \"alpha(opacity=50)\";");
- sb.Append("\n }else{");
- sb.Append("\n obj.style.opacity = \"0.5\";");
- sb.Append("\n }");
- sb.Append("\n },");
- sb.Append("\n click : function(e)");
- sb.Append("\n {");
- sb.Append("\n if(!e)e=window.event;");
- sb.Append("\n var obj = e.srcElement || e.target;");
- sb.Append("\n var mobj = Slider.m_mainviewer;");
- sb.Append("\n Slider.m_selIdx = obj.getAttribute(\"index\");");
- sb.Append("\n Slider.m_curObj = Slider.m_mainviewer;");
- sb.Append("\n Slider.m_tarObj = obj;");
- sb.Append("\n Slider.m_delayTimer = Slider.fadeIn(200,5);");
- sb.Append("\n },");
- sb.Append("\n start : function(){");
- sb.Append("\n var obj = this.m_mainviewer;");
- sb.Append("\n if (Slider.isIE)");
- sb.Append("\n {");
- sb.Append("\n obj.style.filter = \"alpha(opacity=100)\";");
- sb.Append("\n }else{");
- sb.Append("\n obj.style.opacity = \"1\";");
- sb.Append("\n }");
- sb.Append("\n this.container.appendChild(this.m_mainviewer);");
- sb.Append("\n this.m_mainviewer.style.width = parseInt(this.m_mainviewer.style.width)*(1+this.m_percent)+\"px\";");
- sb.Append("\n this.m_mainviewer.style.height = parseInt(this.m_mainviewer.style.height)*(1+this.m_percent)+\"px\";");
- sb.Append("\n this.m_curObj = this.container.childNodes[this.m_selIdx];");
- sb.Append("\n this.m_tarObj = this.m_mainviewer;");
- sb.Append("\n if(this.m_delayTimer)clearInterval(Slider.m_delayTimer);");
- sb.Append("\n this.m_delayTimer = this.fadeIn(200,5);");
- sb.Append("\n },");
- sb.Append("\n next : function(){");
- sb.Append("\n var obj = this.container;");
- sb.Append("\n var mobj = this.m_mainviewer;");
- sb.Append("\n if(this.m_selIdx == obj.childNodes.length-2)");
- sb.Append("\n {");
- sb.Append("\n this.m_direction = -1;");
- sb.Append("\n }");
- sb.Append("\n if(this.m_selIdx == 0)");
- sb.Append("\n {");
- sb.Append("\n this.m_direction = 1;");
- sb.Append("\n }");
- sb.Append("\n Slider.m_curObj = mobj;");
- sb.Append("\n Slider.m_tarObj = obj.childNodes[this.m_selIdx];");
- sb.Append("\n this.m_delayTimer = this.fadeIn(200,5);");
- sb.Append("\n mobj.src = obj.childNodes[this.m_selIdx].src;");
- sb.Append("\n if(this.m_direction==-1){");
- sb.Append("\n this.m_selIdx --;");
- sb.Append("\n }else{");
- sb.Append("\n this.m_selIdx ++;");
- sb.Append("\n }");
- sb.Append("\n },");
- sb.Append("\n fadeIn : function(aa, ab){");
- sb.Append("\n var obj = this.container;");
- sb.Append("\n with(this.m_curObj.style){var t1 = parseInt(left);var t3 = parseInt(width);var t4 = parseInt(height);var t5 = parseInt(top);}");
- sb.Append("\n if (Slider.m_inited)");
- sb.Append("\n {");
- sb.Append("\n var k1 = (t1 - (this.canvasWidth- parseInt(this.m_curObj.style.width))/2)/ab;");
- sb.Append("\n var k3 = (t3-parseInt(this.m_tarObj.style.width))/ab;");
- sb.Append("\n var k4 = (t4-parseInt(this.m_tarObj.style.height))/ab;");
- sb.Append("\n var k5 = (t5 - parseInt(this.m_tarObj.style.top))/ab;");
- sb.Append("\n }else{");
- sb.Append("\n var k1 = (t1 - (this.canvasWidth- this.imageWidth*(1+this.m_percent))/2)/ab;");
- sb.Append("\n var k3 = (t3- this.imageWidth*(1+this.m_percent))/ab;");
- sb.Append("\n var k4 = (t4 - this.imageHeight*(1+this.m_percent))/ab;");
- sb.Append("\n var k5 = (this.imageHeight * this.m_percent/2)/ab;");
- sb.Append("\n }");
- sb.Append("\n var mobj = this.m_mainviewer;");
- sb.Append("\n return setInterval(function(){if(ab<1){");
- sb.Append("\n clearInterval(Slider.m_delayTimer);");
- sb.Append("\n if(Slider.m_inited){");
- sb.Append("\n if (!Slider.m_fadein)");
- sb.Append("\n {");
- sb.Append("\n Slider.m_curObj = obj.childNodes[Slider.m_selIdx];");
- sb.Append("\n Slider.m_tarObj = mobj;");
- sb.Append("\n mobj.src = obj.childNodes[Slider.m_selIdx].src;");
- sb.Append("\n Slider.m_fadein = true;");
- sb.Append("\n Slider.m_inited = false;");
- sb.Append("\n Slider.m_delayTimer = Slider.fadeIn(200,10);");
- sb.Append("\n }else{");
- sb.Append("\n Slider.m_fadein = false;");
- sb.Append("\n Slider.m_inited = true;");
- sb.Append("\n }");
- sb.Append("\n }");
- sb.Append("\n Slider.m_inited = true;");
- sb.Append("\n return;");
- sb.Append("\n }");
- sb.Append("\n ab--;t1-=k1;t3-=k3;t4-=k4;t5-=k5;");
- sb.Append("\n if (Slider.m_fadein)");
- sb.Append("\n {");
- sb.Append("\n for(var i=0;i<obj.childNodes.length-1;i++)");
- sb.Append("\n {");
- sb.Append("\n obj.childNodes[i].style.left = (parseInt(t1) + (Slider.imageWidth + Slider.m_spaceWidth)*(i-Slider.m_selIdx))+\"px\";");
- sb.Append("\n }");
- sb.Append("\n }");
- sb.Append("\n with(mobj.style){left = t1 + \"px\";top = t5 + \"px\";width = t3 + \"px\";height = t4 + \"px\";}");
- sb.Append("\n }");
- sb.Append("\n,aa/ab)");
- sb.Append("\n }");
- sb.Append("\n }");
- sb.Append("\n Slider.init('aaa',500,400,250,200, 0.5, 100, 20, [");
- //"/image/1.jpg",
- //"/image/2.jpg",
- //"/image/3.jpg",
- //"/image/4.jpg",
- //"/image/5.jpg",
- //"/image/1.jpg",
- //"/image/2.jpg",
- //"/image/3.jpg"
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- sb.Append("\n " + imagesDir + "\\" + FileName.Name + ",");
- }
- if (s == maxfileNumber)
- { break; }
- }
-
- sb.Append("\n]);");
- sb.Append("\n //-->");
- sb.Append("\n </script>");
- return sb.ToString();
- }
- //傲游浏览器官网js焦点图定时切换特效 OK
- public string TX29(string imagesDir, int maxfileNumber)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"css/TX29.css\" />");
- sb.Append("\n <script type=\"text/javascript\" src=\"js/TX29.js\"></script>");
- sb.Append("\n <div id=\"index-www_zzjs_net\" class=\"index-www_zzjs_net\">");
- sb.Append("\n <div id=\"feature-slide_zzjs\" class=\"feature-slide_zzjs\">");
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- //sb.Append("\n <li><a href=\"javascript:;\"><img src=\"" + imagesDir + "\\" + FileName.Name + "\" />内容</a></li>");
- sb.Append("\n <div class=\"preview_zzjs_net\" style=\"display: none; \">");
- sb.Append("\n <h3><a href=\"#\">图片标题</a></h3>");
- sb.Append("\n <p>图片说明</p>");
- sb.Append("\n <a href=\"#\" class=\"screenshot\"><img alt=\"\" width=\"308\" height=\"220\" src=\"" + imagesDir + "/" + FileName.Name + "\" /></a></div>");
- }
- //if (s == 5)
- //{ break; }
- }
- //<div class=\"preview_zzjs_net\" style=\"display: none; \">
- // <h3><a href="http://www.zzjs.net">鼠标手势</a></h3>
- // <p>按住右键滑动鼠标,就能够执行前进、后退和刷新等常用操作。您还可以到设置中心对其进行自定义。</p>
- // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="img/01.jpg" /></a>
- //</div>
- //<div class="preview_zzjs_net" style="display: none; ">
- // <h3><a href="http://www.zzjs.net">撤销按钮</a></h3>
- // <p>通过撤销按钮可以轻松找回失手关闭的重要网页,点击按钮旁边的下拉箭头还会显示最近关闭的页面列表。</p>
- // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-2_20110121zzjs_net.png" /></a>
- //</div>
- //<div class="preview_zzjs_net" style="display: none; ">
- // <h3><a href="http://www.zzjs.net">历史搜索</a></h3>
- // <p>通过历史搜索你可以方便的浏览、搜索和清除浏览历史记录、RSS历史记录以及搜索关键字历史记录</p>
- // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-3_20110121zzjs_net.png" /></a>
- //</div>
- //<div class="preview_zzjs_net" style="display: none; ">
- // <h3><a href="http://www.zzjs.net">分屏浏览</a></h3>
- // <p>将浏览器窗口一分为二,更大发挥宽屏显示器作用;你可以同时浏览两个网站,转载和对照更加方便。</p>
- // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-4_20110121zzjs_net.png" /></a>
- //</div>
- //<div class="preview_zzjs_net" style="display: none; ">
- // <h3><a href="http://www.zzjs.net">广告过滤</a></h3>
- // <p>有效阻止各种弹窗、恶意网页的骚扰,还支持自定义过滤和免过滤列表。铺天盖地的广告,消失吧!</p>
- // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-5_20110121zzjs_net.png" /></a>
- //</div>
- //<div class="preview_zzjs_net" style="display: none; ">
- // <h3><a href="http://www.zzjs.net">在线收藏</a></h3>
- // <p>让你随时随地都可以访问自己的私人收藏夹内容。浏览器会在后台自动保存和同步你的在线收藏夹。</p>
- // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-6_20110121zzjs_net.png" /></a>
- //</div>
- //<div class="preview_zzjs_net" style="display: none; ">
- // <h3><a href="http://www.zzjs.net">收集面板</a></h3>
- // <p>随叫随到的在线版记事本。多标签让管理更加方便,可以随时上传下载,也可以另存为文本文档。</p>
- // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-7_20110121zzjs_net.png" /></a>
- //</div>
- //<div class="preview_zzjs_net" style="display: none; ">
- // <h3><a href="http://www.zzjs.net">屏幕截图</a></h3>
- // <p>将网页内容保存为多种图片格式,方便存档和分享。无论是全屏、局部还是整个页面截图,都由你决定。</p>
- // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-8_20110121zzjs_net.png" /></a>
- //</div>
- //<div class="preview_zzjs_net" style="display: none; ">
- // <h3><a href="http://www.zzjs.net">智能填表</a></h3>
- // <p>智能识别表单进行自动填写,网站注册登录一劳永逸。</p>
- // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-9_20110121zzjs_net.png" /></a>
- //</div>
- //<div class="preview_zzjs_net" style="display: none; ">
- // <h3><a href="http://www.zzjs.net">多重代理</a></h3>
- // <p>通过设置代理规则,你可以通过不同代理服务器访问不同网站,有效提高浏览效率。</p>
- // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-10_20110121zzjs_net.png" /></a>
- //</div>
- //<div class="preview_zzjs_net" style="display: none; ">
- // <h3><a href="http://www.zzjs.net">扩展插件</a></h3>
- // <p>通过安装各种插件进一步扩展浏览器的功能。您也可以编写插件与全球用户分享。</p>
- // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-11_20110121zzjs_net.png" /></a>
- //</div>
- //<div class="preview_zzjs_net" style="display: none; ">
- // <h3><a href="http://www.zzjs.net">个性皮肤</a></h3>
- // <p>不同的皮肤使界面呈现不同的风格,美化浏览器,代言你的个性.你还可以制作皮肤与全球用户分享</p>
- // <a href="http://www.zzjs.net" class="screenshot"><img alt="" src="/img/preview-12_20110121zzjs_net.png" /></a>
- //</div>
- sb.Append("\n <div id=\"feature-slide-list\" class=\"feature-slide-list\">");
- sb.Append("\n <a href=\"#\" id=\"previous_zzjs\" class=\"previous_zzjs\"></a>");
- sb.Append("\n <div id=\"feature-list_zzjs_net\" class=\"feature-list_zzjs_net\">");
- sb.Append("\n </div>");
- sb.Append("\n <a href=\"#\" id=\"next_zzjs_net\" class=\"next_zzjs_net\"></a>");
- sb.Append("\n </div>");
- sb.Append("\n </div>");
- sb.Append("\n <script type=\"text/javascript\">");
- sb.Append("\n init_zzjs();");
- sb.Append("\n </script>");
- sb.Append("\n </div>");
- return sb.ToString();
- }
-
- //跟随鼠标移动(大图展示)OK 最好是JPG图片
- public string TX28(string imagesDir, int maxfileNumber)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n <style type=\"text/css\">");
- sb.Append("\n html,body{overflow:hidden;}");
- sb.Append("\n body,div,ul,li{margin:0;padding:0;}");
- sb.Append("\n #box ul{width:768px;height:172px;list-style-type:none;margin:10px auto;}");
- sb.Append("\n #box li{float:left;width:170px;height:170px;cursor:pointer;display:inline;border:1px solid #ddd;margin:0 10px;}");
- sb.Append("\n #box li.active{border:1px solid #a10000;}");
- sb.Append("\n #box li img{width:170px;height:170px;vertical-align:top;}");
- sb.Append("\n #big{position:absolute;width:400px;height:400px;border:2px solid #ddd;display:none;}");
- 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;}");
- sb.Append("\n </style>");
- sb.Append("\n <script type=\"text/javascript\">");
- sb.Append("\n window.onload = function ()");
- sb.Append("\n {");
- sb.Append("\n var aLi = document.getElementsByTagName(\"li\");");
- sb.Append("\n var oBig = document.getElementById(\"big\");");
- sb.Append("\n var oLoading = oBig.getElementsByTagName(\"div\")[0];");
- sb.Append("\n var i = 0;");
- sb.Append("\n for (i = 0; i < aLi.length; i++)");
- sb.Append("\n {");
- sb.Append("\n aLi[i].index = i;");
- //鼠标划过, 预加载图片插入容器并显示
- sb.Append("\n aLi[i].onmouseover = function ()");
- sb.Append("\n {");
- sb.Append("\n var oImg = document.createElement(\"img\");");
- //图片预加载
- sb.Append("\n var img = new Image(); ");
- sb.Append("\n img.src = oImg.src = aLi[this.index].getElementsByTagName(\"img\")[0].src.replace(\".gif\",\"_big.jpg\");"); //replace(\".gif\",\"_big.jpg\");") 不显示GIF文件
- //插入大图片
- sb.Append("\n oBig.appendChild(oImg);");
- //鼠标移过样式
- sb.Append("\n this.className = \"active\";");
- //显示big
- sb.Append("\n oBig.style.display = oLoading.style.display = \"block\";");
- //判断大图是否加载成功
- sb.Append("\n img.complete ? oLoading.style.display =\"none\" : (oImg.onload = function() {oLoading.style.display = \"none\";}) ");
- sb.Append("\n };");
- //鼠标移动, 大图容器跟随鼠标移动
- sb.Append("\n aLi[i].onmousemove = function (event)");
- sb.Append("\n {");
- sb.Append("\n var event = event || window.event; ");
- sb.Append("\n var iWidth = document.documentElement.offsetWidth - event.clientX; ");
- //设置big的top值
- sb.Append("\n oBig.style.top = event.clientY + 20 + \"px\";");
- //设置big的left值, 如果右侧显示区域不够, 大图将在鼠标左侧显示.
- sb.Append("\n oBig.style.left = (iWidth < oBig.offsetWidth + 10 ? event.clientX - oBig.offsetWidth - 10 : event.clientX + 10) + \"px\";");
- sb.Append("\n };");
- //鼠标离开, 删除大图并隐藏大图容器
- sb.Append("\n aLi[i].onmouseout = function ()");
- sb.Append("\n {");
- sb.Append("\n this.className = \"\";");
- sb.Append("\n oBig.style.display = \"none\";");
- //移除大图片
- sb.Append("\n oBig.removeChild(oBig.lastChild)");
- sb.Append("\n }");
- sb.Append("\n }");
- sb.Append("\n };");
- sb.Append("\n </script>");
-
- sb.Append("\n <div id=\"box\">");
- sb.Append("\n <ul>");
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- //sb.Append("\n <li><a href=\"javascript:;\"><img src=\"" + imagesDir + "\\" + FileName.Name + "\" />内容</a></li>");
- sb.Append("\n <li><img src=\"" + imagesDir + "/" + FileName.Name + "\" /></li>");
- }
- //if (s == 5)
- //{ break; }
- }
- //<li><img src="http://js.fgm.cc/learn/lesson5/img/shirt_1.jpg" /></li>
- // <li><img src="http://js.fgm.cc/learn/lesson5/img/shirt_2.jpg" /></li>
- // <li><img src="http://js.fgm.cc/learn/lesson5/img/shirt_3.jpg" /></li>
- // <li><img src="http://js.fgm.cc/learn/lesson5/img/shirt_4.jpg" /></li>
- sb.Append("\n </ul>");
- sb.Append("\n </div>");
- sb.Append("\n <div id=\"big\"><div></div></div>");
- return sb.ToString();
- }
-
- //图片无缝滚动 面向对象的无缝上下滚动图片特效代码OK
- public string TX27(string imagesDir, int maxfileNumber)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"css/TX27.css\" />");
- sb.Append("\n <script type=\"text/javascript\" src=\"js/TX27.js\"></script>");
- sb.Append("\n <div id=\"box\">");
- sb.Append("\n <span class=\"up\">up</span>");
- sb.Append("\n <span class=\"down\">down</span>");
- sb.Append("\n <div>");
- sb.Append("\n <ul class=\"list\">");
- int s=0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- //sb.Append("\n <li><a href=\"javascript:;\"><img src=\"" + imagesDir + "\\" + FileName.Name + "\" />内容</a></li>");
- sb.Append("\n <li><a href=\"javascript:;\"><img src=\"" + imagesDir + "/" + FileName.Name + "\" />图片" + s.ToString() + "</a></li>");
- }
- //if (s == 5)
- //{ break; }
- }
- //<li><a href="javascript:;"><img src="http://js.alixixi.com/img/201108/1.jpeg" />Ozolio - Webcam Hosting</a></li>
- //<li><a href="javascript:;"><img src="http://js.alixixi.com/img/201108/2.jpeg" />Sullivan Construction Inc.</a></li>
- //<li><a href="javascript:;"><img src="http://js.alixixi.com/img/201108/3.jpeg" />Maui Stables</a></li>
- //<li><a href="javascript:;"><img src="http://js.alixixi.com/img/201108/4.jpeg" />Code Rebel 3.0</a></li>
- //<li><a href="javascript:;"><img src="http://js.alixixi.com/img/201108/5.jpeg" />SecurityPro Shop</a></li>
- sb.Append("\n </ul>");
- sb.Append("\n </div>");
- sb.Append("\n </div>");
- return sb.ToString();
- }
- //百度有啊通栏展示效果OK 自动滚屏,单击图片和序号切换
- public string TX26(string imagesDir, int maxfileNumber)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"css/TX26.css\" />");
- sb.Append("\n <script type=\"text/javascript\" src=\"js/TX26.js\"></script>");
- sb.Append("\n <div id=\"box\">");
- sb.Append("\n <div id=\"container\">");
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- sb.Append("\n <div class=\"item\">");
- sb.Append("\n <div class=\"pic\"> <a href=\"javascript:;\"><img src=\"" + imagesDir + "/" + FileName.Name + "\" /></a> </div>");
- sb.Append("\n <div class=\"txt\">");
- sb.Append("\n <dl>");
- sb.Append("\n <dt><a href=\"javascript:;\">这里是标题!</a></dt>>");
- sb.Append("\n <dd class=\"info\">由广东松山职业技术学院计算机系刘友生设计!</dd>");
- sb.Append("\n <dd class=\"info\">电话:07516502052</dd>");
- sb.Append("\n <dd class=\"info\">Email:ssxylys@163.com</dd>");
- sb.Append("\n </dl>");
- sb.Append("\n <div class=\"comment\">");
- sb.Append("\n <h3>表格中的标题</h3>");
- sb.Append("\n <div class=\"comment_list\">");
- sb.Append("\n <ul id=\"list\">");
- sb.Append("\n <li><b>标题 :</b>表格中的内容1...</li> <li><b>标题 2...:</b>表格中的内容2......</li><li><b>标题3...:</b>表格中的内容3.....</li> </ul>");
- sb.Append("\n </div> </div> </div> </div>");
- }
- }
- // <div class="item">
- // <div class="pic">
- // <a href="javascript:;"><img src="http://js.fgm.cc/learn/lesson10/img/youa/1.jpg" /></a>
- // </div>
- // <div class="txt">
- // <dl>
- // <dt><a href="javascript:;">必图拳馆</a></dt>
- // <dd class="info">不要把自己困住 你需要释放!</dd>
- // <dd><span>总体评价:</span><div class="star"><div style="width:48px;" class="star_red"></div><div class="star_grey"></div></div></dd>
- // <dd><span>用户印象:</span><span class="pink">过瘾</span><span class="blue">带劲</span><span class="green">有活力</span></dd>
- // </dl>
- // <div class="comment">
- // <h3>用户评价</h3>
- // <div class="comment_list">
- // <ul id="list">
- // <li><b>thaifight:</b>是一个非常好的一个拳...</li>
- // <li><b>快乐小友:</b>散打课的实战机会挺多...</li>
- // <li><b>爱情赛车:</b>白天人很少,喜欢安静...</li>
- // </ul>
- // </div>
- // </div>
- // </div>
- // </div>
- // <div class="item">
- // <div class="pic">
- // <a href="javascript:;"><img src="http://js.fgm.cc/learn/lesson10/img/youa/2.jpg"></a>
- // </div>
- // <div class="txt">
- // <dl>
- // <dt><a href="javascript:;">北京「七田阳光」全脑教育培训中心</a></dt>
- // <dd class="info">点亮孩子智慧人生</dd>
- // <dd><span>总体评价:</span><div class="star"><div style="width:48px;" class="star_red"></div><div class="star_grey"></div></div></dd>
- // <dd><span>用户印象:</span><span class="pink">亲切</span><span class="blue">耐心</span><span class="green">干净</span></dd>
- // </dl>
- // <div class="comment">
- // <h3>用户评价</h3>
- // <div class="comment_list">
- // <ul id="list">
- // <li><b>Jcenter:</b>如此诚恳的教育机构 ...</li>
- // <li><b>citaslin:</b>孩子的进步很大</li>
- // <li><b>甲鱼爱媛媛:</b>七田阳光很注重品质,...</li>
- // </ul>
- // </div>
- // </div>
- // </div>
- // </div>
- //<div class="item">
- // <div class="pic">
- // <a href="javascript:;"><img src="http://js.fgm.cc/learn/lesson10/img/youa/3.jpg" /></a>
- // </div>
- // <div class="txt">
- // <dl>
- // <dt><a href="javascript:;">慕纱莹雪婚纱礼服馆</a></dt>
- // <dd class="info">物超所值的性价比,尽在慕纱莹雪!</dd>
- // <dd><span>总体评价:</span><div class="star"><div style="width:62px;" class="star_red"></div><div class="star_grey"></div></div></dd>
- // <dd><span>用户印象:</span><span class="pink">精致</span><span class="blue">做工好</span><span class="green">专业</span></dd>
- // </dl>
- // <div class="comment">
- // <h3>用户评价</h3>
- // <div class="comment_list">
- // <ul id="list">
- // <li><b>小企鹅快跑:</b>这个周末去取了我定的...</li>
- // <li><b>月逢明时:</b>这家婚纱店的婚纱做工...</li>
- // <li><b>日历本丢了:</b>上周末去取了婚纱,婚...</li>
- // </ul>
- // </div>
- // </div>
- // </div>
- // </div>
- // <div class="item">
- // <div class="pic">
- // <a href="javascript:;"><img src="http://js.fgm.cc/learn/lesson10/img/youa/4.jpg"></a>
- // </div>
- // <div class="txt">
- // <dl>
- // <dt><a href="javascript:;">北京金三优装饰有限责任公司</a></dt>
- // <dd class="info">一站式服务让你省时、省力、省钱、省心</dd>
- // <dd><span>总体评价:</span><div class="star"><div style="width:48px;" class="star_red"></div><div class="star_grey"></div></div></dd>
- // <dd><span>用户印象:</span><span class="pink">口碑好</span><span class="blue">规模很大</span><span class="green">讲信誉</span></dd>
- // </dl>
- // <div class="comment">
- // <h3>用户评价</h3>
- // <div class="comment_list">
- // <ul id="list">
- // <li><b>紫婧之梦:</b>这家店不错哦!</li>
- // <li><b>gotometop:</b>装修工都还挺朴实的,...</li>
- // <li><b>libangcheng1:</b>这家公司还可以,去年...</li>
- // </ul>
- // </div>
- // </div>
- // </div>
- // </div>
- // <div class="item">
- // <div class="pic">
- // <a href="javascript:;"><img src="http://js.fgm.cc/learn/lesson10/img/youa/5.jpg"></a>
- // </div>
- // <div class="txt">
- // <dl>
- // <dt><a href="javascript:;">鸿喜族休闲俱乐部—潘家园店</a></dt>
- // <dd class="info">专注人类健康,打造财富传奇!</dd>
- // <dd><span>总体评价:</span><div class="star"><div style="width:48px;" class="star_red"></div><div class="star_grey"></div></div></dd>
- // <dd><span>用户印象:</span><span class="pink">真好</span><span class="blue">专业</span><span class="green">手法好</span></dd>
- // </dl>
- // <div class="comment">
- // <h3>用户评价</h3>
- // <div class="comment_list">
- // <ul id="list">
- // <li><b>永封de铁盒:</b>环境挺不错,灯光控制...</li>
- // <li><b>老冯爱国:</b>不错的地方,是个很有...</li>
- // <li><b>白云寺方丈:</b>我不会打台球,但朋友...</li>
- // </ul>
- // </div>
- // </div>
- // </div>
- // </div>
- // <div class="item">
- // <div class="pic">
- // <a href="javascript:;"><img src="http://js.fgm.cc/learn/lesson10/img/youa/6.jpg"></a>
- // </div>
- // <div class="txt">
- // <dl>
- // <dt><a href="javascript:;">北京心拓城拓展培训</a></dt>
- // <dd class="info">客户第一 执行有力 激情勤奋 简单团结</dd>
- // <dd><span>总体评价:</span><div class="star"><div style="width:48px;" class="star_red"></div><div class="star_grey"></div></div></dd>
- // <dd><span>用户印象:</span><span class="pink">专业</span><span class="blue">安全</span><span class="green">积极</span></dd>
- // </dl>
- // <div class="comment">
- // <h3>用户评价</h3>
- // <div class="comment_list">
- // <ul id="list">
- // <li><b>janice19891:</b>很负责任~</li>
- // <li><b>旺达是条鱼:</b>朋友参加过他们的拓展...</li>
- // <li><b>bjftxiaoniu:</b>吼吼,在这里看到他们...</li>
- // </ul>
- // </div>
- // </div>
- // </div>
- // </div>
- // <div class="item">
- // <div class="pic">
- // <a href="javascript:;"><img src="http://js.fgm.cc/learn/lesson10/img/youa/7.jpg"></a>
- // </div>
- // <div class="txt">
- // <dl>
- // <dt><a href="javascript:;">韩医生专业祛痘连锁机构北京直营店</a></dt>
- // <dd class="info">我们只祛痘 所以更专业</dd>
- // <dd><span>总体评价:</span><div class="star"><div style="width:62px;" class="star_red"></div><div class="star_grey"></div></div></dd>
- // <dd><span>用户印象:</span><span class="pink">效果好</span><span class="blue">细心</span><span class="green">专业</span></dd>
- // </dl>
- // <div class="comment">
- // <h3>用户评价</h3>
- // <div class="comment_list">
- // <ul id="list">
- // <li><b>天涯hehaijiao:</b>这家店很好,顾客很多...</li>
- // <li><b>爱神马geili:</b>我治疗了两天感觉的好...</li>
- // <li><b>天上的语言:</b>这几天已经看到明显效...</li>
- // </ul>
- // </div>
- // </div>
- // </div>
- // </div>
- // <div class="item">
- // <div class="pic">
- // <a href="javascript:;"><img src="http://js.fgm.cc/learn/lesson10/img/youa/8.jpg"></a>
- // </div>
- // <div class="txt">
- // <dl>
- // <dt><a href="javascript:;">罗曼卡婚纱摄影</a></dt>
- // <dd class="info">口碑好 性价比高 无额外消费</dd>
- // <dd><span>总体评价:</span><div class="star"><div style="width:62px;" class="star_red"></div><div class="star_grey"></div></div></dd>
- // <dd><span>用户印象:</span><span class="pink">口碑好</span><span class="blue">很喜欢</span><span class="green">完美</span></dd>
- // </dl>
- // <div class="comment">
- // <h3>用户评价</h3>
- // <div class="comment_list">
- // <ul id="list">
- // <li><b>明确指出i:</b>拍的很不错,老妈都夸...</li>
- // <li><b>爱就一直走吧:</b>他们家服务态度好,衣...</li>
- // <li><b>爱过你me:</b>最后照片拍出来后朋友...</li>
- // </ul>
- // </div>
- // </div>
- // </div>
- // </div>
- sb.Append("\n </div> ");
- sb.Append("\n <div id=\"control\"></div>");
- sb.Append("\n</div>");
- return sb.ToString();
- }
- //JS横向左右切换的焦点图特效 OK扇形分格 纯脚本
- public string TX25(string imagesDir, int pW, int pH)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n <style type=\"text/css\">");
- sb.Append("\n * { padding: 0; margin: 0; }");
- sb.Append("\n li { list-style: none; }");
- sb.Append("\n body { background: #f6f9fc; }");
- sb.Append("\n div { width: 660px; height: 254px; border: 1px solid #ccc; margin: 50px auto 0; overflow:hidden; }");
- sb.Append("\n ul { width: 3300px; height: 254px; }");
- sb.Append("\n ul li { width: 22px; height: 254px; float: left; position: relative; overflow:hidden; }");
- sb.Append("\n .active { width: 550px; }");
- 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; }");
- sb.Append("\n ul img { width: 550px; height: 254px; }");
- sb.Append("\n .bg0 { background: #00FFCC; }");
- sb.Append("\n .bg1 { background: #636363; }");
- sb.Append("\n .bg2 { background: #3d7fbb; }");
- sb.Append("\n .bg3 { background: #5ca716; }");
- sb.Append("\n .bg4 { background: #f28b24; }");
- sb.Append("\n .bg5 { background: #7c0070; }");
- sb.Append("\n </style>");
- sb.Append("\n <script type=\"text/javascript\">");
- sb.Append("\n var g_aLis = [];");
- sb.Append("\n var g_aBtns = [];");
- sb.Append("\n var g_oTimer = null;");
- sb.Append("\n var g_minWidth = 22;");
- sb.Append("\n window.onload = function() {");
- sb.Append("\n var a = document.getElementById('show1');");
- sb.Append("\n var i = 0;");
- sb.Append("\n g_aLis = a.getElementsByTagName('li');");
- sb.Append("\n g_aBtns = a.getElementsByTagName('span');");
- sb.Append("\n for (i = 0; i < g_aBtns.length; i++) {");
- sb.Append("\n g_aBtns[i].index = i;");
- sb.Append("\n g_aBtns[i].onmouseover = function() {");
- sb.Append("\n gotoImg(this.index)");
- sb.Append("\n }");
- sb.Append("\n }");
- sb.Append("\n };");
- sb.Append("\n function gotoImg(a) {");
- sb.Append("\n if (g_oTimer) {");
- sb.Append("\n clearInterval(g_oTimer)");
- sb.Append("\n }");
- sb.Append("\n g_oTimer = setInterval(\"changeWidthInner(\" + a + \")\", 35)");
- sb.Append("\n }");
- sb.Append("\n function changeWidthInner(a) {");
- sb.Append("\n var b = document.getElementById('show1');");
- sb.Append("\n var c = 660;");
- sb.Append("\n var w = 0;");
- sb.Append("\n var d = true;");
- sb.Append("\n var i = 0;");
- sb.Append("\n for (i = 0; i < g_aLis.length; i++) {");
- sb.Append("\n if (i == a) {");
- sb.Append("\n continue");
- sb.Append("\n }");
- sb.Append("\n if (g_minWidth == g_aLis[i].offsetWidth) {");
- sb.Append("\n c -= g_aLis[i].offsetWidth;");
- sb.Append("\n continue");
- sb.Append("\n }");
- sb.Append("\n d = false;");
- sb.Append("\n speed = Math.ceil((g_aLis[i].offsetWidth - g_minWidth) / 10);");
- sb.Append("\n w = g_aLis[i].offsetWidth - speed;");
- sb.Append("\n if (w <= g_minWidth) {");
- sb.Append("\n w = g_minWidth");
- sb.Append("\n }");
- sb.Append("\n g_aLis[i].style.width = w + 'px';");
- sb.Append("\n c -= w");
- sb.Append("\n }");
- sb.Append("\n g_aLis[a].style.width = c + 'px';");
- sb.Append("\n if (d) {");
- sb.Append("\n clearInterval(g_oTimer);");
- sb.Append("\n g_oTimer = null");
- sb.Append("\n }");
- sb.Append("\n }");
- sb.Append("\n </script>");
- sb.Append("\n<ul id=\"show1\">");
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- int t = (s - 1) % 5;
- if (s == 1)
- {
- sb.Append("\n <li class=\"active\"> <span class=\"bg" + t.ToString() + "\">这是第" + s.ToString() + "个</span> <img src=\"" + imagesDir + "/" + FileName.Name + "\"></li>");
- }
- else
- { sb.Append("\n <li> <span class=\"bg" + t.ToString() + "\">这是第" + s.ToString() + "个</span> <img src=\"" + imagesDir + "/" + FileName.Name + "\"></li>"); }
- if (s ==10)
- { break; }
- }
- }
- //<li class="active">
- // <span class="bg0">这是第一个</span>
- // <img src="http://www.alixixi.com/skins/iad1.jpg">
- //</li>
- //<li>
- // <span class="bg1">这是第二个</span>
- // <img src="http://www.alixixi.com/skins/iad2.jpg">
- //</li>
- //<li>
- // <span class="bg2">这是第三个</span>
- // <img src="http://www.alixixi.com/skins/iad3.jpg">
- //</li>
- //<li>
- // <span class="bg3">这是第四个</span>
- // <img src="http://www.alixixi.com/skins/iad4.jpg">
- //</li>
- //<li>
- // <span class="bg4">这是第五个</span>
- // <img src="http://www.alixixi.com/skins/iad5.jpg">
- //</li>
- //<li>
- // <span class="bg5">这是第六个</span>
- // <img src="http://www.alixixi.com/skins/iad6.jpg">
- //</li>
- sb.Append("\n </ul>");
- return sb.ToString();
- }
- //非常酷的3D翻转相册展示特效
- public string TX24(string imagesFilename)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- sb.Append("\n <link type=\"text/css\" rel=\"stylesheet\" href=\"css/TX24.css\" />");
- sb.Append("\n <script type=\"text/javascript\" src=\"js/TX24.js\"></script>");
- sb.Append("\n <div id=\"screen\"></div>");
- sb.Append("\n <div id=\"bankImages\">");
- sb.Append("\n <img alt=\"\" src=\"" + imagesFilename + "\">");
- sb.Append("\n </div>");
- sb.Append("\n <div id=\"FPS\"></div>");
- return sb.ToString();
- }
- //JS十字过度效果焦点图 可以运行,只是FLASH无法显示
- public string TX23(string imagesDir, int pW, int pH)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n <script type=\"text/javascript\">");
- sb.Append("\nvar pic_width=291; //图片宽度");
- sb.Append("\nvar pic_height=200; //图片高度");
- sb.Append("\nvar button_pos=2; //按扭位置 1左 2右 3上 4下");
- sb.Append("\nvar stop_time=5000; //图片停留时间(1000为1秒钟)");
- sb.Append("\nvar show_text=0; //是否显示文字标签 1显示 0不显示");
- sb.Append("\nvar txtcolor=\"0000ff\"; //文字色");
- sb.Append("\nvar bgcolor=\"DDDDDD\"; //背景色");
- //可编辑内容结束
- string sb1 = " pics='";
- string sb2 = " mylinks='";
- string sb3 = " texts='";
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- //sb.Append("\n <li data-images=\"rm_container_" + s.ToString() + "\" data-rotation=\"" + (-25 + s * 10) + "\"><img src=\"" + imagesDir + "\\" + FileName.Name + "\"/></li>");
- sb1 += imagesDir + "/" + FileName.Name + "|";
- sb2 += "#|";
- sb3 += "刘友生|";
- }
- }
- sb.Append("\n" + sb1.ToString() + "'");
- sb.Append("\n" + sb2.ToString() + "'");
- sb.Append("\n" + sb3.ToString() + "'");
- // pics='images/01.jpg|images/02.jpg|images/03.jpg|images/04.jpg|images/05.jpg'
- //mylinks='http://www.lanrentuku.com/|http://www.lanrentuku.com/|http://www.lanrentuku.com/|http://www.lanrentuku.com/|http://www.lanrentuku.com/';
- //texts='沈晓海|翁虹|李伟菘|吴晴|于晓光';
- sb.Append("\n</script>");
- sb.Append("\n<script src=\"js/fun.js\"></script>");
- return sb.ToString();
- }
- //傲游JS焦点图
- public string TX22(string imagesDir, int maxNumber)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n<link type=\"text/css\" rel=\"stylesheet\" href=\"css/style.css\" />");
- sb.Append("\n<script type=\"text/javascript\" src=\"js/lanrenxixi.js\"></script>");
- sb.Append("\n<div id=\"index-splash-block\" class=\"index-splash-block\">");
- sb.Append("\n<div id=\"feature-slide-block\" class=\"feature-slide-block\">");
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- sb.Append("\n <div class=\"feature-slide-preview\" style=\"display: none; \">");
- sb.Append("\n <h3><a href=\"#\">鼠标手势</a></h3>");
- sb.Append("\n <p>提示信息。</p>");
- sb.Append("\n <a href=\"#\" class=\"screenshot\"><img alt=\"\" src=\"" + imagesDir + "/" + FileName.Name + "\" /></a>");
- sb.Append("\n</div>");
- }
- if (s == maxNumber)
- { break; }
- }
- //<div class="feature-slide-preview" style="display: none; ">
- // <h3><a href="#">鼠标手势</a></h3>
- // <p>按住右键滑动鼠标,就能够执行前进、后退和刷新等常用操作。您还可以到设置中心对其进行自定义。</p>
- // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-1.png" /></a>
- //</div>
- //<div class="feature-slide-preview" style="display: none; ">
- // <h3><a href="#">撤销按钮</a></h3>
- // <p>通过撤销按钮可以轻松找回失手关闭的重要网页,点击按钮旁边的下拉箭头还会显示最近关闭的页面列表。</p>
- // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-2.png" /></a>
- //</div>
- //<div class="feature-slide-preview" style="display: none; ">
- // <h3><a href="#">历史搜索</a></h3>
- // <p>通过历史搜索你可以方便的浏览、搜索和清除浏览历史记录、RSS历史记录以及搜索关键字历史记录</p>
- // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-3.png" /></a>
- //</div>
- //<div class="feature-slide-preview" style="display: none; ">
- // <h3><a href="#">分屏浏览</a></h3>
- // <p>将浏览器窗口一分为二,更大发挥宽屏显示器作用;你可以同时浏览两个网站,转载和对照更加方便。</p>
- // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-4.png" /></a>
- //</div>
- //<div class="feature-slide-preview" style="display: none; ">
- // <h3><a href="#">广告过滤</a></h3>
- // <p>有效阻止各种弹窗、恶意网页的骚扰,还支持自定义过滤和免过滤列表。铺天盖地的广告,消失吧!</p>
- // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-5.png" /></a>
- //</div>
- //<div class="feature-slide-preview" style="display: none; ">
- // <h3><a href="#">在线收藏</a></h3>
- // <p>让你随时随地都可以访问自己的私人收藏夹内容。浏览器会在后台自动保存和同步你的在线收藏夹。</p>
- // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-6.png" /></a>
- //</div>
- //<div class="feature-slide-preview" style="display: none; ">
- // <h3><a href="#">收集面板</a></h3>
- // <p>随叫随到的在线版记事本。多标签让管理更加方便,可以随时上传下载,也可以另存为文本文档。</p>
- // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-7.png" /></a>
- //</div>
- //<div class="feature-slide-preview" style="display: none; ">
- // <h3><a href="#">屏幕截图</a></h3>
- // <p>将网页内容保存为多种图片格式,方便存档和分享。无论是全屏、局部还是整个页面截图,都由你决定。</p>
- // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-8.png" /></a>
- //</div>
- //<div class="feature-slide-preview" style="display: none; ">
- // <h3><a href="#">智能填表</a></h3>
- // <p>智能识别表单进行自动填写,网站注册登录一劳永逸。</p>
- // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-9.png" /></a>
- //</div>
- //<div class="feature-slide-preview" style="display: none; ">
- // <h3><a href="#">多重代理</a></h3>
- // <p>通过设置代理规则,你可以通过不同代理服务器访问不同网站,有效提高浏览效率。</p>
- // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-10.png" /></a>
- //</div>
- //<div class="feature-slide-preview" style="display: none; ">
- // <h3><a href="#">扩展插件</a></h3>
- // <p>通过安装各种插件进一步扩展浏览器的功能。您也可以编写插件与全球用户分享。</p>
- // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-11.png" /></a>
- //</div>
- //<div class="feature-slide-preview" style="display: none; ">
- // <h3><a href="#">个性皮肤</a></h3>
- // <p>不同的皮肤使界面呈现不同的风格,美化浏览器,代言你的个性.你还可以制作皮肤与全球用户分享</p>
- // <a href="#" class="screenshot"><img alt="" src="./images/feature-preview-12.png" /></a>
- //</div>
- sb.Append("\n <div id=\"feature-slide-list\" class=\"feature-slide-list\">");
- sb.Append("\n <a href=\"#\" id=\"feature-slide-list-previous\" class=\"feature-slide-list-previous\"></a>");
- sb.Append("\n <div id=\"feature-slide-list-items\" class=\"feature-slide-list-items\">");
- sb.Append("\n </div>");
- sb.Append("\n <a href=\"#\" id=\"feature-slide-list-next\" class=\"feature-slide-list-next\"></a>");
- sb.Append("\n </div>");
- sb.Append("\n </div>");
- sb.Append("\n <script type=\"text/javascript\">");
- sb.Append("\n initFeatureSlide();");
- sb.Append("\n</script>");
- sb.Append("\n</div>");
- return sb.ToString();
- }
- //jQuery网站幻灯片切换效果
- public string TX21(string imagesDir, int maxNumber)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n <link rel=\"stylesheet\" href=\"js/lib.css\" type=\"text/css\" media=\"screen\" charset=\"utf-8\">");
- sb.Append("\n<link rel=\"stylesheet\" href=\"js/jQuery.css\" type=\"text/css\" media=\"screen\" charset=\"utf-8\">");
- sb.Append("\n <script src=\"js/jsapi.js\"></script>");
- sb.Append("\n<script>google.load(\"jquery\", \"1\");</script>");
- sb.Append("\n<!-- jQuery Image Scale Carousel CSS & JS -->");
- sb.Append("\n<script src=\"js/jquery-image-scale-carousel.js\" type=\"text/javascript\" charset=\"utf-8\"></script>");
- sb.Append("\n<script>");
- sb.Append("\n var carousel_images = [");
- //"images/01.jpg",
- //"images/02.jpg",
- //"images/03.jpg",
- //"images/04.jpg",
- //"images/05.jpg",
- //"images/06.jpg",
- //"images/07.jpg"
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- sb.Append("\n " + imagesDir + "/" + FileName.Name + ",");
- }
- if (s == 8)
- { break; }
- }
- sb.Append("\n ];");
- // Example without autoplay
- /*$(window).load(function() {
- $("#photo_container").isc({
- imgArray: carousel_images
- });
- });*/
- // Example with autoplay
- sb.Append("\n $(window).load(function() {");
- sb.Append("\n $(\"#photo_container\").isc({");
- sb.Append("\n imgArray: carousel_images,");
- sb.Append("\n autoplay: true,");
- sb.Append("\n autoplayTimer: 5000 // 5 seconds.");
- sb.Append("\n }); ");
- sb.Append("\n }); ");
- sb.Append("\n</script>");
- sb.Append("\n<div id=\"photo_container\"></div>");
- return sb.ToString();
- }
- //Jquery幻灯片焦点图
- public string TX20(string imagesDir, int maxNumber, int pW, int pH)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(imagesDir);
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n<script src=\"js/T20_1.js\" type=\"text/javascript\"></script>");
- sb.Append("\n<script src=\"js/T20_2.js\" type=\"text/javascript\"></script>");
- sb.Append("\n<script type=\"text/javascript\">");
- //打开页面随机选择 切换方式(方向),怕增大KinSlideshow.js文件 就没把随机切换写到里面。
- //使用时如有需要随机自己写在前面是一样的。而且还可以只固定随机切换哪几种。
- sb.Append("\nvar moveStyle");
- sb.Append("\n var rand =parseInt(Math.random()*4)");
- sb.Append("\n switch(rand){");
- sb.Append("\ncase 0: moveStyle=\"left\" ;break;");
- sb.Append("\ncase 1: moveStyle=\"right\" ;break;");
- sb.Append("\ncase 2: moveStyle=\"down\" ;break;");
- sb.Append("\ncase 3: moveStyle=\"up\" ;break;");
- sb.Append("\n}");
- sb.Append("\n$(function(){");
- sb.Append("\n$(\"#KinSlideshow1\").KinSlideshow({moveStyle:moveStyle});");
- sb.Append("\n})");
- sb.Append("\n</script>");
- sb.Append("\n<style type=\"text/css\">");
- sb.Append("\n #KinSlideshow{ overflow:hidden; width:600px; height:300px;}");
- sb.Append("\n</style>");
- sb.Append("\n<div id=\"KinSlideshow1\" style=\"visibility:hidden;\">");
- //<a href="http://www.lanrentuku.com" target="_blank"><img src="images/1.jpg" alt="这是标题一" width="600" height="300" /></a>
- //<a href="http://www.lanrentuku.com" target="_blank"><img src="images/2.jpg" alt="这是标题二" width="600" height="300" /></a>
- //<a href="http://www.lanrentuku.com" target="_blank"><img src="images/3.jpg" alt="这是标题三" width="600" height="300" /></a>
- //<a href="http://www.lanrentuku.com" target="_blank"><img src="images/4.jpg" alt="这是标题四" width="600" height="300" /></a>
- //<a href="http://www.lanrentuku.com" target="_blank"><img src="images/5.jpg" alt="这是标题五" width="600" height="300" /></a>
- //<a href="http://www.lanrentuku.com" target="_blank"><img src="images/6.jpg" alt="这是标题六" width="600" height="300" /></a>
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- sb.Append("\n<a href=\"mailto:ssxylys@163.com\" target=\"_blank\"><img src=\"" + imagesDir + "\\" + FileName.Name + "\" alt=\"广东刘友生设计,这里可以改为文字标题\" width=\"" + pW.ToString() + "\" height=\"" + pH.ToString() + "\" /></a>");
- }
- if (s == maxNumber)
- { break; }
- }
- sb.Append("\n</div>");
- return sb.ToString();
- }
- //jquery多功能焦点图代码,最好不超过6个图片,超过6个,修改DATA.js或者TX19.js中的信息和内容
- public string TX19(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n <link rel=\"stylesheet\" href=\"css/screen.css\" type=\"text/css\" media=\"screen\" />");
- sb.Append("\n <div style=\"width: 815px; margin: 0 auto 0 auto;\">");
- sb.Append("\n <div id=\"mlb-wrapper\">");
- sb.Append("\n <div id=\"details\" class=\"base\"> ");
- sb.Append("\n <div id=\"photo\" class=\"base\">");
- sb.Append("\n <ul id=\"photos\">");
- //<li><a href="#1"><img src="images/mlb-1.jpg" alt="Caption 1" width="480" height="270" /></a></li>
- //<li><a href="#2"><img src="images/mlb-2.jpg" alt="Caption 2" width="480" height="270" /></a></li>
- //<li><a href="#3"><img src="images/mlb-3.jpg" alt="Caption 3" width="480" height="270" /></a></li>
- //<li><a href="#4"><img src="images/mlb-4.jpg" alt="Caption 4" width="480" height="270" /></a></li>
- //<li><a href="#5"><img src="images/mlb-5.jpg" alt="Caption 5" width="480" height="270" /></a></li>
- //<li><a href="#6"><img src="images/mlb-6.jpg" alt="Caption 6" width="480" height="270" /></a></li>
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- sb.Append("\n <li><a href=\"#" + s.ToString() + "\"><img src=\"" + imagesDir + "/" + FileName.Name + "\" alt=\"刘友生设计 \" width=\"480\" height=\"270\" /></a></li>");
- }
- if (s == 6)
- { break; }
- }
- sb.Append("\n </ul>");
- sb.Append("\n </div><!-- photo ends -->");
- sb.Append("\n <div id=\"hover-box\">");
- sb.Append("\n <div id=\"thumbs\" class=\"base\">");
- sb.Append("\n <ul>");
- //<li><a href="#1" class="highlight"><img src="images/mlb-1-thumb.jpg" alt="Caption 1" width="74" height="41" /><span></span></a></li>
- //<li><a href="#2"><img src="images/mlb-2-thumb.jpg" alt="Caption 2" width="74" height="41" /></a></li>
- //<li><a href="#3"><img src="images/mlb-3-thumb.jpg" alt="Caption 3" width="74" height="41" /></a></li>
- //<li><a href="#4"><img src="images/mlb-4-thumb.jpg" alt="Caption 4" width="74" height="41" /></a></li>
- //<li><a href="#5"><img src="images/mlb-5-thumb.jpg" alt="Caption 5" width="74" height="41" /></a></li>
- //<li><a href="#6"><img src="images/mlb-6-thumb.jpg" alt="Caption 6" width="74" height="41" /></a></li>
- s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- if (s == 1)
- { sb.Append("\n <li><a href=\"#1\" class=\"highlight\"><img src=\"" + imagesDir + "/" + FileName.Name + "\" alt=\"刘友生设计 \" width=\"74\" height=\"41\" /><span></span></a></li>"); }
- else
- { sb.Append("\n <li><a href=\"#" + s.ToString() + "\"><img src=\"" + imagesDir + "\\" + FileName.Name + "\" width=\"74\" height=\"41\" /></a></li>"); }
- }
- if (s == 6)
- { break; }
- }
- sb.Append("\n </ul>");
- sb.Append("\n <p>我们致力网站构件的设计,联系!</p>");
- sb.Append("\n </div><!-- thumbs -->");
- sb.Append("\n <div id=\"navigation\" class=\"base\">");
- sb.Append("\n <a href=\"#\" id=\"prev\" class=\"prev-next\"><span><<</span> prev</a>");
- sb.Append("\n <a href=\"#\" id=\"play-pause\" class=\"play pause\" title=\"请按滚动条\">Play/Pause</a>");
- sb.Append("\n <ul>");
- //<li><a href="#1" class="highlight">Story 1</a></li>
- //<li><a href="#2">Story 2</a></li>
- //<li><a href="#3">Story 3</a></li>
- //<li><a href="#4">Story 4</a></li>
- //<li><a href="#5">Story 5</a></li>
- //<li><a href="#6">Story 6</a></li>
- s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- if (s == 1)
- { sb.Append("\n <li><a href=\"#1\" class=\"highlight\">Story 1</a></li>"); }
- else
- { sb.Append("\n <li><a href=\"#" + s.ToString() + "\">Story" + s.ToString() + "</a></li>"); }
- }
- if (s == 6)
- { break; }
- }
- sb.Append("\n </ul>");
- sb.Append("\n <a href=\"#\" id=\"next\" class=\"prev-next\">next <span>>></span></a>");
- sb.Append("\n </div><!-- navigation -->");
- sb.Append("\n </div><!-- hover box -->");
- sb.Append("\n <div id=\"description\" class=\"base\">");
- sb.Append("\n <p id=\"small-caption\">由刘友生设计.</p>");
- sb.Append("\n <h1 id=\"title\"><a href=\"#\">由刘友生设计</a></h1>");
- sb.Append("\n <p id=\"long-desc\">由刘友生设计");
- sb.Append("\n </p></div><!-- description -->");
- sb.Append("\n </div><!-- base -->");
- sb.Append("\n </div><!-- mlb wrapper -->");
- sb.Append("\n <script type=\"text/javascript\" src=\"js/googleapis.js\"></script>");
- sb.Append("\n <script type=\"text/javascript\" src=\"js/Tx19.js?v=2.0\"></script>");
- sb.Append("\n <script type=\"text/javascript\" src=\"js/general.js?v=2.0\"></script>");
- return sb.ToString();
- }
- //多屏(根据XML文件中确定)带标题Flash+xml焦点图
- public string TX18(string imagesDir)
- {
- CreateXMLFile(HttpContext.Current.Server.MapPath(imagesDir), "xml", 12, "xixi.xml", "<?xml version=\"1.0\" encoding=\"utf-8\"?><data><newsid>", "</newsid></data>", "");
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- sb.Append("\n <script type=\"text/javascript\" src=\"js/TX18.js\"></script>");
- sb.Append("\n <div id=\"flashcontent\" style=\"width:525px; height:238px; font-size:14px; font-weight:700;\"></div>");
- sb.Append("\n <script type=\"text/javascript\">");
- sb.Append("\n var so = new SWFObject(\"swf/homepage1.swf?xmlPath=xml/xixi.xml\", \"sotester\", \"525\", \"238\", \"7\", \"#000000\");");
- sb.Append("\n so.addParam(\"allowFullScreen\", \"true\");");
- sb.Append("\n so.addParam(\"menu\", \"false\");");
- sb.Append("\n so.addParam(\"wmode\", \"transparent\");");
- sb.Append("\n so.write(\"flashcontent\");");
- sb.Append("\n </script>");
- return sb.ToString();
- }
- //缩略图左右滚动OK OK
- public string TX17(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("\n <script src=\"js/jquery-1.4.4.min.js\"></script>");
- sb.Append("\n <script src=\"js/slides.min.jquery.js\"></script>");
- sb.Append("\n <script>");
- sb.Append("\n $(function(){");
- sb.Append("\n $('#products').slides({");
- sb.Append("\n preload: true,");
- sb.Append("\n preloadImage: 'img/loading.gif',");
- sb.Append("\n effect: 'slide, fade',");
- sb.Append("\n crossfade: true,");
- sb.Append("\n slideSpeed: 200,");
- sb.Append("\n fadeSpeed: 500,");
- sb.Append("\n generateNextPrev: true,");
- sb.Append("\n generatePagination: false");
- sb.Append("\n });");
- sb.Append("\n });");
- sb.Append("\n </script>");
- sb.Append("\n <link rel=\"stylesheet\" href=\"css/global.css\">");
- sb.Append("\n <div id=\"container\">");
- sb.Append("\n <div id=\"products_example\">");
- sb.Append("\n <div id=\"products\">");
- string sb1 = "\n <div class=\"slides_container\">";
- string sb2 = "\n <ul class=\"pagination\">";
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- //sb.Append("\n <li data-images=\"rm_container_" + s.ToString() + "\" data-rotation=\"" + (-25 + s * 10) + "\"><img src=\"" + imagesDir + "\\" + FileName.Name + "\"/></li>");
- sb1 += "\n <a href=\"#\" target=\"_blank\"><img src=\"" + imagesDir + "/" + FileName.Name + "\" width=\"366\" alt=\"刘友生设计\"></a>";
- sb2 += "\n <li><a href=\"#\"><img src=\"" + imagesDir + "/" + FileName.Name + "\" width=\"48\" height=\"40\" alt=\"刘友生设计\"></a></li>";
- }
- }
- sb.Append("\n" + sb1.ToString() + "</div>");
- sb.Append("\n" + sb2.ToString() + "</ul>");
- //<div class="slides_container">
- // <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>
- // <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>
- // <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>
- // <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>
- // <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>
- // <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>
- // <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>
- //</div>
- //<ul class="pagination">
- // <li><a href="#"><img src="img/1144953-3-2x.jpg" width="55" alt="1144953 3 2x"></a></li>
- // <li><a href="#"><img src="img/1144953-1-2x.jpg" width="55" alt="1144953 1 2x"></a></li>
- // <li><a href="#"><img src="img/1144953-2-2x.jpg" width="55" alt="1144953 2 2x"></a></li>
- // <li><a href="#"><img src="img/1144953-4-2x.jpg" width="55" alt="1144953 4 2x"></a></li>
- // <li><a href="#"><img src="img/1144953-5-2x.jpg" width="55" alt="1144953 5 2x"></a></li>
- // <li><a href="#"><img src="img/1144953-6-2x.jpg" width="55" alt="1144953 6 2x"></a></li>
- // <li><a href="#"><img src="img/1144953-p-2x.jpg" width="55" alt="1144953 P 2x"></a></li>
- //</ul>
- sb.Append("\n </div>");
- sb.Append("\n </div>");
- return sb.ToString();
- }
- // 自动扇形滚动的焦点图 XX
- public string TX16(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
- {//jquery.mousewheel.js jquery.RotateImageMenu.js jquery.transform-0.9.3.min_.js
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append(" <link rel=\"stylesheet\" type=\"text/css\" href=\"css/TX16.css\" />");
- sb.Append("<link href=\"http://fonts.googleapis.com/css?family=PT+Sans+Narrow\" rel=\"stylesheet\" type=\"text/css\" />");
- sb.Append(" <div class=\"content\">");
- sb.Append("\n <h1>Rotating Image Slider</h1>");
- sb.Append("\n <div class=\"rm_wrapper\">");
- sb.Append("\n <div id=\"rm_container\" class=\"rm_container\">");
- sb.Append("\n <ul>");
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- sb.Append("\n <li data-images=\"rm_container_" + s.ToString() + "\" data-rotation=\"" + (-25 + s * 10) + "\"><img src=\"" + imagesDir + "/" + FileName.Name + "\"/></li>");
- }
- if (s == 4)
- { break; }
- }
- //<li data-images="rm_container_1" data-rotation="-15"><img src="images/1.jpg"/></li>
- //<li data-images="rm_container_2" data-rotation="-5"><img src="images/2.jpg"/></li>
- //<li data-images="rm_container_3" data-rotation="5"><img src="images/3.jpg"/></li>
- //<li data-images="rm_container_4" data-rotation="15"><img src="images/4.jpg"/></li>
- sb.Append("\n </ul>");
- sb.Append("\n <div id=\"rm_mask_left\" class=\"rm_mask_left\"></div>");
- sb.Append("\n <div id=\"rm_mask_right\" class=\"rm_mask_right\"></div>");
- sb.Append("\n <div id=\"rm_corner_left\" class=\"rm_corner_left\"></div>");
- sb.Append("\n<div id=\"rm_corner_right\" class=\"rm_corner_right\"></div>");
- sb.Append("\n<h2>Fashion Explosion 2012</h2>");
- sb.Append("\n <div style=\"display:none;\">");
- s = 0;
- string sb1 = "\n <div id=\"rm_container_1\">";
- string sb2 = "\n <div id=\"rm_container_2\">";
- string sb3 = "\n <div id=\"rm_container_3\">";
- string sb4 = "\n <div id=\"rm_container_4\">";
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- if (s % 4 == 0) { sb1 += ("\n <img src=\"" + imagesDir + "/" + FileName.Name + "\"/>"); }
- if (s % 4 == 1) { sb2 += ("\n <img src=\"" + imagesDir + "/" + FileName.Name + "\"/>"); }
- if (s % 4 == 2) { sb3 += ("\n <img src=\"" + imagesDir + "/" + FileName.Name + "\"/>"); }
- if (s % 4 == 3) { sb4 += ("\n <img src=\"" + imagesDir + "/" + FileName.Name + "\"/>"); }
- }
- }
- sb.Append("\n" + sb1.ToString() + "</div>");
- sb.Append("\n" + sb2.ToString() + "</div>");
- sb.Append("\n" + sb3.ToString() + "</div>");
- sb.Append("\n" + sb4.ToString() + "</div>");
- // <div id=\"rm_container_1\">");
- //<img src="images/1.jpg"/>
- //<img src="images/5.jpg"/>
- //<img src="images/6.jpg"/>
- //<img src="images/7.jpg"/>
- //sb.Append("</div>
- //<div id="rm_container_2">
- // <img src="images/2.jpg"/>
- // <img src="images/8.jpg"/>
- // <img src="images/9.jpg"/>
- // <img src="images/10.jpg"/>
- //</div>
- //<div id="rm_container_3">
- // <img src="images/3.jpg"/>
- // <img src="images/11.jpg"/>
- // <img src="images/12.jpg"/>
- // <img src="images/13.jpg"/>
- //</div>
- //<div id="rm_container_4">
- // <img src="images/4.jpg"/>
- // <img src="images/14.jpg"/>
- // <img src="images/15.jpg"/>
- // <img src="images/16.jpg"/>
- //</div>
- sb.Append("\n </div>");
- sb.Append("\n </div>");
- sb.Append("\n <div class=\"rm_nav\">");
- sb.Append("\n <a id=\"rm_next\" href=\"#\" class=\"rm_next\"></a>");
- sb.Append("\n <a id=\"rm_prev\" href=\"#\" class=\"rm_prev\"></a>");
- sb.Append("\n</div>");
- sb.Append("\n<div class=\"rm_controls\">");
- sb.Append("\n <a id=\"rm_play\" href=\"#\" class=\"rm_play\">Play</a>");
- sb.Append("\n <a id=\"rm_pause\" href=\"#\" class=\"rm_pause\">Pause</a>");
- sb.Append("\n </div>");
- sb.Append("\n </div>");
- sb.Append("\n </div>");
- sb.Append("\n <p align=\"center\"></p>");
- sb.Append("\n<p align=\"center\"></p>");
- return sb.ToString();
- }
- //七屏百叶窗焦点图 OK
- public string TX15(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append(" <LINK rel=stylesheet type=text/css href=\"css/TX15.css\">");
- sb.Append("<SCRIPT type=text/javascript src=\"js/TX15.js\"></SCRIPT>");
- sb.Append(" <DIV id=center>");
- sb.Append("<DIV id=slider>");
- sb.Append(" <DIV id=apDiv1><IMG border=0 alt=\"\" src=\"img/sr.gif\" width=821 height=37></DIV>");
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- sb.Append("<DIV class=slide><A href=\"#\" target=_blank><IMG class=diapo border=0 src=\"" + imagesDir + "/" + FileName.Name + "\"></A><DIV class=text>刘友生图片特效</DIV></DIV>");
- }
- }
- // <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>
- // <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>
- // <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>
- // <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>
- // <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>
- // <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>
- //sb.Append("</DIV></DIV>");
- sb.Append("<SCRIPT type=text/javascript>slider.init();</SCRIPT>");
- return sb.ToString();
- }
- //ebay幻灯片产品展示效果 XX
- public string TX14(string imagesDir)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("<LINK href=\"css/TX14.css\" type=text/css rel=stylesheet>");
- sb.Append("<SCRIPT src=\"js/lanrenxixi.js\" type=text/javascript></SCRIPT>");
- sb.Append("<div id=carousel>");
- sb.Append("<div class=frame>");
- sb.Append("<div class=frames id=stage>");
- 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>");
- int s = 0, t = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- t = s % 5;
- sb.Append("<a href=\"#\" target=\"_blank\"><div class=frame-" + s.ToString() + " id=f" + s.ToString() + " ></div></a>");
- }
- }
- //<a href="http://www.lanrentuku.com/" target="_blank">
- // <div class=frame-2 id=f2 ></div>
- //</a>
- //<a href="http://www.lanrentuku.com/" target="_blank">
- // <div class=frame-3 id=f3 ></div>
- //</a>
- //<a href="http://www.lanrentuku.com/" target="_blank">
- // <div class=frame-4 id=f4 ></div>
- //</a>
- //<a href="http://www.lanrentuku.com/" target="_blank">
- // <div class=frame-5 id=f5 ></div>
- //</a>
- sb.Append("</div>");
- sb.Append("</div>");
- sb.Append("<div class=controls>");
- sb.Append("<div class=\"arrow l-a\" onmouseover=highlightA(this); onclick=prevF(); ");
- sb.Append(" onmouseout=dehighlightA(this);></div>");
- s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- sb.Append("<div class=off id=control" + sb.ToString() + " onmouseover=hover(" + s.ToString() + ") onclick=press(" + s.ToString() + ",false) onmouseout=out(" + s + ")>" + s.ToString() + "</div>");
- }
- }
- //<div class=off id=control1 onmouseover=hover(1) onclick=press(1,false) onmouseout=out(1)>1</div>
- //<div class=off id=control2 onmouseover=hover(2) onclick=press(2,false) onmouseout=out(2)>2</div>
- //<div class=off id=control3 onmouseover=hover(3) onclick=press(3,false) onmouseout=out(3)>3</div>
- //<div class=off id=control4 onmouseover=hover(4) onclick=press(4,false) onmouseout=out(4)>4</div>
- sb.Append(" <div class=\"arrow r-a\" onmouseover=highlightA(this); onclick=nextF(); onmouseout=dehighlightA(this);></div></div>");
- sb.Append("<INPUT id=numFrame type=hidden value=" + s.ToString() + "></INPUT>");
- s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- sb.Append("<a href=\"#\" target=\"_blank\"><INPUT id=images" + s.ToString() + " type=hidden value=" + imagesDir + "/" + FileName.Name + "></INPUT></a>");
- }
- }
- //<a href="http://www.lanrentuku.com/" target="_blank"><INPUT id=images1 type=hidden value=images/01.jpg></INPUT></a>
- //<a href="http://www.lanrentuku.com/" target="_blank"><INPUT id=images2 type=hidden value=images/02.jpg></INPUT> </a>
- //<a href="http://www.lanrentuku.com/" target="_blank"><INPUT id=images3 type=hidden value=images/03.jpg></INPUT> </a>
- //<a href="http://www.lanrentuku.com/" target="_blank"><INPUT id=images4 type=hidden value=images/04.jpg></INPUT> </a>
- sb.Append("</div>");
-
- return sb.ToString();
- }
- //带缩略图上下滚动幻灯片 最好不超过5个图片 OK
- public string TX13(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append(" <LINK rel=Stylesheet type=text/css href=\"css/lrtk.css\">");
- sb.Append("<SCRIPT type=text/javascript src=\"js/index_solid.js\"></SCRIPT>");
- sb.Append(" <DIV id=banner>");
- sb.Append("<DIV id=ifocus>");
- sb.Append("<DIV style=\"OVERFLOW: hidden\" id=ifocus_pic>");
- sb.Append("<DIV style=\"OVERFLOW: hidden; TOP: 0px; LEFT: 0px\" id=ifocus_piclist>");
- sb.Append("<UL><!--大图_start -->");
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- sb.Append("<LI><A href=\"#\" target=_blank><IMG border=0 alt=LYS src=\"" + imagesDir + "/" + FileName.Name + "\"></A> </LI>");
- }
- }
- //<LI><A href="http://www.lanrentuku.com"
- //target=_blank><IMG border=0 alt=多游网 src="images/1.jpg"></A> </LI>
- //<LI><A href="http://www.lanrentuku.com"
- //target=_blank><IMG border=0 alt=多游网 src="images/2.jpg"></A> </LI>
- //<LI><A href="http://www.lanrentuku.com"
- //target=_blank><IMG border=0 alt=多游网 src="images/3.jpg"></A> </LI>
- //<LI><A href="http://www.lanrentuku.com"
- //target=_blank><IMG border=0 alt=多游网 src="images/4.jpg"></A> </LI>
- //<LI><A href="http://www.lanrentuku.com"
- //target=_blank><IMG border=0 alt=多游网 src="images/5.jpg"></A> <!--大图_end --></LI>
- sb.Append("</UL></DIV>");
- sb.Append("<DIV id=ifocus_opdiv></DIV>");
- sb.Append("<DIV id=ifocus_tx><UL><!--小图列表_start -->");
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- sb.Append("<LI class=current>");
- }
- }
- //<LI class=current>
- //<LI class=normal>
- //<LI class=normal>
- //<LI class=normal>
- //<LI class=normal><!--小图列表_end --></LI>
- sb.Append("</UL></DIV>");
- sb.Append("<DIV id=ifocus_btn>");
- sb.Append("<UL><!--小图_start -->");
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- sb.Append("<LI class=current><IMG border=0 width=\"30\" height=\"30\" alt=LYS src=\"" + imagesDir + "\\" + FileName.Name + "\"> </LI>");
- }
- }
- //<LI class=current><IMG border=0 alt=多游网 src="images/1.jpg"> </LI>
- //<LI class=normal><IMG border=0 alt=多游网 src="images/2.jpg"> </LI>
- //<LI class=normal><IMG border=0 alt=多游网 src="images/3.jpg"> </LI>
- //<LI class=normal><IMG border=0 alt=多游网 src="images/4.jpg"> </LI>
- //<LI class=normal><IMG border=0 alt=多游网 src="images/5.jpg"> <!--小图_end --></LI>
- sb.Append("</UL></DIV></DIV></DIV></DIV>");
- return sb.ToString();
- }
- // Flash汽车雨刷样式焦点图 XX
- public string TX12(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append(" <SCRIPT src=\"js/eye.js\" type=text/javascript></SCRIPT>");
- sb.Append(" <DIV id=sasFlashFocus311>");
- 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>");
- sb.Append("<SCRIPT type=text/javascript>");
- sb.Append("<!--");
- //可编辑内容开始(可放置特版中)");
- sb.Append("var pic_width=302; //图片宽度");
- sb.Append("var pic_height=227; //图片高度");
- sb.Append("var button_pos=2; //按扭位置 1左 2右 3上 4下");
- sb.Append("var stop_time=2000; //图片停留时间(1000为1秒钟)");
- sb.Append("var show_text=0; //是否显示文字标签 1显示 0不显示");
- sb.Append("var txtcolor=\"ff0000\"; //文字色");
- sb.Append("var bgcolor=\"DDDDDD\"; //背景色");
- sb.Append("//可编辑内容结束");
- sb.Append("var swf_height=show_text==1?pic_height+20:pic_height;");
- sb.Append("var pics=\"\", mylinks=\"\", texts=\"\";");
- string pics = "pics='";
- string mylinks = "mylinks='";
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- pics = pics + imagesDir + "\\" + FileName.Name + "|";
- mylinks = mylinks + "mailto:ssxylys@163.com|";
- }
- }
- sb.Append(pics + "';");
- sb.Append(mylinks + "';");
- //sb.Append("pics='images/01.jpg|images/02.jpg|images/03.jpg|images/04.jpg|images/05.jpg|images/06.jpg';
- //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/';
- sb.Append("var sohuFlash2 = new sohuFlash(\"swf/17173msw.swf\", \"sasFlashFocus311\", pic_width, swf_height, \"6\");");
- sb.Append("sohuFlash2.addParam(\"quality\", \"high\");");
- sb.Append("sohuFlash2.addParam(\"wmode\", \"opaque\");");
- sb.Append("sohuFlash2.addVariable(\"pics\",pics);");
- sb.Append("sohuFlash2.addVariable(\"links\",mylinks);");
- sb.Append("sohuFlash2.addVariable(\"texts\",texts);");
- sb.Append("sohuFlash2.addVariable(\"pic_width\",pic_width);");
- sb.Append("sohuFlash2.addVariable(\"pic_height\",pic_height);");
- sb.Append("sohuFlash2.addVariable(\"show_text\",show_text);");
- sb.Append("sohuFlash2.addVariable(\"txtcolor\",txtcolor);");
- sb.Append("sohuFlash2.addVariable(\"bgcolor\",bgcolor);");
- sb.Append("sohuFlash2.addVariable(\"button_pos\",button_pos);");
- sb.Append("sohuFlash2.addVariable(\"stop_time\",stop_time);");
- sb.Append("sohuFlash2.write(\"sasFlashFocus311\");");
- sb.Append("//-->");
- sb.Append("</SCRIPT>");
- return sb.ToString();
- }
- //ChinaJoy的Flash四屏焦点图 XX
- public string TX11(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- // string smallpics="", bigpics="", links="", titles="", des="";
- sb.Append("\n <SCRIPT language=JavaScript src=\"js/focusxixi.js\" type=text/javascript></SCRIPT>");
- sb.Append("\n <SCRIPT language=JavaScript type=text/javascript>");
- sb.Append("\n ss = new imgSlides();");
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- sb.Append("\n s = new imgInfo();");
- sb.Append("\n s.smallpic = \"" + imagesDir + "/" + FileName.Name + "\";");
- sb.Append("\n s.bigpic = \"" + imagesDir + "/" + FileName.Name + "\";");
- sb.Append("\n ss.link = \"#\";");
- sb.Append("\n s.title =\"新闻出版总署署长柳斌杰在高峰论坛讲话\";");
- sb.Append("\n ss.add(s);");
- }
- }
- //s = new imgInfo();
- //s.smallpic = "images/s1.jpg";
- //s.bigpic = "images/1.jpg";
- //s.link = "http://www.lanrentuku.com/";
- //s.title = "新闻出版总署署长柳斌杰在高峰论坛讲话";
- //ss.add(s);
- //s = new imgInfo();
- //s.smallpic = "images/s2.jpg";
- //s.bigpic = "images/2.jpg";
- //s.link = "http://www.lanrentuku.com/";
- //s.title = "高峰论坛主题征集";
- //ss.add(s);
- //s = new imgInfo();
- //s.smallpic = "images/s3.jpg";
- //s.bigpic = "images/3.jpg";
- //s.link = "http://www.lanrentuku.com/";
- //s.title = "海外休闲游戏如何立足中国?";
- //ss.add(s);
- //s = new imgInfo();
- //s.smallpic = "images/s4.jpg";
- //s.bigpic = "images/4.jpg";
- //s.link = "http://www.lanrentuku.com/";
- //s.title = "投资新热点";
- //ss.add(s);
- sb.Append("\n </SCRIPT>");
- return sb.ToString();
- }
- //特炫网页效果3 XX
- public string TX10(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append(" <link href=\"css/TX10.css\" rel=\"stylesheet\" type=\"text/css\" />");
- sb.Append("<script type=\"text/javascript\" src=\"js/TX10.js\"></script>");
- sb.Append(" <div id=\"center\">");
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- sb.Append(" <div id=\"slider\">");
- sb.Append(" <div class=\"slide\">");
- sb.Append("<img class=\"diapo\" title=\"此程序此广东松山职业技术学院刘友生设计\" src=\"" + imagesDir + "/" + FileName.Name + "\">");
- sb.Append(" <div class=\"text\">");
- sb.Append(" <span class=\"title\">广东松山职业技术学院刘友生提醒:</span>");
- // sb.Append(" 此处可添加图片提示信息:");
- // sb.Append(" 此处可添加图片提示信息:");
- sb.Append(" </div>");
- sb.Append(" </div>");
- }
- }
- //sb.Append(" <img class="diapo" src="sf10.jpg" alt="">");
- //sb.Append(" <div class="text">");
- //sb.Append(" <span class="title">广东松山职业技术学院刘友生提醒:</span>");
- //sb.Append(" 此处可添加图片提示信息:");
- sb.Append(" </div>");
- sb.Append("</div>");
- sb.Append("<script type=\"text/javascript\">");
- sb.Append("slider.init();");
- sb.Append("</script>");
- return sb.ToString();
- }
- //远近焦点效果
- public string TX9(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("<LINK href=\"css/tx9.css\" type=text/css rel=stylesheet>");
- sb.Append("<SCRIPT src=\"js/tx9.js\" type=text/javascript></SCRIPT>");
- sb.Append("<div style=\"position:absolute;left:50%;top:50%\">");
- sb.Append("<div style=\"position:absolute;width:720px;height:560px;left:-360px;top:-280px;background:#fff\"></div>");
- sb.Append("<div style=\"position:absolute;left:-40px;top:-6px;color:#000;font-family:arial;font-size:0.9em\">Loading...</div>");
- sb.Append("<div id=\"screen\" style=\"position:absolute;width:640px;height:480px;left:-320px;top:-240px;overflow:hidden\"></div>");
- sb.Append("</div>");
- sb.Append("<div id=\"images\" style=\"visibility:hidden\">");
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- sb.Append("<img title=\"此程序此广东松山职业技术学院刘友生设计\" src=\"" + imagesDir + "/" + FileName.Name + "\">");
- }
- }
- //<img title="infinite" src="pil.jpg">
- //<img title="yellow" src="cit.jpg">
- //<img title="earth" src="earth.jpg">
- //<img title="dream" src="draps.jpg">
- //<img title="flowers" src="flo.jpg">
- sb.Append("</div>");
- return sb.ToString();
- }
- //
- //滚动条确定图片位置,倒影放大显示 Flash+JS带缩略图的焦点图OK
- public string TX8(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("<LINK href=\"css/t.css\" type=text/css rel=stylesheet>");
- sb.Append("<SCRIPT src=\"js/t.js\" type=text/javascript></SCRIPT>");
- sb.Append("<div id=\"imageFlow\">");
- sb.Append("<div class=\"top\"></div>");
- sb.Append(" <div class=\"bank\">");
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- sb.Append("<a rel=\"" + imagesDir + "/" + FileName.Name + "\" title=\"此程序此广东松山职业技术学院刘友生设计,email:ssxylys@163.com\" href=\"#\">版权所有不得随便用作商业用途!</a>");
- }
- }
- //<a rel="ct37.jpg" title="Myselves" href="http://www.design-studio.cn/">My identity lies in not knowing who I am</a>
- //<a rel="ct60.jpg" title="Discoveries" href="http://www.design-studio.cn/">...are made by not following instructions</a>
- //<a rel="sf53.jpg" title="Nothing" href="http://www.design-studio.cn/">...can come between us</a>
- //<a rel="sf48.jpg" title="New life" href="http://www.design-studio.cn/">Here you come!</a>
- //<a rel="ct81.jpg" title="Optimists" href="http://www.design-studio.cn/">They don't know all the facts yet</a>
- //<a rel="ct134.jpg" title="Empathy" href="http://www.design-studio.cn/">Emotional intimacy</a>
- //<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>
- //<a rel="ct75.jpg" title="System error" href="http://www.design-studio.cn/">Errare Programma Est</a>
- //<a rel="bl201.jpg" title="Nonexistance" href="http://www.design-studio.cn/">There's no such thing</a>
- //<a rel="ct137.jpg" title="Inside" href="http://www.design-studio.cn/">I抦 now trapped, without hope of escape or rescue</a>
- //<a rel="ct65.jpg" title="E-Slaves" href="http://www.design-studio.cn/">The World is flat</a>
- //<a rel="or105.jpg" title="l0v3" href="http://www.design-studio.cn/">1 l0v3 j00 - f0r3v3r</a>
- //<a rel="ct139.jpg" title="T minus zero" href="http://www.design-studio.cn/">111 111 111 x 111 111 111 = 12345678987654321</a>
- //<a rel="ct27.jpg" title="The End" href="http://www.design-studio.cn/">...has not been written yet</a>
- sb.Append(" </div>");
- sb.Append("<div class=\"text\">");
- sb.Append("<div class=\"title\">Loading</div>");
- sb.Append("<div class=\"legend\">Please wait...</div>");
- sb.Append("</div>");
- sb.Append("<div class=\"scrollbar\">");
- sb.Append("<img class=\"track\" src=\"img/sb.gif\" alt=\"\">");
- sb.Append("<img class=\"arrow-left\" src=\"img/sl.gif\" alt=\"\">");
- sb.Append("<img class=\"arrow-right\" src=\"img/sr.gif\" alt=\"\">");
- sb.Append("<img class=\"bar\" src=\"img/sc.gif\" alt=\"\">");
- sb.Append("</div>");
- return sb.ToString();
- }
- //四屏FLASH焦点图 ??
- public string TX7(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("<script src=\"js/swfobject.js\" type=\"text/javascript\"></script>");
- sb.Append("<DIV id=\"swfContent3\"></DIV>");
- sb.Append("<SCRIPT type=\"text/javascript\">");
- sb.Append("\n");
- sb.Append("\n var xmlData=\"<data>");
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- sb.Append("<item img='" + imagesDir + "/" + FileName.Name + "' thumb='" + imagesDir + "/" + FileName.Name + "' title='广东松山刘友生' url='mailto:ssxylys@163.com' target='_blank' />\n");
- }
- }
- // <item img='images/99095.jpg' thumb='images/90561.jpg' title='周杰伦新专辑跨时空穿梭' url='http://www.lanrentuku.com/' target='_blank' />
- // <item img='images/70943.jpg' thumb='images/30104.jpg' title='[专访]金俊浩:外面很温柔,内心很强悍' url='http://www.lanrentuku.com/' target='_blank' />
- // <item img='images/69891.jpg' thumb='images/96314.jpg' title='张惠妹全新热辣写真 热裤秀美腿' url='http://www.lanrentuku.com/' target='_blank' />
- // <item img='images/68985.jpg' thumb='images/23362.jpg' title='郭采洁获封反毒大使 称不碰比基尼' url='http://www.lanrentuku.com/' target='_blank' />
- //sb.Append("\</data>");
- sb.Append("\n var flashvars = {xmlData:xmlData};");
- sb.Append("\n var params = {menu:false};");
- sb.Append("\n var attributes = {};");
- sb.Append("\n swfobject.embedSWF(\"" + "swf/lanrentuku.swf" + "\", \"swfContent3\", \"300\", \"400\", \"9\",\"\", flashvars, params, attributes);");
- sb.Append("\n </SCRIPT>");
- return sb.ToString();
- }
- //4屏平滑滚动幻灯片效果
- public string TX6(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append(" <LINK href=\"css/base.css\" type=text/css rel=stylesheet>");
- sb.Append(" <SCRIPT language=javascript type=text/javascript>");
- sb.Append(" var thumbCount =" + GetFilesnumber(HttpContext.Current.Server.MapPath(imagesDir)) + ";");
- int s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- s = s + 1;
- if (s == 1)
- { sb.Append(" document.getElementById('zoom').style.left = -514 + 'px';"); }
- else
- { sb.Append(" document.getElementById(\"zoom" + s.ToString() + "\").style.visibility = \"hidden\";"); }
- }
- }
- //sb.Append(" document.getElementById('zoom').style.left = -514 + 'px';");
- //sb.Append(" document.getElementById(\"zoom1\").style.visibility = \"hidden\";");
- //sb.Append(" document.getElementById(\"zoom2\").style.visibility = \"hidden\";");
- //sb.Append(" document.getElementById(\"zoom3\").style.visibility = \"hidden\";");
- sb.Append(" </SCRIPT>");
- sb.Append(" <SCRIPT src=\"js/base.js\" type=text/javascript></SCRIPT>");
- sb.Append(" <DIV id=fbMaster>");
- sb.Append(" <DL id=content>");
- sb.Append(" <DT><STRONG><SPAN id=zoom>");
- s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- sb.Append(" <IMG id=zoom0 height=432 src=\"" + imagesDir + "/" + FileName.Name + "\" width=514>");
- }
- }
- //sb.Append(" <IMG id=zoom0 height=432 src=\"images/buttom_0.jpg\" width=514>");
- //sb.Append(" <IMG id=zoom1 height=432 src=\"images/buttom_1.jpg\" width=514>");
- //sb.Append(" <IMG id=zoom2 height=432 src=\"images/buttom_2.jpg\" width=514>");
- //sb.Append(" <IMG id=zoom3 height=432 src=\"images/buttom_3.jpg\" width=514>");
- sb.Append(" </SPAN> </STRONG></DT>");
- s = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- sb.Append(" <DD><A title=\"懒人图库\"><IMG id=thumb0 height=40 alt=\"\" src=\"" + imagesDir + "/" + FileName.Name + "\" width=36></A></DD>");
- }
- }
- //sb.Append(" <DD><A title=\"懒人图库\"><IMG id=thumb0 height=106 alt=\"\" src=\"images/buttom_0.jpg\" width=106></A></DD>");
- //sb.Append(" <DD><A title=\"懒人图库\"><IMG id=thumb1 height=106 alt=\"\" src=\"images/buttom_1.jpg\" width=106></A></DD>");
- //sb.Append(" <DD><A title=\"懒人图库\"><IMG id=thumb2 height=106 alt=\"\" src=\"images/buttom_2.jpg\" width=106></A></DD>");
- //sb.Append(" <DD class=last><A title=\"懒人图库\"><IMG id=thumb3 height=106 alt=\"\" src=\"images/buttom_3.jpg\" width=106></A></DD>");
- //sb.Append(" </DL>");
- sb.Append(" </DIV>");
- return sb.ToString();
- }
- //FLASH 3D BANNER展示 XX
- public string TX5(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("<script src=\"js/AC_RunActiveContent.js\" type=\"text/javascript\"></script>");
- sb.Append("\n <script type=text/javascript>");
- sb.Append("\n var varText = \"\"");
- sb.Append("\n function addInfo(title,photourl,sphotourl){");
- sb.Append("\n if(varText!=\"\"){");
- sb.Append("\n varText+=\"|||\";");
- sb.Append("\n }");
- sb.Append("\n varText+=title+\"|_|\"+photourl+\"|_|\"+sphotourl;");
- sb.Append("\n }");
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- //HttpContext.Current.Response.Write(FileName.Name + "<BR>");
- sb.Append("\n addInfo(\"\",\"" + imagesDir + "/" + FileName.Name + "\",\"" + imagesDir + "/" + FileName.Name + "\");");
- }
- }
- //sb.Append("addInfo("","images/1.jpg","images/spic1.jpg");");
- //sb.Append("addInfo("","images/2.jpg","images/spic2.jpg");");
- //sb.Append("addInfo("","images/3.jpg","images/spic3.jpg");");
- //
- 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\">')");
- sb.Append("\n document.write('<param name=\"allowScriptAccess\" value=\"sameDomain\" />')");
- sb.Append("\n document.write('<param name=\"movie\" value=\"swf/main.swf?info='+varText+'\" />')");
- sb.Append("\n document.write('<param name=\"quality\" value=\"high\" />')");
- sb.Append("\n document.write('<param name=\"bgcolor\" value=\"#ffffff\" /><param name=\"wmode\" value=\"transparent\" />')");
- 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\" />')");
- sb.Append("\n document.write('</object>')");
- sb.Append("\n </script>");
- return sb.ToString();
- }
- //jQuery图片切换代码 OK
- public string TXjQuery1(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("<script type=\"text/javascript\" src=\"" + jsFilename1 + "\"></script>");
- sb.Append("<script type=\"text/javascript\" src=\"" + sliderjsFilename + "\"></script>");
- //sb.Append("<link href=\"css/common.css\" rel=\"stylesheet\" type=\"text/css\" />");
- sb.Append("<link href=\"css/index.css\" rel=\"stylesheet\" type=\"text/css\" />"); //在CSS中改高度和宽度
- sb.Append("<div class=\"content_right\">");
- sb.Append("<div class=\"ad\" >");
- sb.Append("<ul class=\"slider\" >");
- int k = 0;
- int i = 0;
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- k = k + 1;
- //HttpContext.Current.Response.Write(FileName.Name + "<BR>");
- sb.Append("<li><a href=\"#\"><img src=\"" + imagesDir + "/" + FileName.Name + "\"/></a></li>");
- }
- }
- //sb.Append("<li><a href="#"><img src="images/buttom_0.jpg"/></a></li>");
- //sb.Append("<li><a href="#"><img src="images/buttom_1.jpg"/></a></li>");
- //sb.Append("<li><a href="#"><img src="images/buttom_2.jpg"/></a></li>");
- //sb.Append("<li><a href="3"><img src="images/buttom_3.jpg"/></a></li>");
- sb.Append("</ul>");
- sb.Append("<ul class=\"num\" >");
- for (i = 1; i <= k; i++)
- {
- sb.Append("<li>" + i.ToString() + "</li>");
- }
- //sb.Append("<li>1</li>");
- //sb.Append("<li>2</li>");
- //sb.Append("<li>3</li>");
- //sb.Append("<li>4</li>");
- sb.Append("</ul>");
- sb.Append("</div>");
- sb.Append("</div>");
- return sb.ToString();
- }
- //标签焦点图特效 ??
- public string TX2(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(imagesDir);
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("<link rel=\"stylesheet\" type=\"text/css\" href=\"css/slide.css\" />");
- sb.Append("<script type=\"text/javascript\" src=\"js/jquery-1.2.6.pack.js\"></script>");
- sb.Append("<script type=\"text/javascript\" src=\"js/g.base.js\"></script>");
- sb.Append("<div id=\"slide\"></div>");
- sb.Append("<script type=\"text/javascript\">");
- sb.Append("$(\"#slide\").jdSlide({width:528,height:200,pics:[");
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- sb.Append("{src:\"images/" + FileName.Name + "\",href:\"#\",alt:\"\",breviary:\"#\",type:\"img\"},");
- }
- }
- //{src:"photo/LNXOZl.jpg",href:"#",alt:"",breviary:"#",type:"img"},
- //{src:"photo/wKwQcK.jpg",href:"#",alt:"",breviary:"#",type:"img"},
- //{src:"photo/hbEXBD.jpg",href:"#",alt:"",breviary:"#",type:"img"},
- //{src:"photo/fbKWmg.jpg",href:"#",alt:"",breviary:"#",type:"img"},
- sb.Append("]})</script>");
- return sb.ToString();
- }
- //有过度效果的jquery焦点图 OK
- public string TX3(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append("<link rel=\"stylesheet\" href=\"css/nivo-slider.css\" type=\"text/css\" media=\"screen\" />");
- sb.Append("<link rel=\"stylesheet\" href=\"css/style.css\" type=\"text/css\" media=\"screen\" />");
- sb.Append("<div id=\"wrapper\">");
- sb.Append("<div id=\"slider-wrapper\">");
- sb.Append("<div id=\"slider\" class=\"nivoSlider\">");
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- sb.Append(" <a href=\"mailto:ssxylys@163.com/\" target=\"_blank\"><img src=\"" + imagesDir + "/" + FileName.Name + "\" alt=\"\" title=\"刘友生\" /></a>");
- }
- }
- //<a href="http://www.lanrentuku.com/" target="_blank"><img src="images/toystory.jpg" alt="" /></a>
- //<a href="http://lanrentuku.com/" target="_blank"><img src="images/up.jpg" alt="" title="This is an example of a caption" /></a>
- //<a href="http://nifengla.com/" target="_blank"><img src="images/walle.jpg" alt="" /></a>
- //<a href="http://maitianquan.com/" target="_blank"><img src="images/nemo.jpg" alt="" title="#htmlcaption" /></a>
- sb.Append(" </div>");
- sb.Append(" <div id=\"htmlcaption\" class=\"nivo-html-caption\">");
- sb.Append(" <strong>This</strong> is an example of a <em>HTML</em> caption with <a href=\"#\">a link</a>.");
- sb.Append("</div> </div> </div>");
- sb.Append("<script type=\"text/javascript\" src=\"js/jquery-1.4.3.min.js\"></script>");
- sb.Append("<script type=\"text/javascript\" src=\"js/jquery.nivo.slider.pack.js\"></script>");
- sb.Append("<script type=\"text/javascript\">");
- sb.Append(" $(window).load(function() {");
- sb.Append(" $('#slider').nivoSlider();");
- sb.Append(" });");
- sb.Append("</script>");
- return sb.ToString();
- }
- //左右切换幻灯片 XX
- public string TX4(string imagesDir, string jsFilename1, string sliderjsFilename, string cssFilename)
- {
- System.Text.StringBuilder sb = new System.Text.StringBuilder();
- DirectoryInfo UnPostil = new DirectoryInfo(HttpContext.Current.Server.MapPath(imagesDir));
- FileInfo[] ArrUnPostil = UnPostil.GetFiles();
- sb.Append(" <link rel=\"stylesheet\" href=\"css/flexslider.css\" type=\"text/css\" media=\"screen\" />");
- sb.Append("<script src=\"js/jquery.min.js\"></script>");
- sb.Append("<script src=\"js/jquery.flexslider-min.js\"></script>");
- sb.Append(" <link rel=\"stylesheet\" href=\"css/demo.css\" type=\"text/css\" media=\"screen\" />");
- sb.Append(" <script type=\"text/javascript\">");
- sb.Append("$(window).load(function() {");
- sb.Append(" $('.flexslider').flexslider();");
- sb.Append(" });");
- sb.Append("</script>");
- sb.Append("<div id=\"container\">");
- sb.Append("<div class=\"flexslider\">");
- sb.Append(" <ul class=\"slides\">");
- //sb.Append(" <li>");
- foreach (FileInfo FileName in ArrUnPostil)
- {
- if (FileName.Length > 0)
- {
- sb.Append(" <li> <img src=\"" + imagesDir + "/" + FileName.Name + "\" /><span>广东松山职业技术学院刘友生设计</span></li>");
- }
- }
- // <img src="demo-stuff/inacup_samoa.jpg" />");
- // <p class="flex-caption">Captions and cupcakes. Winning combination.</p>
- //</li>
- //<li>
- // <a href="#"><img src="demo-stuff/inacup_pumpkin.jpg" /></a>
- // <p class="flex-caption">This image is wrapped in a link!</p>
- //</li>
- //<li>
- // <img src="demo-stuff/inacup_donut.jpg" />
- //</li>
- //<li>");
- // <img src="demo-stuff/inacup_vanilla.jpg" />");
- //</li>");
- sb.Append(" </ul>");
- sb.Append(" </div></div>");
- sb.Append(" <script type=\"text/javascript\">");
- sb.Append("var gaJsHost = ((\"https:\" == document.location.protocol) ? \"https://ssl.\" : \"http://www.\");");
- sb.Append("document.write(unescape(\"%3Cscript src='\" + gaJsHost + \"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E\"));");
- sb.Append("</script>");
- sb.Append("<script type=\"text/javascript\">");
- sb.Append("try {");
- sb.Append("var pageTracker = _gat._getTracker(\"UA-9747705-2\");");
- sb.Append("pageTracker._trackPageview();");
- sb.Append("} catch(err) {}");
- sb.Append("</script>");
- return sb.ToString();
- }
- }
|