我想实现类似http://weather.news.sina.com.cn/下的“国内天气”一点某个省就出现一个透明的对话框,我想实现鼠标经过我做的热点时就出现类似透明的对话框,请大家教我,谢谢!
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShowDialog.aspx.cs" Inherits="ShowDialog" %><!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>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="width: 704px; height: 368px">
<tr>
<td style="width: 100px">
</td>
</tr>
<tr>
<td style="width: 100px">
<asp:Image ID="Image1" runat="server" ImageUrl="~/image/55.gif" usemap="#Map"/><map name="ht" id="ht"><area shape="rect" coords="328,191,335,192" href="#" /></map></td>
</tr>
<tr>
<td style="width: 100px">
</td>
</tr>
</table>
<map name="Map" id="Map"><area shape="circle" coords="230,102,3" onmouseover="showx()"/>
</map>
</div>
</form>
</body>
</html>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShowDialog.aspx.cs" Inherits="ShowDialog" %><!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>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="width: 704px; height: 368px">
<tr>
<td style="width: 100px">
</td>
</tr>
<tr>
<td style="width: 100px">
<asp:Image ID="Image1" runat="server" ImageUrl="~/image/55.gif" usemap="#Map"/><map name="ht" id="ht"><area shape="rect" coords="328,191,335,192" href="#" /></map></td>
</tr>
<tr>
<td style="width: 100px">
</td>
</tr>
</table>
<map name="Map" id="Map"><area shape="circle" coords="230,102,3" onmouseover="showx()"/>
</map>
</div>
</form>
</body>
</html>
解决方案 »
- qq登录怎么在登录后弄个注册啊???
- js 正则匹配问题
- js 正则表达式 验证保留小数点后面两位小数
- ajax和跨域问题,请教!!!
- 初学者JavaScript征途一书中的代码,有一点不解,请高手指点,内贴有代码
- 框架问题
- 请问在javascript中怎么取得客户端(当前运行程序的那台机器)的主机名
- 初用javascrip,请问能否这样用?
- 关于获取机器IP的问题(急)
- easyui datagrid不等待后台返回数据就显示页面
- js关于鼠标的跟踪 一个例子
- 用js控制double型金额。如果输入如:369则把它改成369.00如果输入的是369.3则把它改成369.30。如果输入是369.36则不改变
jia ge yin cang shu xing de ceng
<div id="d1" style="zi ji she zhi xian shi fang shi zi ji xuan zhan kong jian huo bu zhan kong jian de zhi she wei yin cang">
jia zi ji yao xian shi de nei rong
</div>
<script>
function showx(){
document.all.d1.style."gang gang she de yin cang zhi de na shu xing"="she wei xian shi";
}
</script>
jian yi zai jia ge onmouseout shi jian shu biao li kai shi zai ba shu xing gai wei yin cang
ru guo you duo ge zui hao jia yi ge chuan id de can shu
yong
var x=document.all("can shu");
x.style.shuxing="yincang/xianshi";