给初学者的Q-ZONE代码(二)

      花火ぬ 2006-8-22 20:32
文字特效代码 (使用html代码做文字特效的方法很多,暂只介绍几种,效果自己去测试)
标语代码

<CENTER><FONT style="COLOR: #e4dc9b; FILTER: shadow(color=black); FONT-FAMILY: 华文彩云; FONT-SIZE: 30pt; LINE-HEIGHT: 150%; WIDTH: 100%"><B>要设置的文字</B></FONT></CENTER>

发光字体代码 [快速查看颜色代码都请 点击这里 ]

</textarea><table style="FILTER: glow(color=发光背景颜色代码,direction=2)"><font color=发光字体颜色代码 size=2>要设置的文字</font></table>

小技巧:在设置状字体的时候,如果把字体前加上@,会产生文字平躺的效果.

<font face="@黑体">大家好</font>

跳动文字代码

<MARQUEE behavior=alternate direction=up height=98 scrollAmount=5>

<MARQUEE behavior=altrnate scrollAmount=2 width=460>

<FONT color=red face=楷体_gb2312 size=7>要设置的文字</FONT>

</MARQUEE></MARQUE>

3D文字效果

<style type="text/css">

.3dfont { FILTER: glow(color=ffffff,strength=0) shadow(color=cccccc,direction:135); POSITION: relative; WIDTH: 100% }

</style>

<table border="0" width="100%">

<tr>

<td width="100%" class="3dfont"><font color="#008040">要设置的文字</font>

高斯模糊字体

<span style="position:relative; width:200; height:50; filter:glow(color=#9933cc,strength=4); margin-left:4px">

<p>要设置的文字</span>

文字左右反转

<table style="Filter:FlipH">要设置的文字</table>

文字上下反转

<table style="Filter:FlipV">要设置的文字</table>

Blur风吹效果

<table style="Filter:Blur(add=1,direction=45,strength=5)要设置的文字</table>

add:是否要在已经使用Blur滤镜上的html对象上显示原来的模糊方向,0表示不显示

direction:模糊方向

strength:模糊半径大小,单位像素,默认为5,取整

Glow滤镜(光晕效果)

<table style="Filter:Glow(color=#FF0000,strength=5,direction=2)">要设置的文字</table>

color:光晕颜色,需用代码形式

strength:光晕强度,选择型参数,默认为5

direction:光晕方向,选择型参数

Shadow滤镜(阴影效果)

<table style="Filter:Shadow(color=#ff0000,direction=45)">要设置的文字</table>

color:阴影颜色,需用代码形式

strength:阴影强度,选择型参数,默认为5

direction:阴影方向,选择型参数

DropShadow(投影效果)

<table style="filter:dropshadow(color:#6600FF,offx=1,offy=1)">要设置的文字</table>

color:设置投影颜色

offx:在横坐标上的偏移,单位是像素

offy:在纵坐标上的偏移,单位是像素

positive:设置是否从对象的非透明像素建立阴影

⒁、其它特效代码 (这里的代码没什么实际作用,主要是辅助效果)

鼠标放在图片上会显示说明字的代码

<img src="http://你的图片地址" width=620 height=138 border=0 title="说明文字" align=absmiddle>

自定义鼠标图片

<img src="http://你的图片地址" onload="document.body.style.cursor=\'url(\\\'http://您的鼠标图片的地址,可以是.ani或.cur文件\\\')\'">

主页模块虚线代码

<style type="text/css">

.tb{BORDER-BOTTOM: #000000 1px dotted;BORDER-top: #000000 1px dotted;BORDER-LEFT:

#000000 1px dotted;BORDER-RIGHT: #000000 1px dotted;}

</style>

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td class="tb"><center>要设置的文字</td>

</tr>

</table>

禁止图片下载

<A HREF="javascript:void(0)" onMouseover="alert(\'对不起,图片不能随便下载!\')"><IMG SRC="http://你的图片地址" Align="center" Border="0" width="99" height="50"></A>

⒂、更多高级功能

QQ在线状态代码 (可在不加好友的情况下临时聊天) [大家只需将下面的QQ号和QQ名称换成自己的即可]

<a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin=QQ号&Site=QQ名称&Menu=yes>

<img border="0" SRC=http://wpa.qq.com/pa?p=1:894132:13 width="80" height="20" alt="点击这里给我发消息"></a>

网络电视代码 (此方法在网速一般的情况下效果不佳,建议不使用)

</textarea><EMBED SRC= http://你的网络电视地址 width=355 height=250 wid</textarea>

自定义模块名称 (大家可以尝试把多个代码加到一个模块,下面就是模块主题,可以自己修改)

<div id="KBStatic" style="position:absolute; left:0px; top:0px; width:200px; height:100px; z-index:25">

自定义皮肤代码 (新建立一个模块,然后在评论中加入这下面的代码,即可改变整个QQ空间整体皮肤) [此功能本人尚未测试,研究后再公布相关详细方法]

<img src="http://你的皮肤地址1" onload="document.getElementById(\'Mlogo\').style.background=\'url(http://你的皮肤地址2)\';document.getElementById(\'all\').style.background=\'url(http://你的皮肤地址3)\';" style="display:none;">

空间导航小人 (类似这种要先建一个文档,再发到自己网络空间的,都属于调用了,没网络空间的就无法尝试了)

新建立一个txt文档,然后在文档中加入下列代码:(修改的地方都已经指明了)

<body>

<SCRIPT>

<!--

function crml(nid)

{

try

{

nid=new ActiveXObject("Agent.Control.2");

nid.Connected = true;

nid.Characters.Load("");

return nid;

}

catch (err)

{

return false;

}

}

function chplay ()

{

if (ml=crml ("ml"))

{

var MerlinID;

var MerlinACS;

Merlin = ml.Characters.Character(MerlinID);

Merlin.MoveTo(200,200);

Merlin.Show();

Merlin.Play("Explain");

Merlin.Play("Announce");

Merlin.Speak("修改成您的语言");

Merlin.Play("Gestureright");

Merlin.Play("Pleased");

Merlin.Speak("修改成您的语言");

Merlin.Play("Idle1_1");

Merlin.Hide();

Merlin.MoveTo(600,300);

Merlin.Show();

Merlin.Play("Surprised");

Merlin.Speak("修改成您的语言");
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commenttime}{commentauthor}

{CommentUrl}
{commentcontent}