各位大哥,有没有顶部和底部不动,中部根据顶部的链接变换的实例代码? 不用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 为什么下述代码无法实现全选和反全选功能??? art.dialog求解 js判断复选框提示 一个分符串的问题,跪求帮助 求周数转换成日期的js activex控件在ie6中异常,ie7中正常,急 Extjs 4.2+MVC+vs2010 图片底端对齐 如何把网页的内容(或网页中的部份内空)转换成其它格式---Txt, DBF XLS XML 请教:层相对于层的定位如何实现? 请前辈指点 有谁用过淘宝版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