zoukankan
html css js c++ java
下面是小图,点一下上面就会出现大图
http://bbs.blueidea.com/thread-2846567-1-1.html
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<
html
xmlns
="http://www.w3.org/1999/xhtml"
>
<
head
>
<
meta
http-equiv
="Content-Type"
content
="text/html; charset=gb2312"
/>
<
title
>
无标题文档
</
title
>
<
style
type
="text/css"
>
img
{
}
{
cursor
:
pointer
}
#big img
{
}
{
width
:
100px
;
height
:
100px
;
}
</
style
>
</
head
>
<
body
>
<
script
type
="text/javascript"
>
function
change(a)
{
var
bigpic
=
document.getElementById(
"
bigpic
"
);
if
(a
==
1
)
{bigpic.setAttribute(
"
src
"
,
"
http://www.chenbincb.com.cn/cnblogs/images/smile.gif
"
)}
if
(a
==
2
)
{bigpic.setAttribute(
"
src
"
,
"
http://www.chenbincb.com.cn/cnblogs/images/frown.gif
"
)}
if
(a
==
3
)
{bigpic.setAttribute(
"
src
"
,
"
http://www.chenbincb.com.cn/cnblogs/images/tongue.gif
"
)}
}
</
script
>
<
div
id
="big"
>
<
img
src
="http://www.chenbincb.com.cn/cnblogs/images/smile.gif"
alt
=""
id
="bigpic"
>
</
div
>
<
img
src
="http://www.chenbincb.com.cn/cnblogs/images/smile.gif"
alt
=""
onclick
="change(1)"
>
<
img
src
="http://www.chenbincb.com.cn/cnblogs/images/frown.gif"
alt
=""
onclick
="change(2)"
>
<
img
src
="http://www.chenbincb.com.cn/cnblogs/images/tongue.gif"
alt
=""
onclick
="change(3)"
>
</
body
>
</
html
>
查看全文
相关阅读:
Java Tread多线程(2)多线程安全问题
Android 自己定义ViewGroup 实战篇 -> 实现FlowLayout
类的继承私有成员问题
HTTP协议之响应头Date与Age
《长寿的基因》:尝试挑战主流医学界的观点,态度不严谨,有点像民间科学家。2星。
《医疗产业大棋局》,4星。有点旧了,依旧是比较难得的有深度的中美两国医疗市场的概括与分析。
《时间的朋友2016》:吴伯凡写的稿子,比去年李翔写的差。3星。
《你凭什么做好互联网》。5星。洞察力比较强的从业者的经验集。适合互联网行业各级别各角色阅读。
《长安十二时辰》。5星。大唐首都反恐24小时。基本是大片剧本。有创意的穿越架空小说。
读过MBA的CEO更自私?《哈佛商业评论》2016年第12期。4星
原文地址:https://www.cnblogs.com/CB/p/1154254.html
最新文章
Jquery progressbar通过Ajax请求获取后台进度演示
Add custom and listview web part to a page in wiki page using powershell
highcharts dynamic change line color
织梦sitemap模板获取文章列表
sql查询分析器中显示行号
链接服务器---无效的产品名称
使用sql生成UUID
因为链接服务器 "SQLEHR" 的 OLE DB 访问接口 "SQLNCLI10" 无法启动分布式事务
sqlserver分布式 用触发器插入数据
sql server字符串的类型
热门文章
Spoon新建repository的时候
OPTION SQL_SELECT_LIMIT=DEFAULT'
应用程序已被安全设置阻止
Can not find the tag library descriptor for "http://www.springframework.org/tags"
百度地图3.0初用笔记(二)
ASP.NET配置文件里经常使用到的节点信息
ln命令
悟
分布式进阶(十五)ZMQ
【剑指offer】面试题37:两个链表的第一个公共结点
Copyright © 2011-2022 走看看