<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!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 runat="server">
<title>Untitled Page</title>
<style type="text/css">
.input
{
border:1px solid #003863;
font-size:14px;
font-family:Arial,Helvetica,sans-serif;
padding:3px;
}
</style> <script src="JS/jquery-1.3.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
$("input:first").click(function(){
$("img").hide(3000);
});
$("input:last").click(function(){
$("img").show(1000);
});
});
</script></head>
<body>
<form id="form1" runat="server">
<input type="button" value="Hide"/>
<input type="button" value="Show"/>
<img src ="Image/1.bmp"/>
</form>
</body>
</html>
------------------------------------本意想点Hide按钮时隐藏片,点Show按钮时显示图片.刚学JQuery,请各位高手指教!
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<style type="text/css">
.input
{
border:1px solid #003863;
font-size:14px;
font-family:Arial,Helvetica,sans-serif;
padding:3px;
}
</style> <script src="JS/jquery-1.3.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
$("input:first").click(function(){
$("img").hide(3000);
});
$("input:last").click(function(){
$("img").show(1000);
});
});
</script></head>
<body>
<form id="form1" runat="server">
<input type="button" value="Hide"/>
<input type="button" value="Show"/>
<img src ="Image/1.bmp"/>
</form>
</body>
</html>
------------------------------------本意想点Hide按钮时隐藏片,点Show按钮时显示图片.刚学JQuery,请各位高手指教!
解决方案 »
- 用js在父页面里获取的值传给模式窗口?
- js实现自动换焦点,大师们帮我看一下啊
- 帮忙看下 图片简单的在窗口上移动!哪里写错了?
- 急!!!怎样实现带页眉页脚分页打印,要能打印时表格的边框,但是页眉页脚部分的边框不打印
- IE中无意中发现的巨大问题,关于动态生成a标签
- 想要制作一款web音乐播放器,视频播放器 需要哪些东西
- 如何实现页面在没有鼠标点击或键盘键入一定时间内自动关闭
- 一个字符串数组,我想判断一字符串是否在此数组中,有此函数吗?
- <select>如何在javascrip中改变里面的内容
- 表单
- js加载-----------------------------------------------------
- js 数组 和乱码
$(function(){
$("input[@value=Hide]").click(function(){
$("img").hide(3000);
});
$("input[@value=Hide]").click(function(){
$("img").show(1000);
});
});
</script>
$(function(){
$("input[@value=Hide]").click(function(){
$("img").hide();
});
$("input[@value=Show]").click(function(){
$("img").show();
});
});
</script>
jquery的代码要根据最后生成的html代码写。
<script type="text/javascript">
$(function(){
$("input[value=Hide]").click(function(){
$("img").hide();
});
$("input[value=Show]").click(function(){
$("img").show();
});
});
</script>