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

      花火ぬ 2006-8-22 20:29
⑴、调用代码 (用这个代码可以把整个网页添加到QQ空间) [其中代码中width=\'宽度\',height=\'高度\',可以设置任意数字来更改页面大小,下面所有代码修改宽和高的方法都和这一样]

<iframe src=\'http://调用网页的地址\' width=\'628\' height=\'280\' frameborder=\'0\' scrolling=\'no\'></iframe>

本人空间的顶部FLASH,左边的公告,右边的友情链接,最下面的所有页面都是采用的这种方法.

⑵、Flash代码 (将网上的FLASH应用到QQ空间来) [如果要插入普通Flash,则用第1条代码; 如果要插入透明Flash,则用第2条]

<embed src="http://你的Flash地址" width=360 height=280>

<embed src="http://你的透明Flash地址" wmode=transparent style="position: absolute" width=380 height=270>

举例:

会跳舞的女人透明效果代码

<embed src="http://biz.cnhoo.com/wz/test/jump_mm1.swf" quality="high" style="position: absolute; left: 77; top: 100; width:591px; height:414px" ;; wmode="transparent">

⑶、MTV代码 [下面只列举了1条常用的代码,如果要插入更多多媒体文件,请查看本人6月1日整理的页面 ]

<embed src="http://你的MTV地址" console=clip1 controls=imagewindow height=128 width=180 autostart=true loop=true>

⑷、大图代码 (在空间添加整张图片) [利用模板的重叠性,可以插入大图后将该模块拖动到上面的模块下面重叠,以达到隐藏模块名字的作用]

<img src="http://你的图片地址" width="630" height="250"></img>

⑸、时钟代码 (提供2种方法,建议选择第1种)

方法① <center><embed src="http://你的时钟地址" width="120" height="120"></embed><br><a href="" target="_blank"></a></center>

其中,时钟地址可以采用http://free1.e-168.cn/fengzhuju/previews/clocks/clock1.swf 这个地址最后的clock1.swf可以用clock1.swf到clock140.swf中间任意一个数字替换.

方法② <iframe src="http://biz.cnhoo.com/wz/liaoshiqi520/shijian520.htm" marginwidth="1" marginheight="1" scrolling="no" border="0" frameborder="0" width="132" height="21"></iframe>

⑹、天气预报代码 (下面2种方法任选一种皆可,加到评论后自己拖动模块大小调整)

方法① <iframe src=\'http://minisite.qq.com/Weather/index.html\' scrolling=\'no\' height=\'288\' width=\'222\' frameborder=\'0\' marginHeight=\'0\' marginWidth=\'0\'></iframe>

方法② <iframe src=\'http://weather.qq.com/24.htm\' width=\'405\' height=\'360\' frameborder=\'0\' scrolling=\'no\'></iframe>

⑺、星座代码 (下面2种方法任选一种皆可,方法同上)

方法① <embed src="http://image2.sina.com.cn/ast/newimage/75080_02.swf" wmode=transparent style="position: absolute" width=630 height=80>

方法② <embed src="http://astro.qq.com/images/index/12star/12star.swf" wmode=transparent style="position: absolute" width=630 height=80>

⑻、网络搜索 (可根据个人爱好选择下面2种)

Google搜索代码

<FORM method=GET action="http://www.google.com/search">

<TABLE bgcolor="#303030"><tr><td>

<A HREF="http://www.google.com/intl/zh-CN/">

<IMG SRC="/UserFiles/2005-11/27/2005112772740925.gif"

border="0" ALT="Google" align="absmiddle"></A>

<INPUT TYPE=text name=q size=23maxlength=255 value="">

<INPUT TYPE=hidden name=hl value=zh-CN>

<INPUT TYPE=hidden name=ie value=GB2312>

<INPUT TYPE=submit name=btnG value="Google搜索">

</td></tr></TABLE>

</FORM>

百度搜索代码

<iframe id="baiduframe" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"

framespacing="0" frameborder="0" scrolling="no" width="468" height="60"

src="http://unstat.baidu.com/bdun.bsc?tn=wyjxp&csid=106&rkcs=0&bgcr=303030&ftcr=ffffff&rk=1&bd=1&bdas=0">

</iframe>

⑼、即时新闻代码 (下面只列举了2种常见的,直接复制到模块里即可,如果采用其他网站的滚动新闻,调用方法一样,只需更换地址)

CCTV新闻: <iframe src="http://www.cctv.com/homepage/46/index.shtml";; name="express" width="354" height="16" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></iframe>

新浪滚动新闻: <iframe src="http://news.sina.com.cn/o/allnews/input/index.html";; name="express" width="354" height="16" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></iframe>

⑽、友情链接 (下面2种方法可以配合使用,第1种为文字型,第2种为图片型,都是滚动链接) [举例见标准格式第1行链接≯童話℃空間≮的示范,愿意和本人建友情链接的复制即可]

拉链友情链接代码

<select name=\'FriendSite\' onchange="if(this.options[this.selectedIndex].value!=\'\'){window.open(this.options[this.selectedIndex].value,\'_blank\');}" size="1" style="border-style: dashed; border-width: 1px">

<option value=\'\'>友情文字链接站点</option>

<option value="空间地址">空间名称</option>

<option value="空间地址">空间名称</option>

<option value="空间地址">空间名称</option>

</select>

Logo友情链接代码

<marquee onMouseOver="this.stop()" onMouseOut="this.start()" align=center direction=up scrollamount=1 scrolldelay=3 valign=middle behavior="scroll">

<a href=\'空间地址\' title=\'空间名称\' target=\'_self\'><img src="Logo地址" width=\'88\' height=\'31\'></a>

<a href=\'空间地址\' title=\'空间名称\' target=\'_self\'><img src="Logo地址" width=\'88\' height=\'31\'></a>

<a href=\'空间地址\' title=\'空间名称\' target=\'_self\'><img src="Logo地址" width=\'88\' height=\'31\'></a>

</marquee>

⑾、走马灯效果代码 [下面4种滚动方法大同小异,具体效果自己去尝试,只须修改相应的地方(紫色字体的地方),高级设置请修改其他数值,暂不介绍]

文字滚动代码 (从右向左滚动)

<marquee width="157" height="21">要滚动的文字</marquee>

文字滚动代码 (从下往上滚动)

<marquee bgcolor=#ffffff class=p4 direction=up height=60 scrollamount=1 scrolldelay=50 style="COLOR: #000000; class: " width=157 text-align: left? border="0" ;>要滚动的文字</marquee>

图片滚动代码 (从右向左滚动)

<marquee scrollamount=1 scrolldelay=3 valign=middle behavior="scroll">

<img border="0" src=" 要滚动的图片地址1">;

<img border="0" src=" 要滚动的图片地址2">;

</marquee>

图片滚动代码 (从下往上滚动)

<marquee onMouseOver="this.stop()" onMouseOut="this.start()" align=center direction=up scrollamount=1 scrolldelay=3 valign=middle behavior="scroll">

<img border="0" src=" 要滚动的图片地址1">;

<img border="0" src=" 要滚动的图片地址2">;

</marquee>⑿、评价代码 (我这里提供的是框架,具体内容可以自己修改)

<form>

<div align="center"><center><p>

本空间很好: <input TYPE="radio" NAME="radio" value="谢谢您的鼓励和支持!" onClick="alert(value)">

本空间一般: <input TYPE="radio" NAME="radio" value="我会不断努力的!" onClick="alert(value)">

本空间太差: <input TYPE="radio" NAME="radio" value="具体的意见请QQ联系我,谢谢!" onClick="alert(value)">

</p></center></div>

</form>



标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commenttime}{commentauthor}

{CommentUrl}
{commentcontent}