战地双雄3可以用ps4:dreamweaver 中浮动图像的 javascript代码怎么写!??

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/08 16:43:25
dreamweaver 中浮动图像的 javascript代码怎么写!??
我再做网页,想在首页上做个小小的浮动flash图像,不会写代码
请高手帮忙!!

把如下代码加入<body>区域中
<style>
<!--

.mouseBeOffMe {
border-top: 10px solid #000000;
border-bottom: 10px solid #000000;
border-left: 6px solid #000000;
border-right: 10px solid #000000;
}

.mouseBeOnMe {
border-top: 6px solid #000000;
border-bottom: 14px solid #000000;
border-left: 10px solid #000000;
border-right: 6px solid #000000;
}

.mouseBeDown {
border-top: 13px solid #000000;
border-bottom: 7px solid #000000;
border-left: 10px solid #000000;
border-right: 6px solid #000000;
}

.mouseBeUp {
border-top: 10px solid #000000;
border-bottom: 10px solid #000000;
border-left: 10px solid #000000;
border-right: 6px solid #000000;
}

//-->
</style>
<table border="0" cellpadding="7" cellspacing="0" bgcolor="#000000">
<tr>
<td bgcolor="#000000">
<img src = "photo/slideshow1_1.jpg"
title = "This is the Image One Label"
width = "90"
height = "90"
border = "0"
class = "mouseBeOffMe"
onmouseover = "this.className='mouseBeOnMe'"
onmousedown = "this.className='mouseBeDown'"
onmouseup = "this.className='mouseBeUp'"
onmouseout = "this.className='mouseBeOffMe'">

<img src = "photo/slideshow1_2.jpg"
title = "This is the Image Two Label"
width = "90"
height = "90"
border = "0"
class = "mouseBeOffMe"
onmouseover = "this.className='mouseBeOnMe'"
onmousedown = "this.className='mouseBeDown'"
onmouseup = "this.className='mouseBeUp'"
onmouseout = "this.className='mouseBeOffMe'">

<img src = "photo/slideshow1_3.jpg"
title = "This is the Image Three Label"
width = "90"
height = "90"
border = "0"
class = "mouseBeOffMe"
onmouseover = "this.className='mouseBeOnMe'"
onmousedown = "this.className='mouseBeDown'"
onmouseup = "this.className='mouseBeUp'"
onmouseout = "this.className='mouseBeOffMe'">
</td>
</tr>
<tr>
<td bgcolor="#141414" align="center">
<font color="#EFE7DF" size="2" face="Arial">鼠标移动到图片上时图片会闪动<br>
点住鼠标左键后图片也会闪动<br>
松开鼠标左键后图片会恢复正常<br>
</td>
</tr>
</table>

图像的路径你自己改,还有定位你自己也要修改一下。

可以直接把图像放在层里,然后把层加在时间轴上进行一些设置,这样不用写代码,更简单。
祝好运!!!