分类目录
文章索引模板
MARQUEE html EMBED - 十一月 3, 2009 by yippee

<MARQUEE style=”WIDTH: 380px; HEIGHT: 84px” scrollAmount=2 direction=up height=84><FONTcolor=#ff00ff>
<DIV align=center><FONT face=楷体_GB2312 color=#c709f7 size=4>如何在图片中加入文字?</FONT></DIV>
<DIV align=center><FONT face=楷体_GB2312 color=#c709f7 size=4></FONT><BR></DIV>
<DIV align=center><FONT face=楷体_GB2312 color=#1ae66b size=4>如何在图片中加入文字?</FONT></DIV>
<DIV align=center><FONT face=楷体_GB2312 color=#1ae66b size=4></FONT><BR></DIV>
<DIV align=center><FONT face=楷体_GB2312 color=#ffff00 size=4>如何在图片中加入文字?</FONT></DIV>
<DIV align=center><FONT face=楷体_GB2312 color=#ffff00 size=4></FONT><BR></DIV>
<DIV align=center><FONT face=楷体_GB2312><FONT size=4><FONT color=#ffffff>如何在图片中加入文字?</FONT></FONT></FONT>< /DIV></FONT></MARQUEE></DIV></TD></TR></TBODY></TABLE>


==============================


文字上下滚动代码:<MARQUEE style=”WIDTH: 380px; HEIGHT: 84px” scrollAmount=2 direction=up height=84><FONTcolor=#ff00ff>注:scrollAmount=2   是控制字速,数值越大字速就越快!


<marquee>
<img src=”http://unibbs.unibbs.com/images/upphoto/647253.jpg“>
<img src=”http://unibbs.unibbs.com/images/upphoto/647264.jpg“>
<img src=”http://unibbs.unibbs.com/images/upphoto/647269.jpg“>
<img src=”http://unibbs.unibbs.com/images/upphoto/647247.jpg“>
<img src=”http://unibbs.unibbs.com/images/upphoto/648164.gif“>
<img src=”http://unibbs.unibbs.com/images/upphoto/648169.gif“>
<img src=”http://unibbs.unibbs.com/images/upphoto/648177.gif“>
<img src=”http://unibbs.unibbs.com/images/upphoto/648182.gif“>
<img src=”http://unibbs.unibbs.com/images/upphoto/648186.gif“>
<img src=”http://unibbs.unibbs.com/images/upphoto/648189.gif“>
</marquee>


个性滴播放器:


基本语法:


<EMBED SRC=”音乐文件地址”>


常用属性如下:


src=”your.mid”


设定 midi 档案及路径,可以是相对或绝对。


autostart=true


是否在音乐档下载完之后就自动播放。true 是,false 否 (内定值)。


loop=”true”


是否自动反复播放。LOOP=2 表示重复两次,true 是, false 否。


HIDDEN=”true”


是否完全隐藏控制画面,true 为是,no 为否 (内定)。


STARTTIME=”分:秒”


设定歌曲开始播放的时间。如 STARTTIME=”00:30″ 表示从第30秒处开始播放。


VOLUME=”0-100″


设定音量的大小,数值是0到100之间。内定则为使用系统本身的设定


WIDTH=”整数” 和 HIGH=”整数”


设定控制面板的高度和宽度。(若 HIDDEN=”no”)


ALIGN=”center”


设定控制面板和旁边文字的对齐方式,其值可以是 top、bottom、center、baseline、 left、right、texttop、middle、absmiddle、absbottom


CONTROLS=”smallconsole”


设定控制面板的外观。预设值是 console。


console 一般正常面板   


smallconsole 较小的面板   


playbutton 只显示播放按钮   


pausecutton 只显示暂停按钮   


stopbutton 只显示停止按钮   


volumelever 只显示音量调节按钮


例一:


<EMBED SRC=”midi.mid” autostart=true hidden=true loop=true>


作为背景音乐来播放,隐藏了播放器。


例二:


<EMBED SRC=”midi.mid” loop=true width=145 height=60>


出现控制面板了,你可以控制它的开与关,还可以调节音量的大小。


注明:可用来插入各种多媒体,格式可以是 Midi、Wav、AIFF、AU 等等,Netscape 及 新版的 IE 都支持。


IE中的的背景音乐


代码如下:


<bgsound src=”音乐文件地址” loop=#>


#=循环数


注明:这种背景音乐格式,只有在IE浏览器中才可以听到。一般用来插入wav wma mid mp3等格试的音乐。


在论坛做帖常用格试如下:


一:


<EMBED height=200 src=音乐文件地址 type=audio/x-pn-realaudio-plugin width=200 autostart=”true” controls=”IMAGEWINDOW,ControlPanel,StatusBar” console=”Clip1″></EMBED>


说明:一般用来插入mp3 rm ra ram asf mid 等音乐文件,如果要隐藏播放器,把width和height的数值改成0或者1就可以了。


二:


<bgsound src=”音乐文件地址” loop=3>


说明:一般用来插入wav wma mid mp3等格试的音乐文件。


普通代码播放器和三种有特效的播放器


1、普通无特效播放器


代码如下:


<EMBED src=http://cherry.jazzsky.com/LIU/all_about_you.wma width=300 height=45 type=audio/mpeg loop=”-1″ autostart=”false” volume=”0″></EMBED>


2、黑色播放器


代码如下:


<EMBED style=”FILTER: Xray” src=http://cherry.jazzsky.com/LIU/all_about_you.wma width=300 height=45 type=audio/mpeg loop=”-1″ autostart=”false” volume=”0″></EMBED>


3、灰色播放器


代码如下:


<EMBED style=”FILTER: Gray” src=http://cherry.jazzsky.com/LIU/all_about_you.wma width=300 height=45 type=audio/mpeg loop=”-1″ autostart=”false” volume=”0″></EMBED>


4、叫不出名的播放器


代码如下:


<EMBED style=”FILTER: Invert” src=http://cherry.jazzsky.com/LIU/all_about_you.wma width=300 height=45 type=audio/mpeg loop=”-1″ autostart=”false” volume=”0″></EMBED>


5、加了边框的黑色播放器


代码如下:


<TABLE style=”BORDER-RIGHT: #000000 3px dashed; BORDER-TOP: #000000 3px dashed; BORDER-LEFT: #000000 3px dashed; BORDER-BOTTOM: #000000 3px dashed” cellSpacing=0 cellPadding=0 bgColor=#00000>


<TBODY>


<TR>


<TD>


<TABLE borderColor=#000000 align=center border=1>


<TBODY>


<TR>


<TD>


<P align=center><EMBED style=”FILTER: Xray” src=http://cherry.jazzsky.com/LIU/all_about_you.wma width=300 height=45 type=audio/mpeg loop=”-1″ autostart=”false” volume=”0″></P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>


6、黄色的播放器:


代码如下:


<TABLE style=”BORDER-RIGHT: #808000 4px dotted; BORDER-TOP: #808000 4px dotted; BORDER-LEFT: #808000 4px dotted; BORDER-BOTTOM: #808000 4px dotted” cellSpacing=0 cellPadding=0 align=center bgColor=#808000> <TBODY> <TR> <TD> <TABLE borderColor=#808000 align=center bgColor=#808000 border=2> <TBODY> <TR> <TD style=”FILTER: alpha(opacity=100,style=3)”> <P align=center><EMBED src=http://upload.topchinesenews.com/play.aspx?id=1338.asx width=300 height=40 type=audio/mpeg volume=”0″ autostart=”true” loop=”-1″></P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>


7、蓝色的播放器:


代码如下:


<TABLE style=”BORDER-RIGHT: #0000ff 3px dashed; BORDER-TOP: #0000ff 3px dashed” cellSpacing=0 cellPadding=0 bgColor=#0000ff>


<TBODY>


<TR>


<TD>


<TABLE borderColor=#0000ff align=center border=1>


<TBODY>


<TR>


<TD>


<P align=center><EMBED style=”FILTER: Xray” src=http://cherry.jazzsky.com/LIU/all_about_you.wma width=300 height=45 type=audio/mpeg volume=”0″ autostart=”false” loop=”-1″></P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>


8、粉色加了花边的播放器:


代码如下:


<TABLE style=”BORDER-RIGHT: green 3px dotted; BORDER-TOP: green 3px dotted; BORDER-LEFT: green 3px dotted; BORDER-BOTTOM: green 3px dotted” cellSpacing=0 cellPadding=0 bgColor=white background=http://life.huash.com/img/2002-12/30/1228lyhx9.jpg>


<TBODY>


<TR>


<TD>


<TABLE style=”BORDER-RIGHT: #ff69b4 3px dashed; BORDER-TOP: #ff69b4 3px dashed; BORDER-LEFT: #ff69b4 3px dashed; BORDER-BOTTOM: #ff69b4 3px dashed” cellSpacing=0 cellPadding=0 bgColor=white>


<TBODY>


<TR>


<TD>


<TABLE style=”BORDER-RIGHT: #ff69b4 3px dotted; BORDER-TOP: #ff69b4 3px dotted; BORDER-LEFT: #ff69b4 3px dotted; BORDER-BOTTOM: #ff69b4 3px dotted” cellSpacing=2 cellPadding=0 bgColor=white>


<TBODY>


<TR>


<TD>


<TABLE borderColor=#ff69b4 align=center bgColor=#ffccf5 border=2>


<TBODY>


<TR>


<TD style=”FILTER: alpha(opacity=100,style=3)”>


<P align=center><EMBED src=http://cherry.jazzsky.com/LIU/all_about_you.wma width=300 height=45 type=audio/mpeg loop=”-1″ autostart=”false” volume=”0″></P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></FONT>


9、红色的播放器:


代码如下:


<TABLE style=”BORDER-RIGHT: #ff0033 6px dashed; BORDER-TOP: #ff0033 6px dashed; BORDER-LEFT: #ff0033 6px dashed; BORDER-BOTTOM: #ff0033 6px dashed” cellSpacing=0 cellPadding=0 bgColor=white>


<TBODY>


<TR>


<TD>


<TABLE borderColor=#ff224e align=center bgColor=#ff4469 border=2>


<TBODY>


<TR>


<TD style=”FILTER: alpha(opacity=100,style=3)”>


<P align=center><EMBED src=http://cherry.jazzsky.com/LIU/all_about_you.wma width=300 height=45 type=audio/mpeg loop=”-1″ autostart=”false” volume=”0″></P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>


注:颜色 #ff99ff 齿大小 6px 可任意调节


10、加了前景图片的播放器:


代码如下:


<TABLE borderColor=#4f3256 align=center background=http://www.dabaoku.com/sucai/shejilei/bj/pic/0197.jpg border=1> <TBODY> <TR> <TD style=”FILTER: alpha(opacity=50,style=3)”> <P align=center><EMBED src=http://………wma width=300 height=45 type=audio/mpeg loop=”-1″ autostart=”1″ volume=”0″></P></TD></TR></TBODY></TABLE>


注明:以上红色部分为音乐地址,把地址更换成自己喜欢滴歌就成了!


因这么多滴播放器,我把所有音乐


都定值为autostart=”false”即不是自动播放,若想改为自动播放把”false”改为:”true”就可以了.


11:从左至右


<marquee width=”157″ height=”21″>这里输入文字</MARQUEE>


12:请在此输入背景音乐或声音描述


<bgsound balance=”0″ src=”http://vip.sayosay.com/juanyu/%E7%9B%B8%E6%80%9D%E5%80%BA.wma” volume=”0″> <p align=”center”>请在此输入背景音乐或声音描述!</p>


13:如何加图片


<table width=100% background=加网址.jpg图片><td><marquee direction=up scrollAmount=1><FONT style=”FILTER:glow(color=a52a2a]]); WIDTH:100%” face=华文行楷 color=ffffff size=6><center> 加字 <BR> 加字 <BR> 加字 <BR><font color=0080FF size=4 face=宋体></marquee><center>

标签:, ,
wpf内嵌资源 - 九月 7, 2009 by yippee

做个模拟时钟,搞了几个图片,然后不想放在外部,想内嵌,结果发现一个内嵌,不知道微软为什么搞那么多东东。

项目属性里面有个资源;然后文件属性有个编译选项,并且选择项还不少。

Resources in Windows Presentation Foundation applications
http://nerddawg.blogspot.com/2005/11/resources-in-windows-presentation.html


wpf/silverlight文章推荐阅读 – Clingingboy – 博客园
http://www.cnblogs.com/Clingingboy/archive/2008/06/25/1230047.html



WPF应用程序使用资源及多语言设置学习-2 – 一直半解 – 博客园
http://www.cnblogs.com/xwing/archive/2009/05/31/1493256.html



嵌入式资源 – Q.yuhen
http://www.rainsts.net/article.asp?id=98
直接使用 Assembly.GetManifestResourceStream方法来读取资源数据流。其中资源名为


Namespace + FolderName + Filename
Stream strm = Assembly.GetExecutingAssembly().GetManifestResourceStream(“MyNameSpace.Images.logo.bmp”);
Image image = new Bitmap(strm);
pictureBox1.Image = image;


Resource – 技术文章 – 梦路论坛 silverlight 3| silverlight 3源代码| silverlight 游戏 | – Powered by Discuz!
http://www.wakeway.com/thread-2-1-1.html



Silverlight常见问题答疑1 —- Silverlight如何定位图片 – 春夏秋冬 – 博客园
http://www.cnblogs.com/nineflowers/archive/2009/05/24/1488527.html



[100分] 问关于uri使用某个dll image 资源的问题?急,在线等…..分不够可以再加多少都可以
http://topic.csdn.net/u/20070906/15/a01619d6-f595-4fd8-ae3d-d77e9f1121c5.html
我在一个dll(类ImageControl)中添加了一个on.gif的资源,然后在application对其进行引用。下面是一个按钮的click事件:


private void button1_Click(object sender, RoutedEventArgs e)
{
  image1.Source = new BitmapImage(new Uri(“Pack://application:,,,/ImageControl;component/on.gif”));
}


最初我也各楼主一样只写了new Uri(“/ImageControl;component/on.gif”),运行时报错说找不到资源,但后来经过查找在前面加上了Pack://application:,,,后就可以了。



relative filepath for BitmapImage UriSource in Feb CTP
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/856f77cc-d4bb-463e-b9aa-f293804e9325



image uri source
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/faa43454-ee54-46ab-ad01-64e8897b8f7b



Writing Custom GPU-based Effects for WPF – WindowsClient.net
http://windowsclient.net/wpf/wpf35/wpf-35sp1-custom-gpu-effects.aspx



Loading an image from inside a WPF dll from control code — Windows Live
http://rrelyea.spaces.live.com/blog/cns!167AD7A5AB58D5FE!1612.entry



WPF学习之资源-Resources – Memory – 博客园
http://www.cnblogs.com/Memory/archive/2008/12/11/1352887.html



闲话WPF之十六(WPF中的资源 [2]) – C++ .NET WPF Android – 博客园
http://www.cnblogs.com/yilinglai/archive/2006/12/30/608237.html



在 WPF 中创建可换肤的用户界面-开发频道-IT技术-天极网
http://dev.yesky.com/365/7616365_3.shtml



11.1.1 添加资源 – 51CTO.COM
http://book.51cto.com/art/200908/145394.htm



WPF image resources – Stack Overflow
http://stackoverflow.com/questions/347614/wpf-image-resources



Windows Presentation Foundation Application Resource, Content, and Data Files
http://msdn.microsoft.com/en-us/library/aa970494.aspx



MCS Blogs – Using an embedded resource Image from code in a WPF application.
http://www.malluf.com/dnn/MCSBlogs/tabid/57/EntryID/1/Default.aspx



How to embed an image resource in a control library — Windows Live
http://wpfxaml.spaces.live.com/blog/cns!97DD5FD32788695B!154.entry
component


hardcodet.net » Linked Images in WPF Projects – Bad Idea?
http://www.hardcodet.net/2009/08/linked-images-in-wpf-projects-cause-issues



Embedding Bitmaps inside XAML « WPF, .NET & Other stuff
http://coldhour.info/browse.php?b=5&u=Oi8vc2hhcnBpbnNpZ2h0cy53b3JkcHJlc3MuY29tLzIwMDcvMTAvMDgvZW1iZWRkaW5nLWJpdG1hcHMtaW5zaWRlLXhhbWwv



dasz.at – Benutzbare Technologie» Blog Archive » WPF: Embedding Images in the Assembly
http://dasz.at/index.php/2008/01/wpf-embedding-images-in-the-assembly/



最后还是文件编译为内嵌资源
Stream strm = Assembly.GetExecutingAssembly().GetManifestResourceStream(strpics[i]);
                    PngBitmapDecoder bitmapDecoder = new PngBitmapDecoder(strm, BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.Default);
                    ImageSource imageSource = bitmapDecoder.Frames[0];


                    imghms[i].Source = imageSource;

标签:,