海蓝蓝的日志内链接代码
一、
1、文字链接 <a href="链接地址" target=_blank><FONT>输入文字</FONT></A>
2、图片链接 <a href="链接地址" target=_blank><img src="图片地址" width="100" height="100" border="0"></a>
说明: 可二者合一使用。
二、移动图片链接(向右)
<marquee beha
三、自由飘动
<div id="img" style="position:absolute;">
<a href="http://13475692228hl.blog.163.com/blog/edit/ " target="_blank">
<img src="http://www.iecool.com/uppic/2005-7-17/shichui/shichui1_150.jpg" border="0"></a>
</div>
<SCRIPT LANGUAGE="JavaS
<!--
var xPos = 20;
var yPos = document.body.clientHeight;
var step = 1;
var delay = 30;
var height = 0;
var Hoffset = 0;
var Woffset = 0;
var yon = 0;
var xon = 0;
var pause = true;
var interval;
img.style.top = yPos;
function changePos() {
width = document.body.clientWidth;
height = document.body.clientHeight;
Hoffset = img.offsetHeight;
Woffset = img.offsetWidth;
img.style.left = xPos + document.body.scrollLeft;
img.style.top = yPos + document.body.scrollTop;
if (yon) {
yPos = yPos + step;
}
else {
yPos = yPos - step;
}
if (yPos < 0) {
yon = 1;
yPos = 0;
}
if (yPos >= (height - Hoffset)) {
yon = 0;
yPos = (height - Hoffset);
}
if (xon) {
xPos = xPos + step;
}
else {
xPos = xPos - step;
}
if (xPos < 0) {
xon = 1;
xPos = 0;
}
if (xPos >= (width - Woffset)) {
xon = 0;
xPos = (width - Woffset);
}
}
function www_helpor_net() {
img.visibility = "visible";
interval = setInterval('changePos()', delay);
}
www_helpor_net();
//For more,visit:www.helpor.net
-->
</script>
四、
<html>
<head>
<title>
</head>
<body>
<div id="helpor_net" style="position:absolute; visibility:visible; left:0px; top:0px; z-index:-1">
<img src="http://www.iecool.com/uppic/caixin/meinv/qingchunmeinv/qingchunmeinv1_581.gif " border="0" on
</div>
<SCRIPT LANGUAGE="JavaS
<!--
var isNS = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4));
var _all = '';
var _style = '';
var wwidth, wheight;
var ydir = '++';
var xdir = '++';
var id1, id2, id3;
var x = 1;
var y = 1;
var x1, y1;
if(!isNS) {
_all='all.';
_style='.style';
}
function www_helpor_net() {
clearTimeout(id1);
clearTimeout(id2);
clearTimeout(id3);
if (isNS) {
wwidth = window.innerWidth - 55;
wheight = window.innerHeight - 50;
} else {
wwidth = document.body.clientWidth - 55;
wheight = document.body.clientHeight - 50;
}
id3 = setTimeout('randomdir()', 20000);
animate();
}
function randomdir() {
if (Math.floor(Math.random()*2)) {
(Math.floor(Math.random()*2)) ? xdir='--': xdir='++';
} else {
(Math.floor(Math.random()*2)) ? ydir='--': ydir='++';
}
id2 = setTimeout('randomdir()', 20000);
}
function animate() {
ev
ev
if (isNS) {
helpor_net.moveTo((x+pageXOffset),(y+pageYOffset))
} else {
helpor_net.pixelLeft = x+document.body.scrollLeft;
helpor_net.pixelTop = y+document.body.scrollTop;
}
if (isNS) {
if (helpor_net.top <= 5+pageYOffset) ydir = '++';
if (helpor_net.top >= wheight+pageYOffset) ydir = '--';
if (helpor_net.left >= wwidth+pageXOffset) xdir = '--';
if (helpor_net.left <= 5+pageXOffset) xdir = '++';
} else {
if (helpor_net.pixelTop <= 5+document.body.scrollTop) ydir = '++';
if (helpor_net.pixelTop >= wheight+document.body.scrollTop) ydir = '--';
if (helpor_net.pixelLeft >= wwidth+document.body.scrollLeft) xdir = '--';
if (helpor_net.pixelLeft <= 5+document.body.scrollLeft) xdir = '++';
}
id1 = setTimeout('animate()', 30);
}
var helpor_net=ev
// -->
</script>
</body>
</html>
<a href="http://blog.163.com/13475692228hl/edit/">欢迎访问海蓝蓝的空间</a>
首先要找到你喜欢的视频地址 (一定要Flash地址哦,否则是贴不上的)然后在把视频地址添加在下面的代码里(换掉红色的视频地址)即可。
添加视频代码如下:
<EMBED pluginspage=http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=media&sba=plugin& src=视频地址 width="100%" type=application/x-mplayer2 enablecontextmenu="1" loop="0" autostart="1" showstatusbar="1" showaudiocontrols="1" showcontrols="1" border="0" ></EMBED>
制作方法:
1.进入日志
2.点写日志
3.点日志编辑界面的<>按钮
4.复制上述代码後粘贴上
5.再点<>按钮(这时已看到视频了,不过显示的视频很小,需要拖动视频四周的小方块把它放大)。
7.满意后点发表日志,即可。
8.也可把视频放在博客首页的模块里。
评论