using System; using System.IO; using System.Text; using System.Collections.Generic; using System.Linq; using System.Web; /// ///MyPicture 的摘要说明 /// 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(""); } 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 + "
"); } sr.Close(); } return sb.ToString(); } //一行一行读文本文件的内容 public string LineReadTxtFile(string Txt_filename) { StringBuilder sb = new StringBuilder(); if (!File.Exists(Txt_filename)) { HttpContext.Current.Response.Write(""); } 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 + "
"); } sr.Close(); } return sb.ToString(); } /// /// 自定义截取字符串方法 /// /// 原始字符串 /// 起始位 /// 截取字节长度 /// 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 + "
"); } } 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(""); sr.WriteLine("\n "); sr.WriteLine("\n "); sr.WriteLine("\n 刘友生设计图片特效"); sr.WriteLine("\n "); sr.WriteLine(keycode); sr.WriteLine("\n "); sr.Close(); } //+ imagesDir + "\\" + FileName.Name + // sb.Append("\n "); //sb.Append("\n "); /// ///根据图片文件夹,自动生成播放表列XML文件 /// /// 图片所在目录 /// XML文件存放目录 /// 最多播放表列文件列表数 /// 播放表列XML文件名 /// XML文件第一行代码 /// XML文件最后一行代码 /// 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 "); sr.WriteLine("\n "); //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 "); sb.Append("\n
"); sb.Append("\n

Doorle Photo"); sb.Append("\n
"); sb.Append("\n
"); } if (s == maxfileNumber) { break; } } //
  • photo1 //photo1 //www.alixixi.com //
  • photo2 //photo2 //www.alixixi.com //
  • photo3 //photo3 //www.alixixi.com //
  • photo4 //photo4 //www.alixixi.com //
  • photo5 //photo5 //www.alixixi.com //
  • photo6 //photo6 //www.alixixi.com //
  • photo1 //photo1 //www.alixixi.com //
  • photo2 //photo2 //www.alixixi.com sb.Append("\n
  • "); 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 "); sb.Append("\n "); sb.Append("\n
    "); sb.Append("\n
    "); int s = 0; foreach (FileInfo FileName in ArrUnPostil) { if (FileName.Length > 0) { s = s + 1; sb.Append("\n
    "); sb.Append("\n \"广东松山职业技术学院计算机系刘友生设计\""); sb.Append("\n
    "); sb.Append("\n
    "); } if (s == maxfileNumber) { break; } } //
    // //
    站长特效网,专注于网页特效及广告代码,供站长和js爱好者参考。
    //
    //
    // //
    zzjs.net,打造国内最帅的网页特效站。
    //
    //
    // //
    觉得不错就收藏本站吧。
    //
    //
    // //
    也可以推荐给你的朋友。
    //
    //
    // //
    zzjs.net站长zz,js特效,.net也精彩 //
    //
    //
    // //
    // 站长特效我们追求的不是数量,而是质量。
    //
    //
    // //
    // zzjs.net感谢您的光临,有什么意见或建议欢迎留言。
    //
    //
    // //
    // 站长特效有你更精彩。
    //
    //
    // //
    // zzjs.net打造国内最帅的网页特效站。
    //
    //
    // //
    呵呵这个特效挺酷吧。站长特效网,永不言败
    //
    sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n "); 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 "); sb.Append("\n "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); 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 \"广东松山职业技术学院计算机系刘友生设计\""); } if (s == maxfileNumber) { break; } } sb.Append("\n
    "); sb.Append("\n "); 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 "); sb.Append("\n "); sb.Append("\n
    分别用鼠标移动在图片上,单击、移动、双击看看效果
    "); sb.Append("\n
    "); //站长特效一号图片 //站长特效二号图片 //站长特效三号图片 //站长特效四号图片 //站长特效五号图片 //站长特效六号图片 //站长特效七号图片 //站长特效八号图片 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 \"广东松山职业技术学院计算机系刘友生设计\""); } if (s == maxfileNumber) { break; } } sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n "); 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 "); sb.Append("\n "); sb.Append("\n
    "); sb.Append("\n
    请稍候...
    "); sb.Append("\n
      "); //sb.Append("\n
    • \"图片1来源于网络,版权属于原作者\"
    • "); //sb.Append("\n
    • \"版权属于原作者,图片2来源于网络\"
    • "); //sb.Append("\n
    • \"图片3来源于网络,版权属于原作者\"
    • "); //sb.Append("\n
    • \"版权属于原作者,图片4来源于网络\"
    • "); 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
    • \"广东松山刘友生设计\"
    • "); } if (s == maxfileNumber) { break; } } sb.Append("\n
    "); sb.Append("\n
    "); 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 "); 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
    "); sb.Append("\n
    "); sb.Append("\n "); sb.Append("\n "); sb.Append("\n "); sb.Append("\n "); sb.Append("\n "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n "); 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(); //站长特效网,站长必备的高质量网页特效和广告代码。zzjs.net,站长js特效。
    // sb.Append("\n "); 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 "); sb.Append("\n
    "); sb.Append("\n

    特效网相册系统

    "); sb.Append("\n "); sb.Append("\n
    "); sb.Append("\n "); 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 "); sb.Append("\n "); 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 "); sb.Append("\n "); sb.Append("\n
    "); sb.Append("\n
    "); int s = 0; foreach (FileInfo FileName in ArrUnPostil) { if (FileName.Length > 0) { s = s + 1; //sb.Append("\n
  • 内容
  • "); sb.Append("\n
    "); sb.Append("\n

    图片标题

    "); sb.Append("\n

    图片说明

    "); sb.Append("\n \"\"
    "); } //if (s == 5) //{ break; } } //
    //

    鼠标手势

    //

    按住右键滑动鼠标,就能够执行前进、后退和刷新等常用操作。您还可以到设置中心对其进行自定义。

    // //
    // // // // // // // // // // // sb.Append("\n
    "); sb.Append("\n "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n "); sb.Append("\n
    "); 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 "); sb.Append("\n "); sb.Append("\n
    "); sb.Append("\n
      "); int s = 0; foreach (FileInfo FileName in ArrUnPostil) { if (FileName.Length > 0) { s = s + 1; //sb.Append("\n
    • 内容
    • "); sb.Append("\n
    • "); } //if (s == 5) //{ break; } } //
    • //
    • //
    • //
    • sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); 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 "); sb.Append("\n "); sb.Append("\n
    "); sb.Append("\n up"); sb.Append("\n down"); sb.Append("\n
    "); sb.Append("\n "); sb.Append("\n
    "); sb.Append("\n
    "); 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 "); sb.Append("\n "); sb.Append("\n
    "); sb.Append("\n
    "); foreach (FileInfo FileName in ArrUnPostil) { if (FileName.Length > 0) { sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    这里是标题!
    >"); sb.Append("\n
    由广东松山职业技术学院计算机系刘友生设计!
    "); sb.Append("\n
    电话:07516502052
    "); sb.Append("\n
    Email:ssxylys@163.com
    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n

    表格中的标题

    "); sb.Append("\n
    "); sb.Append("\n
      "); sb.Append("\n
    • 标题 :表格中的内容1...
    • 标题 2...:表格中的内容2......
    • 标题3...:表格中的内容3.....
    "); sb.Append("\n
    "); } } //
    //
    // //
    //
    //
    //
    必图拳馆
    //
    不要把自己困住 你需要释放!
    //
    总体评价:
    //
    用户印象:过瘾带劲有活力
    //
    //
    //

    用户评价

    //
    //
      //
    • thaifight:是一个非常好的一个拳...
    • //
    • 快乐小友:散打课的实战机会挺多...
    • //
    • 爱情赛车:白天人很少,喜欢安静...
    • //
    //
    //
    //
    //
    //
    //
    // //
    //
    //
    //
    北京「七田阳光」全脑教育培训中心
    //
    点亮孩子智慧人生
    //
    总体评价:
    //
    用户印象:亲切耐心干净
    //
    //
    //

    用户评价

    //
    //
      //
    • Jcenter:如此诚恳的教育机构 ...
    • //
    • citaslin:孩子的进步很大
    • //
    • 甲鱼爱媛媛:七田阳光很注重品质,...
    • //
    //
    //
    //
    //
    //
    //
    // //
    //
    //
    //
    慕纱莹雪婚纱礼服馆
    //
    物超所值的性价比,尽在慕纱莹雪!
    //
    总体评价:
    //
    用户印象:精致做工好专业
    //
    //
    //

    用户评价

    //
    //
      //
    • 小企鹅快跑:这个周末去取了我定的...
    • //
    • 月逢明时:这家婚纱店的婚纱做工...
    • //
    • 日历本丢了:上周末去取了婚纱,婚...
    • //
    //
    //
    //
    //
    //
    //
    // //
    //
    //
    //
    北京金三优装饰有限责任公司
    //
    一站式服务让你省时、省力、省钱、省心
    //
    总体评价:
    //
    用户印象:口碑好规模很大讲信誉
    //
    //
    //

    用户评价

    //
    //
      //
    • 紫婧之梦:这家店不错哦!
    • //
    • gotometop:装修工都还挺朴实的,...
    • //
    • libangcheng1:这家公司还可以,去年...
    • //
    //
    //
    //
    //
    //
    //
    // //
    //
    //
    //
    鸿喜族休闲俱乐部—潘家园店
    //
    专注人类健康,打造财富传奇!
    //
    总体评价:
    //
    用户印象:真好专业手法好
    //
    //
    //

    用户评价

    //
    //
      //
    • 永封de铁盒:环境挺不错,灯光控制...
    • //
    • 老冯爱国:不错的地方,是个很有...
    • //
    • 白云寺方丈:我不会打台球,但朋友...
    • //
    //
    //
    //
    //
    //
    //
    // //
    //
    //
    //
    北京心拓城拓展培训
    //
    客户第一 执行有力 激情勤奋 简单团结
    //
    总体评价:
    //
    用户印象:专业安全积极
    //
    //
    //

    用户评价

    //
    //
      //
    • janice19891:很负责任~
    • //
    • 旺达是条鱼:朋友参加过他们的拓展...
    • //
    • bjftxiaoniu:吼吼,在这里看到他们...
    • //
    //
    //
    //
    //
    //
    //
    // //
    //
    //
    //
    韩医生专业祛痘连锁机构北京直营店
    //
    我们只祛痘 所以更专业
    //
    总体评价:
    //
    用户印象:效果好细心专业
    //
    //
    //

    用户评价

    //
    //
      //
    • 天涯hehaijiao:这家店很好,顾客很多...
    • //
    • 爱神马geili:我治疗了两天感觉的好...
    • //
    • 天上的语言:这几天已经看到明显效...
    • //
    //
    //
    //
    //
    //
    //
    // //
    //
    //
    //
    罗曼卡婚纱摄影
    //
    口碑好 性价比高 无额外消费
    //
    总体评价:
    //
    用户印象:口碑好很喜欢完美
    //
    //
    //

    用户评价

    //
    //
      //
    • 明确指出i:拍的很不错,老妈都夸...
    • //
    • 爱就一直走吧:他们家服务态度好,衣...
    • //
    • 爱过你me:最后照片拍出来后朋友...
    • //
    //
    //
    //
    //
    sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); 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 "); sb.Append("\n "); sb.Append("\n"); return sb.ToString(); } //非常酷的3D翻转相册展示特效 public string TX24(string imagesFilename) { System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append("\n "); sb.Append("\n "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n \"\""); sb.Append("\n
    "); sb.Append("\n
    "); 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 "); sb.Append("\n"); 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"); sb.Append("\n"); sb.Append("\n
    "); sb.Append("\n
    "); int s = 0; foreach (FileInfo FileName in ArrUnPostil) { if (FileName.Length > 0) { s = s + 1; sb.Append("\n
    "); sb.Append("\n

    鼠标手势

    "); sb.Append("\n

    提示信息。

    "); sb.Append("\n \"\""); sb.Append("\n
    "); } if (s == maxNumber) { break; } } // // // // // // // // // // // // sb.Append("\n
    "); sb.Append("\n "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n "); sb.Append("\n
    "); 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 "); sb.Append("\n"); sb.Append("\n "); sb.Append("\n"); sb.Append("\n"); sb.Append("\n"); sb.Append("\n"); sb.Append("\n
    "); 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"); sb.Append("\n"); sb.Append("\n"); sb.Append("\n"); sb.Append("\n
    "); //这是标题一 //这是标题二 //这是标题三 //这是标题四 //这是标题五 //这是标题六 int s = 0; foreach (FileInfo FileName in ArrUnPostil) { if (FileName.Length > 0) { s = s + 1; sb.Append("\n\"广东刘友生设计,这里可以改为文字标题\""); } if (s == maxNumber) { break; } } sb.Append("\n
    "); 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 "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
      "); //
    • Caption 1
    • //
    • Caption 2
    • //
    • Caption 3
    • //
    • Caption 4
    • //
    • Caption 5
    • //
    • Caption 6
    • int s = 0; foreach (FileInfo FileName in ArrUnPostil) { if (FileName.Length > 0) { s = s + 1; sb.Append("\n
    • \"刘友生设计
    • "); } if (s == 6) { break; } } sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
      "); //
    • Caption 1
    • //
    • Caption 2
    • //
    • Caption 3
    • //
    • Caption 4
    • //
    • Caption 5
    • //
    • Caption 6
    • s = 0; foreach (FileInfo FileName in ArrUnPostil) { if (FileName.Length > 0) { s = s + 1; if (s == 1) { sb.Append("\n
    • \"刘友生设计
    • "); } else { sb.Append("\n
    • "); } } if (s == 6) { break; } } sb.Append("\n
    "); sb.Append("\n

    我们致力网站构件的设计,联系!

    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n << prev"); sb.Append("\n Play/Pause"); sb.Append("\n "); sb.Append("\n next >>"); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n

    由刘友生设计.

    "); sb.Append("\n

    由刘友生设计

    "); sb.Append("\n

    由刘友生设计"); sb.Append("\n

    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n "); sb.Append("\n "); sb.Append("\n "); return sb.ToString(); } //多屏(根据XML文件中确定)带标题Flash+xml焦点图 public string TX18(string imagesDir) { CreateXMLFile(HttpContext.Current.Server.MapPath(imagesDir), "xml", 12, "xixi.xml", "", "", ""); System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append("\n "); sb.Append("\n
    "); sb.Append("\n "); 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 "); sb.Append("\n "); sb.Append("\n "); sb.Append("\n "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); string sb1 = "\n
    "; string sb2 = "\n
      "; foreach (FileInfo FileName in ArrUnPostil) { if (FileName.Length > 0) { //sb.Append("\n
    • "); sb1 += "\n \"刘友生设计\""; sb2 += "\n
    • \"刘友生设计\"
    • "; } } sb.Append("\n" + sb1.ToString() + "
    "); sb.Append("\n" + sb2.ToString() + ""); //
    // 1144953 3 2x // 1144953 1 2x // 1144953 2 2x // 1144953 4 2x // 1144953 5 2x // 1144953 6 2x // 1144953 P 2x //
    //
      //
    • 1144953 3 2x
    • //
    • 1144953 1 2x
    • //
    • 1144953 2 2x
    • //
    • 1144953 4 2x
    • //
    • 1144953 5 2x
    • //
    • 1144953 6 2x
    • //
    • 1144953 P 2x
    • //
    sb.Append("\n
    "); sb.Append("\n
    "); 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(" "); sb.Append(""); sb.Append("
    "); sb.Append("\n

    Rotating Image Slider

    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
      "); int s = 0; foreach (FileInfo FileName in ArrUnPostil) { if (FileName.Length > 0) { s = s + 1; sb.Append("\n
    • "); } if (s == 4) { break; } } //
    • //
    • //
    • //
    • sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n

    Fashion Explosion 2012

    "); sb.Append("\n
    "); s = 0; string sb1 = "\n
    "; string sb2 = "\n
    "; string sb3 = "\n
    "; string sb4 = "\n
    "; foreach (FileInfo FileName in ArrUnPostil) { if (FileName.Length > 0) { s = s + 1; if (s % 4 == 0) { sb1 += ("\n "); } if (s % 4 == 1) { sb2 += ("\n "); } if (s % 4 == 2) { sb3 += ("\n "); } if (s % 4 == 3) { sb4 += ("\n "); } } } sb.Append("\n" + sb1.ToString() + "
    "); sb.Append("\n" + sb2.ToString() + "
    "); sb.Append("\n" + sb3.ToString() + "
    "); sb.Append("\n" + sb4.ToString() + "
    "); //
    "); // // // // //sb.Append("
    //
    // // // // //
    //
    // // // // //
    //
    // // // // //
    sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n "); sb.Append("\n "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n Play"); sb.Append("\n Pause"); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n
    "); sb.Append("\n

    "); sb.Append("\n

    "); 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(" "); sb.Append(""); sb.Append("
    "); sb.Append("
    "); sb.Append("
    \"\"
    "); foreach (FileInfo FileName in ArrUnPostil) { if (FileName.Length > 0) { sb.Append("
    刘友生图片特效
    "); } } //
    懒人图库
    //
    懒人图库
    //
    懒人图库
    //
    懒人图库
    //
    懒人图库
    //
    懒人图库
    //sb.Append("
    "); sb.Append(""); 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(""); sb.Append(""); sb.Append(""); 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(" "); sb.Append(""); sb.Append(" "); 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(" "); sb.Append("
    "); sb.Append("
    "); sb.Append(""); 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 "); sb.Append("\n "); 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(" "); sb.Append(""); sb.Append("
    "); int s = 0; foreach (FileInfo FileName in ArrUnPostil) { if (FileName.Length > 0) { s = s + 1; sb.Append("
    "); sb.Append("
    "); sb.Append(""); sb.Append("
    "); sb.Append(" 广东松山职业技术学院刘友生提醒:"); // sb.Append(" 此处可添加图片提示信息:"); // sb.Append(" 此处可添加图片提示信息:"); sb.Append("
    "); sb.Append("
    "); } } //sb.Append(" "); //sb.Append("
    "); //sb.Append(" 广东松山职业技术学院刘友生提醒:"); //sb.Append(" 此处可添加图片提示信息:"); sb.Append("
    "); sb.Append("
    "); sb.Append(""); 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(""); sb.Append(""); sb.Append("
    "); sb.Append("
    "); sb.Append("
    Loading...
    "); sb.Append("
    "); sb.Append("
    "); sb.Append("
    "); foreach (FileInfo FileName in ArrUnPostil) { if (FileName.Length > 0) { sb.Append(""); } } // // // // // sb.Append("
    "); 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(""); sb.Append(""); sb.Append("
    "); sb.Append("
    "); sb.Append(" "); sb.Append("
    "); sb.Append("
    Loading
    "); sb.Append("
    Please wait...
    "); sb.Append("
    "); sb.Append("
    "); sb.Append("\"\""); sb.Append("\"\""); sb.Append("\"\""); sb.Append("\"\""); sb.Append("
    "); 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(""); sb.Append("
    "); sb.Append(""); 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(" "); sb.Append(" "); sb.Append(" "); sb.Append("
    "); sb.Append("
    "); sb.Append("
    "); s = 0; foreach (FileInfo FileName in ArrUnPostil) { if (FileName.Length > 0) { sb.Append(" "); } } //sb.Append(" "); //sb.Append(" "); //sb.Append(" "); //sb.Append(" "); sb.Append("
    "); s = 0; foreach (FileInfo FileName in ArrUnPostil) { if (FileName.Length > 0) { sb.Append("
    \"\"
    "); } } //sb.Append("
    \"\"
    "); //sb.Append("
    \"\"
    "); //sb.Append("
    \"\"
    "); //sb.Append("
    \"\"
    "); //sb.Append("
    "); sb.Append("
    "); 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(""); sb.Append("\n "); 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(""); sb.Append(""); //sb.Append(""); sb.Append(""); //在CSS中改高度和宽度 sb.Append("
    "); sb.Append("
    "); sb.Append("
      "); int k = 0; int i = 0; foreach (FileInfo FileName in ArrUnPostil) { if (FileName.Length > 0) { k = k + 1; //HttpContext.Current.Response.Write(FileName.Name + "
      "); sb.Append("
    • "); } } //sb.Append("
    • "); //sb.Append("
    • "); //sb.Append("
    • "); //sb.Append("
    • "); sb.Append("
    "); sb.Append("
      "); for (i = 1; i <= k; i++) { sb.Append("
    • " + i.ToString() + "
    • "); } //sb.Append("
    • 1
    • "); //sb.Append("
    • 2
    • "); //sb.Append("
    • 3
    • "); //sb.Append("
    • 4
    • "); sb.Append("
    "); sb.Append("
    "); sb.Append("
    "); 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(""); sb.Append(""); sb.Append(""); sb.Append("
    "); sb.Append(""); 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(""); sb.Append(""); sb.Append("
    "); sb.Append("
    "); sb.Append("
    "); foreach (FileInfo FileName in ArrUnPostil) { if (FileName.Length > 0) { sb.Append(" \"\""); } } // // // // sb.Append("
    "); sb.Append("
    "); sb.Append(" This is an example of a HTML caption with a link."); sb.Append("
    "); sb.Append(""); sb.Append(""); sb.Append(""); 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(" "); sb.Append(""); sb.Append(""); sb.Append(" "); sb.Append(" "); sb.Append("
    "); sb.Append("
    "); sb.Append("
      "); //sb.Append("
    • "); foreach (FileInfo FileName in ArrUnPostil) { if (FileName.Length > 0) { sb.Append("
    • 广东松山职业技术学院刘友生设计
    • "); } } // "); //

      Captions and cupcakes. Winning combination.

      // //
    • // //

      This image is wrapped in a link!

      //
    • //
    • // //
    • //
    • "); // "); //
    • "); sb.Append("
    "); sb.Append("
    "); sb.Append(" "); sb.Append(""); return sb.ToString(); } }