想呼风唤雨 发表于 2013-5-30 18:35:25

【博客常用代码】

本帖最后由 想呼风唤雨 于 2013-6-4 13:33 编辑


1.向上滚动的文字代码:<marqueelang=EN-US style="FONT-SIZE: 10pt; COLOR: #fa6b88; FONT-FAMILY: Verdana; mso-bidi-font-family: Arial; mso-ascii-font-family: 幼圆; mso-fareast-font-family: 幼圆">scrollamount="1" scrolldelay="60" direction="up" width="180" height="210"><div><font color="#ff0000"><b>本站公告</b></font></div><div><font color="#003366">这里是移动文字内容</font></div></marquee>< xmlnamespace prefix ="o" ns ="urn:schemas-microsoft-com:office:office" />
2.如果背景不想只放颜色要换图片:。。。
<STYLE>BODY {BACKGROUND- bottom; BACKGROUND-ATTACHMENT: fixed; background:fixed url(这里放背景URL地址); BACKGROUND-REPEAT); BACKGROUND-REPEAT: repeat}
</STYLE>
3.音乐一款超酷FLASH滚动播放器代码:
<EMBED SRCc=http://www.zhuiluren.com/MusicBYSEA.swf width=460 height=650
type=application/x-shockwave-flash><DIV></DIV>
其中,SRC是连接的意思,width ,height分别是宽度和高度,这个自己可以变的,
如果想将播放器隐藏,请看这个代码:
<iframe border=0 marginWidth=0 frameSpacing=0 marginHeight=0 frameBorder=0 noResize scrolling=no
width="108" height="147" vspale="0" src="http://www.91china.net/player/player.asp?
username="></iframe>      把108和147改成0,0就OK了
这款也不错哦
<iframe border=0 marginWidth=0 frameSpacing=0 marginHeight=0 frameBorder=0 noResize scrolling=no
width="200" height="105" vspale="0" src="http://www.91china.net/player/psp.asp?username="></iframe>

如果还是不会就看下面的吧:
</textarea><embed src=http://你的背景音乐地址 width=0 height=0 loop=true>   (此代码不显播放器)
</textarea><embed src=http://你的背景音乐地址 width=2 height=2 loop=true>   (此代码显播放器)
1.如何得到音乐地址...
首先打开百度音乐搜索 http://mp3.baidu.com
输入歌名..格式(只能是MP3和WMA)→查找
找到歌曲..点试听..
注意:要能听见的..而且听起来不卡的....!!!!(重要)
试听里边有个播放器..播放器右上方有个地址..
右键点击地址...→复制快捷方式
进入音乐盒..点添加
把歌曲地址复制到这里..
添加好以后要在歌曲后边的绿色加号上打勾才能自动播放..!(重要)
4,鼠标特效
鼠标特效代码
</SPAN><BR><IMG
src="/"url(\'http://jiro.blogbus.com/f
iles/1124474420.ani\')';"></TD></TR>

鼠标代码提供:
情信 [特]
http://imgcache.qq.com/qzone/item/orig/9/2617.ani
BAD~BOY [特]
http://imgcache.qq.com/qzone/item/orig/8/2616.ani
do~u~lvoe~me [特]
http://imgcache.qq.com/qzone/item/orig/15/2543.ani
let~go~party [特]
http://imgcache.qq.com/qzone/item/orig/1/2545.ani
love [特]
http://imgcache.qq.com/qzone/item/orig/2/2546.ani
心儿跳 [特]
http://imgcache.qq.com/qzone/item/orig/7/2263.ani
mylove [特]
http://imgcache.qq.com/qzone/item/orig/6/2262.ani
KISS~ME [特]
http://imgcache.qq.com/qzone/item/orig/8/1752.ani
只需将URL路径改成你选中的鼠标地址,剩下的我就不说了吧?
COOL [特]
http://imgcache.qq.com/qzone/item/orig/8/2392.ani
鱼鱼公主 [特]
http://imgcache.qq.com/qzone/item/orig/9/2393.ani
5.天气预报
天气预报代码:
<iframe src="http://weather.qq.com/inc/ss150.htm" width="250"
height="240"></iframe>
6.时钟代码
这个大家自己可以去风竹居找,地址是http://www.fengzhuju.com/

7.挂件代码
好看挂件的地址:http://www.2008red.com/member_pi ... rticle_7796_1.shtml

8.背景FLASH下面的都很好看的哦,其中位置自己都会改吧?TOP是距离顶部距离,WIDTH,HEIGHT,alight=RIGHT就是挂件在右边,LEFT就不用说立刻吧?快去装饰吧,呵呵~~


猪猪 [特]
http://imgcache.qq.com/qzone/item/orig/10/2394.ani
星云 [特]
http://imgcache.qq.com/qzone/item/orig/11/2187.ani
I服了YOU [特]
http://imgcache.qq.com/qzone/item/orig/0/2544.ani
我系叻靓醒 [特]
http://imgcache.qq.com/qzone/item/orig/3/2547.ani
游泳小猪 [特]
http://imgcache.qq.com/qzone/item/orig/12/2188.ani
足球 [特]
http://imgcache.qq.com/qzone/item/orig/11/2555.ani
蝙蝠man [特]
http://imgcache.qq.com/qzone/item/orig/2/2242.ani
宝马一族 [特]
http://imgcache.qq.com/qzone/item/orig/1/2241.ani
吉他 [特]
http://imgcache.qq.com/qzone/item/orig/4/1844.ani
钥匙 [特]
http://imgcache.qq.com/qzone/item/orig/13/2189.ani
smile [特]
http://imgcache.qq.com/qzone/item/orig/3/2259.ani
hello [特]
http://imgcache.qq.com/qzone/item/orig/5/2261.ani
happyday [特]
http://imgcache.qq.com/qzone/item/orig/4/2260.ani
下雨FLASH特效背景代码
<DIV>
<CENTER><EMBED style="RIGHT: 100px; WIDTH: 800px; ; TOP:
0px; HEIGHT: 1000px" align=right
src=http://imgfree.21cn.com/free/flash/6.swf type=application/octet-stream
;; quality="high" wmode="transparent"> </CENTER></DIV>

http://imgfree.21cn.com/free/flash/1.swf红色背景白色小流星
http://imgfree.21cn.com/free/flash/2.swf浅绿色背景亮色竖条
http://imgfree.21cn.com/free/flash/3.swf光球光芒时隐时现
http://imgfree.21cn.com/free/flash/4.swf米字星光
http://imgfree.21cn.com/free/flash/5.swf灰色背景米字星光
http://imgfree.21cn.com/free/flash/6.swf灰蓝背景飘落雨滴
http://imgfree.21cn.com/free/flash/7.swf黄色背景飞星闪闪
http://imgfree.21cn.com/free/flash/8.swf青蛙
http://imgfree.21cn.com/free/flash/9.swf蓝色蝴蝶
http://imgfree.21cn.com/free/flash/10.swf竖条箭头
http://imgfree.21cn.com/free/flash/11.swf宽窄竖条
http://imgfree.21cn.com/free/flash/12.swf左右晃动的竖条(宽、窄)
http://imgfree.21cn.com/free/flash/13.swf黑色背景旋转轮盘
http://imgfree.21cn.com/free/flash/14.swf蝌蚪旋转、随鼠标的白色光团
http://imgfree.21cn.com/free/flash/15.swf黑色背景绿色飘带幻影
http://imgfree.21cn.com/free/flash/16.swf黑色背景飞星闪闪
http://imgfree.21cn.com/free/flash/17.swf金鱼
http://imgfree.21cn.com/free/flash/18.swf蓝色背景水平飞镖
http://imgfree.21cn.com/free/flash/19.swf左右晃动的竖条
http://imgfree.21cn.com/free/flash/20.swf黑色背景水平闪动的横条
http://imgfree.21cn.com/free/flash/21.swf黑色背景光晕
http://imgfree.21cn.com/free/flash/22.swf光圈由小变大
http://imgfree.21cn.com/free/flash/23.swf蓝色背景雪花飘飘
http://imgfree.21cn.com/free/flash/24.swf左右闪动的竖条
http://imgfree.21cn.com/free/flash/25.swf三只黑蚂蚁
http://imgfree.21cn.com/free/flash/26.swf左右晃动的黄、绿、蓝竖线
http://imgfree.21cn.com/free/flash/27.swf无色背景水珠
http://imgfree.21cn.com/free/flash/28.swf黑色背景竖条
http://imgfree.21cn.com/free/flash/29.swf圆圈内海浪波动
http://imgfree.21cn.com/free/flash/30.swf黑色背景蓝色梦幻
http://imgfree.21cn.com/free/flash/30.swf黑色背景蓝色梦幻
http://imgfree.21cn.com/free/flash/31.swf黑色背景无数小亮点飘落
http://imgfree.21cn.com/free/flash/32.swf长发女孩
http://imgfree.21cn.com/free/flash/33.swf粉黄色5瓣花飘飘
http://imgfree.21cn.com/free/flash/34.swf
http://imgfree.21cn.com/free/flash/35.swf小星、大星光晕梦幻
http://imgfree.21cn.com/free/flash/35.swf紫色唇印升腾
http://imgfree.21cn.com/free/flash/36.swf上下闪动的横条
http://imgfree.21cn.com/free/flash/37.swf绿色、黄色的树叶飞舞
http://imgfree.21cn.com/free/flash/38.swf流星飞降
http://imgfree.21cn.com/free/flash/39.swf小+字旋转大光圈
http://imgfree.21cn.com/free/flash/40.swf大、小八瓣雪花飘落
http://imgfree.21cn.com/free/flash/41.swf紫色背景大、小八瓣雪花飘落
http://imgfree.21cn.com/free/flash/42.swf空中飘动的黄球
http://imgfree.21cn.com/free/flash/43.swf
http://imgfree.21cn.com/free/flash/44.swf
http://imgfree.21cn.com/free/flash/45.swf两只黄色的蝴蝶在左上角飞舞
http://imgfree.21cn.com/free/flash/46.swf一片浅粉色的云团
http://imgfree.21cn.com/free/flash/47.swf 箭头左右穿梭
http://imgfree.21cn.com/free/flash/48.swf一个光球从右上方慢慢飞入
http://imgfree.21cn.com/free/flash/49.swf飘落的浅粉色花瓣
http://imgfree.21cn.com/free/flash/50.swf晃动的文字“sweet kiss day”
http://imgfree.21cn.com/free/flash/51.swf三只飞舞的蜻蜓、闪闪的星光
http://imgfree.21cn.com/free/flash/52.swf黑色背景飘落的红叶
http://imgfree.21cn.com/free/flash/53.swf雪糕降落http://www.52blog.net/UploadFiles/2006-2/24344099.swf
在背景图片中写字的代码:
<DIV>
<TABLE width="100%" border=0>
<TBODY>
<TR>
<TD background=背景图片URL地址 height=50>
<P>文章内容</P></TD></TR></TBODY></TABLE></DIV>


其中“width”一般是显示100%,也就是宽度在文章内全部显示,也可以设定具体数值!“height”是
高度,高度大小其实没多大事,当文章内容超过它的高度的时候,表格会自动拉长!编辑文章的时候,
找好背景图片地址,在显示源代码前打勾,把以上代码放进去,再把勾取消掉,就可以在图片上编辑
文章了!


网页教程-每次访问都有不同的背景音乐


这个不是播放器 而是让背景音乐每次刷新都可以自动更换
如此有趣的设置当然只需要简单的几句js就可以实现


把以下代码根据提示稍作修改后粘贴在叶子的里面
<SCRIPT LANGUAGE="JavaScript">
<!
var sound1="http://歌曲地址"
var sound2="http://歌曲地址"
var sound3="http://歌曲地址"
var sound4="http://歌曲地址"
var sound5="http://歌曲地址"
var sound6="http://歌曲地址"
var sound7="http://歌曲地址"
var sound8="http://歌曲地址"
var sound9="http://歌曲地址"
var sound10="http://歌曲地址"
var x=Math.round(Math.random()*10)
if (x==0) x=sound1
else if (x==1) x=sound2
else if (x==2) x=sound3
else if (x==3) x=sound4
else if (x==4) x=sound5
else if (x==5) x=sound6
else if (x==6) x=sound7
else if (x==7) x=sound8
else if (x==8) x=sound9
else x=sound10
if (navigator.appName=="Microsoft Internet Explorer")
document.write('<bgsound src="/+'"'+x+'"'+' loop="infinite">')
else
document.write('<embed src="/+'"'+x+'"'+'hidden="true" autostart="true" loop="true">')
//>
</SCRIPT>


</STYLE>
<P></P><BGSOUND balance=0 src="http://file.xingkong.com/Audios/2006/1/2006117144305998.mp3" volume=0 loop=infinite>
<SCRIPT language=javascript>
</SCRIPT>


音乐代码


<embed style="TEXT-ALIGN: center" src="http://wap.mopalace.com/mopalace/mp3/linyuzhong/lyz09-Mopalace-com.mp3 " width="180" height="43" type="audio/mpeg" autostart="true" loop="true"></embed>










http://app.duomiyy.com/songplayer/v2/app/25762033/DuomiWebPlayer.swf

╰☆ゞ星ル╮ 发表于 2013-5-30 20:28:11

本帖最后由 ╰☆ゞ星ル╮ 于 2013-5-30 20:29 编辑

这个帖好啊,能学习知识了,辛苦哈,对了,你那又换个女女打人啊.
页: [1]
查看完整版本: 【博客常用代码】