各位大哥,有没有顶部和底部不动,中部根据顶部的链接变换的实例代码? 不用frame,因为好像不能根据页面的高度自动变化,底部经常显示不出来 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!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></head><script type="text/javascript">function ChangeDiv(obj){ document.getElementById('test').innerHTML=obj;}</script><body><input type="button" onclick="ChangeDiv(this.value)" value="123123123" /><input type="button" onclick="ChangeDiv(this.value)" value="456456456" /><input type="button" onclick="ChangeDiv(this.value)" value="789789789" /><div id="test">default</div></body></html> 您能不能给个这样的示例,就是不用按钮,用连接,比如baidu这样的超级链接,然后在test中显示baidu的页面?真是麻烦您了,我是菜鸟 搜索下FRAME自适应高度一大堆。。 <!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><style> body{margin:0;padding:0;} DIV{background:#666;} #header{width:100%;height:100px;} #nav{width:100px;height:100px; float:left;} #main{margin-left:110px; float:left;} #footer{width:100%;clear:both;height:100px;} a{display:block;}</style></head><body> <div id="header">header</div> <div id="nav"> <a href="1.html">111</a> <a href="2.html">222</a> <a href="3.html">333</a> </div> <div id="main"> </div> <div id="footer">footer</div><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script><script> $(function(){ $("a").bind("click", function(){ $("#main").load($(this).attr("href")); return false; }) });</script></body></html>jq load 域名命名征集 今天要交作业,增加订单的题不会做,请各位大侠指点迷津!!! 怎样在网页在线查询股票名称 如何在js文件里取string的值 同一段代码,不同方式访问结果不一样,请赐教! 如何实现图片托动?图片上瞄点链接也随图片移动而移动? xmlHttp.onreadystatechange的兼容性问题 我用javascript写的一个在线背单词网站 如何在弹出窗口提交后刷新父窗口(opener)? 简单的 confirm() 使用问题!谢谢!!! 请前辈指点 有谁用过淘宝版YUI Compressor,压缩UTF-8代码时,出问题
<!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>
</head>
<script type="text/javascript">
function ChangeDiv(obj){
document.getElementById('test').innerHTML=obj;
}
</script>
<body>
<input type="button" onclick="ChangeDiv(this.value)" value="123123123" />
<input type="button" onclick="ChangeDiv(this.value)" value="456456456" />
<input type="button" onclick="ChangeDiv(this.value)" value="789789789" /><div id="test">default</div>
</body>
</html>
FRAME自适应高度一大堆。。
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
body{margin:0;padding:0;}
DIV{background:#666;}
#header{width:100%;height:100px;}
#nav{width:100px;height:100px; float:left;}
#main{margin-left:110px; float:left;}
#footer{width:100%;clear:both;height:100px;}
a{display:block;}
</style>
</head><body>
<div id="header">header</div>
<div id="nav">
<a href="1.html">111</a>
<a href="2.html">222</a>
<a href="3.html">333</a>
</div>
<div id="main">
</div>
<div id="footer">footer</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>
$(function(){
$("a").bind("click", function(){
$("#main").load($(this).attr("href"));
return false;
})
});
</script>
</body>
</html>
jq load