社区
JavaScript
帖子详情
回答一个简单的小问题就给你一百分
cerry
2003-01-24 02:35:29
现在有一个这样的小问题,是这样的,我做了一个功能,就是用鼠标移到这个图片的上方,然后就在这个图片的旁边出现另外一个图片,可是我需要的是三个图片,也就是说,鼠标移到这三个图片的上方,在他们旁边分别显示三个不同的图片,可另人烦恼的是,不管鼠标移到哪个图片上,始终显示一个图片,这个问题如何解决,请大家帮帮忙
...全文
69
9
打赏
收藏
回答一个简单的小问题就给你一百分
现在有一个这样的小问题,是这样的,我做了一个功能,就是用鼠标移到这个图片的上方,然后就在这个图片的旁边出现另外一个图片,可是我需要的是三个图片,也就是说,鼠标移到这三个图片的上方,在他们旁边分别显示三个不同的图片,可另人烦恼的是,不管鼠标移到哪个图片上,始终显示一个图片,这个问题如何解决,请大家帮帮忙
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
9 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
angle345
2003-01-24
打赏
举报
回复
sdfafgadfa
xizi2002
2003-01-24
打赏
举报
回复
try:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<img src="jky1.jpg" id=demo style="position:absolute;display:none">
<script>
function show(obj){
demo.style.pixelLeft=event.clientX
demo.style.pixelTop=event.clientY
demo.src=obj.src;
demo.style.display="";
}
function hid(){
demo.style.pixelLeft=0
demo.style.pixelTop=0
demo.style.display="none";
}
</script>
</head>
<body>
<table width="786" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="786" height="363" align="right" valign="top" background="jky.jpg"><table width="75%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="75%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="75%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="75%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="231" height="26" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="231"><img src="jky1.jpg" width="129" height="24" onmouseover=show(this) onmouseout=hid(this)></td>
</tr>
</table>
<table width="75%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="8"></td>
</tr>
</table>
<table width="231" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="299"><img src="jky2.jpg" width="129" height="24" onmouseover=show(this) onmouseout=hid(this)></td>
</tr>
</table>
<table width="75%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="8"></td>
</tr>
</table>
<table width="231" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="590"><img src="jky.jpg" width="129" height="24" onmouseover="show(this)" onmouseout="hid(this)"></td>
</tr>
</table></td>
</tr>
</table>
</body>
</body>
</html>
xunyiren
2003-01-24
打赏
举报
回复
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><body><img src="jky1-1.jpg" id=demo1 style="position:absolute;display:none">
<img src="jky2-1.jpg" id=demo2 style="position:absolute;display:none">
<img src="jky3-1.jpg" id=demo3 style="position:absolute;display:none">
<script>
function show(myname){
myname.style.pixelLeft=event.clientX
myname.style.pixelTop=event.clientY
myname.style.display="";
}
function hid(myname){
myname.style.pixelLeft=0
myname.style.pixelTop=0
myname.style.display="none";
}
</script>
<table width="786" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="786" height="363" align="center" valign="top" background="jky.jpg">
<table width="100%" height="26" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="231" align="center"><img src="jky1.jpg" width="180" height="200" onmouseover=show(demo1) onmouseout=hid(demo1)></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="299" align="center"><img src="jky2.jpg" width="181" height="200" onmouseover=show(demo2) onmouseout=hid(demo2)></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="590" align="center"><img src="jky3.jpg" width="186" height="200" onmouseover=show(demo3) onmouseout=hid(demo3)></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
cerry
2003-01-24
打赏
举报
回复
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<img src="jky1.jpg" id=demo style="position:absolute;display:none">
<script>
function show(){
demo.style.pixelLeft=event.clientX
demo.style.pixelTop=event.clientY
demo.style.display="";
}
function hid(){
demo.style.pixelLeft=0
demo.style.pixelTop=0
demo.style.display="none";
}
</script>
</head>
<body>
<table width="786" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="786" height="363" align="right" valign="top" background="jky.jpg"><table width="75%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="75%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="75%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="75%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="231" height="26" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="231"><img src="jky1.jpg" width="129" height="24" onmouseover=show() onmouseout=hid()></td>
</tr>
</table>
<table width="75%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="8"></td>
</tr>
</table>
<table width="231" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="299"><img src="jky2.jpg" width="129" height="24" onmouseover=show() onmouseout=hid()></td>
</tr>
</table>
<table width="75%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="8"></td>
</tr>
</table>
<table width="231" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="590"><img src="jky3.jpg" width="129" height="24" onmouseover=show() onmouseout=hid()></td>
</tr>
</table></td>
</tr>
</table>
</body>
</body>
</html>
wsj
2003-01-24
打赏
举报
回复
直接贴出代码,大家改吧
zz315
2003-01-24
打赏
举报
回复
<img width=120 height=60 alt=1 onmouseover="zz1.style.display='inline'" onmouseout="zz1.style.display='none'"><img width=120 height=60 id=zz1 alt=zz1 style="display:none"><br><br>
<img width=120 height=60 alt=2 onmouseover="zz2.style.display='inline'" onmouseout="zz2.style.display='none'"><img width=120 height=60 id=zz2 alt=zz2 style="display:none"><br><br>
<img width=120 height=60 alt=3 onmouseover="zz3.style.display='inline'" onmouseout="zz3.style.display='none'"><img width=120 height=60 id=zz3 alt=zz3 style="display:none"><br><br>
cerry
2003-01-24
打赏
举报
回复
我想用JS
lovingkiss
2003-01-24
打赏
举报
回复
你把程序写上啊!!~
learnner
2003-01-24
打赏
举报
回复
用flash
python用户输入若干个分数_编程实现以下功能: 用户输入若干个成绩,求所有成绩的平均分。每输入
一个
成绩后询问是否继续输入下
一个
成绩,
回答
yes就继续输入下
一个
成绩,
回答
no就停止输入成绩。_学小易...
【填空题】8【简答题】请
简单
说出六种宠物临床常见的治疗技术【简答题】使用python编写
一个
程序,使用条件判断实现:输入
一个
范围在0-100的数值,判断其等级,所属等级如下所示。 成绩大于等于90分,A; 成绩大于等于80分,...
前端、程序员面试技巧——完美
回答
2)
回答
思路:一般人
回答
这个
问题
过于平常,只说姓名、年龄、爱好、工作经验,这些在简历上都有,
简单
介绍即可。 企业最希望知道的是求职者能否胜任公司工作,包括:最强的技能、最深入研究的知识领域、个性中最积极...
python学习之实现
简单
计算器(加减乘除)小学生能力测试
设计
一个
程序,用来实现帮助小学生进行百以内的算术练习,它具有以下功能: 提供10道加、减、乘或除四种基本算术运算的题目; 练习者根据显示的题目输入自己的答案,程序自动判断输入的答案是否正确并显示出相应的...
知乎7万赞
回答
:你思考
问题
的方式,决定了你的层次
知乎7万赞
回答
:你思考
问题
的方式,决定了你的层次"一文。本人觉得写得蛮好,分享给大家,共勉!文章有点长,看完全文需要点耐心…… 所谓厉害的人,遇到
问题
时的思维模式,跟我们的差别在哪? 这篇文章里,...
知乎收藏数最高的1000个
回答
同系列一:知乎收藏数最高的1000个
回答
- 陈鹏举的文章 - 知乎专栏 同系列二:知乎关注人数最高的1000个
问题
- 陈鹏举的文章 - 知乎专栏 同系列三:知乎关注人数最高的1000个收藏夾 - 陈鹏举的文章 - 知乎专栏同...
JavaScript
87,996
社区成员
224,693
社区内容
发帖
与我相关
我的任务
JavaScript
Web 开发 JavaScript
复制链接
扫一扫
分享
社区描述
Web 开发 JavaScript
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章