网易博客中用到的简单网页代码

2020-04-15 22:17:52易采站长站整理

现在大多博客不支持直接把视频放到博客中,所以我们要想个别的办法。

我的思路是先到youku 或tudou 网申请空间,把你要的视频上传。然后获取你上传的视频的FLAH地址后,可以在自定义模块的插入来完成。

土豆网申请地址:http://www.tudou.com/my/program/publish.php

上面的办法一般窗口不居中,也可以用这个 “自定义模块” 里输入下面的代码:

<center>
<embed allowScriptAccess="never" allowNetworking="internal" src="FLSAH视频地址" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" quality="high" width="100%" width="100" height="350" autostart="0"></embed>
</center>

解释: width="100" 和 height="350" 是视频窗口的大小,数字可以调整。

三、滚动的好友链接(这个也是用 自定义模块 完成)

代码如下:

<marquee behavior="scroll" direction= right width="90%" height="100" scrollamount="2" scrolldelay="30" >
<a target="cont" href="好友的博客地址"><img src="好友的头像或照片地址" width="100" height="100" border="0"></a>
&nbsp;&nbsp;&nbsp;
</marquee>

解释: 代码由四个段组成,如果有多个好友请把第一段重得用即可,如果头像之间留一些距离请在第二段代码后用 &nbsp; 空格代码。

direction= right 中的right 可以换成(left 从右往左)、(right 从左往右)、(up从下往上)、(从上往下down)

多个好友的链接如上所说以下:

<marquee behavior="scroll" direction=right width="90%" height="100" scrollamount="2" scrolldelay="30" >
<a target="cont" href="好友的博客地址1"><img src="好友的头像或照片地址1" width="100" height="100" border="0"></a>
&nbsp;&nbsp;&nbsp;
<a target="cont" href="好友的博客地址2"><img src="好友的头像或照片地址2" width="100" height="100" border="0"></a>
&nbsp;&nbsp;&nbsp;
<a target="cont" href="好友的博客地址n"><img src="好友的头像或照片地址n" width="100" height="100" border="0"></a>
</marquee>

看完了别忘了留言