⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 falsh news.txt

📁 非常好的.net学习经验记录
💻 TXT
字号:
	public void abc()
		{			
			
			XmlDocument doc = new XmlDocument();
			doc.Load(this.MapPath("news.xml"));
			XmlNodeList nodes = doc.SelectSingleNode("news").ChildNodes;
			string pics=null;
			string links=null;
			string texts=null;
			foreach(XmlNode xn in nodes)
			{
				XmlElement xmlele =(XmlElement)xn;
				pics +=xmlele.GetAttribute("pic")+"|";
				links +=xmlele.GetAttribute("url")+"|";
				texts +=xmlele.InnerText+"|";
			}
			pics =pics.Remove(pics.Length-1,1); 
			links =links.Remove(links.Length-1,1); 
			texts =texts.Remove(texts.Length-1,1); 
			int focus_width=255;
			int focus_height=120;
			int text_height=30;
			int swf_height = focus_height+text_height;            	
			System.Text.StringBuilder abc = new System.Text.StringBuilder();
			abc.Append("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='"+ focus_width +"' height='"+ swf_height +"' >");
			abc.Append("<param name='allowScriptAccess' value='sameDomain'><param name='movie' value='images/news.swf'><param name=wmode value=transparent><param name='quality' value='high'>");
			abc.Append("<param name='menu' value='false'><param name=wmode value='opaque'>");
			abc.Append("<param name='FlashVars' value='pics="+pics+"&links="+links+"&texts="+texts+"&borderwidth="+focus_width+"&borderheight="+focus_height+"&textheight="+text_height+"' >");
			abc.Append("<embed src='images/playswf.swf' wmode='opaque' FlashVars='pics="+pics+"&links="+links+"&texts="+texts+"&borderwidth="+focus_width+"&borderheight="+focus_height+"&textheight="+text_height+"' menu='false' bgcolor='#cccccc' quality='high' width='"+ focus_width +"' height='"+ swf_height +"' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
			abc.Append("</object>");			
			Response.Write(abc.ToString().Replace("\'","\""));	

		}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -