请高手指点,关于如何记录页面位置的问题 现在已经有一个2个做好的页面 a 和 b a 页面很长,打开以后在中部有一个添加的按键,可以访问b页面,当b 页面完成添加后 自动返回a页面中部的添加按键那个位置。有点类似 页面内的超链接 那个功能 只不过是2个页面间的切换,谢谢 高手指点下,实在不知道怎么下手 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这个问题用锚点就可以很好的解决,锚点在不同页面间的调用是通过地址后面传参的方法,例如: 给你个小例子吧,你看看就会了很简单的:==========================================页面1:---------<!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><body><table width="750" height="500" border="1" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="400" height="500"><p><a href="Untitled-2.html#liang" target="guo">第一个毛点</a></p> <p> </p> <p><a href="Untitled-2.html#guo1" target="guo">第二个毛点</a></p> <p> </p> <p><a href="Untitled-2.html#hong" target="guo">第三个毛点</a></p> <p> </p> <p> </p></td> <td width="350" height="500"><iframe src="" name="guo" width="350" height="500" scrolling="auto" frameborder="0"></iframe></td> </tr></table></body></html>--------------------------------------页面2------------<!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><body><table width="100%" height="2000" border="1" cellpadding="0" cellspacing="0"> <tr> <td height="700" valign="top" bgcolor="#00FF66"><a name="liang" id="liang"></a></td> </tr> <tr valign="top"> <td height="700" bgcolor="#000000"><a name="guo1" id="guo1"></a></td> </tr> <tr valign="top"> <td height="700" bgcolor="#FF0000"><a name="hong" id="hong"></a></td> </tr></table></body></html> 对没有ID 的 div 要怎么操作 jquery的ajax问题 请教,javascript获取div的left、top、height、width! 怎么样才flash 调用js 呢 关于用鼠标图片拖图片进输入框的问题! 鼠标移动过快,onmouseout事件就失效了, 怎么根据查看别人的javascript代码 修改了一下Meizz的日历 网页中透明背景图象的处理! jquery easyui combotree 加载数据 tree出来了 但是显示数据undefined 各位CSDN的兄弟们,有时间看一下这个贴子。谢谢 用链接来调用JS怎么做
给你个小例子吧,你看看就会了很简单的:
==========================================
页面1:
---------
<!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><body>
<table width="750" height="500" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="400" height="500"><p><a href="Untitled-2.html#liang" target="guo">第一个毛点</a></p>
<p> </p>
<p><a href="Untitled-2.html#guo1" target="guo">第二个毛点</a></p>
<p> </p>
<p><a href="Untitled-2.html#hong" target="guo">第三个毛点</a></p>
<p> </p>
<p> </p></td>
<td width="350" height="500"><iframe src="" name="guo" width="350" height="500" scrolling="auto" frameborder="0"></iframe></td>
</tr>
</table>
</body>
</html>
--------------------------------------
页面2
------------
<!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><body>
<table width="100%" height="2000" border="1" cellpadding="0" cellspacing="0">
<tr>
<td height="700" valign="top" bgcolor="#00FF66"><a name="liang" id="liang"></a></td>
</tr>
<tr valign="top">
<td height="700" bgcolor="#000000"><a name="guo1" id="guo1"></a></td>
</tr>
<tr valign="top">
<td height="700" bgcolor="#FF0000"><a name="hong" id="hong"></a></td>
</tr>
</table>
</body>
</html>