如何用javascript在页面中动态更新某一块的内容?
我的源文件如下:
<html>
<head> <title>show picture </title>
<script>
function change(fileName)
{
// var a = document.getElementsByTagName("param")[0].value;
document.getElementsByTagName("param")[0].value=fileName;
//var b =document.getElementsByTagName("param")[0].value;alert(b);
location.reload();
}
</script>
</head>
<body>
<div id="middle1" z-index="2" >
<object id="showpic" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
style="width: 500px; height:300px;">
<param name="movie" value="shiyuan.swf">
<param name="quality" value="High">
<embed src="../flash/menu1.swf" quality="high" pluginspage="ht
相关问答:
<form id="form1" runat="server">
<div>
<script type="text/javascript">
function oo(a){
document.getEleme ......
如何实现当鼠标悬停控件上时,出现该控件的尾部显示对应的层,鼠标移动到该层上进行相应的操作,当鼠标移除时(不在控件上也不在层上)层隐藏,
HTML code:
<html>
<head>
<meta http-equiv= ......
后台:
protected void form_ini2(string id)
{
//处理代码
}
前台:
<script language="javascript">
function DbClickEvent(a ......
<script language="javascript">
function click() {
if (event.button==2) { //button==1为左键
alert('点击查看文章详细内容!')
}
}
document.onmousedown=click
</script>
以上 ......