菜单和层的(高难度)问题

byybyybyy 2003-09-18 10:44:14
我把网页做成框架(上:120rows 下:*),我在上边的网页上作了一个动态菜单,是用层实现的,当我点击了菜单的一项,即更新下面的网页。但我的弹出菜单会很长(如:顶级是:文件,编辑,查看。。。在点击了文件后会弹出:新建,打印,保存,另存为,打开,发送,关闭)这样的话层的高度会高出上边的网页的高度,则会出现:菜单项-〉打开,发送,关闭。为不可见的(这个位置显示了下边网页的内容)。怎样解决?
也即:让层能显示在其他网页内容的上方,在鼠标离开后层就消失,显示原来网页的内容。??????多谢了!
...全文
68 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
hangzhoufeihu 2003-12-14
  • 打赏
  • 举报
回复
mark
超级大笨狼 2003-11-08
  • 打赏
  • 举报
回复
嘻嘻,xxrl(孔曰成仁,孟曰取E) 又被我的一堆帮助文件压在下面了,而且是英文的,是不是感觉有点喘不过来气啊?
xxrl 2003-09-22
  • 打赏
  • 举报
回复
这个问题前一阶段的大讨论,证明没有结果,只能用子框架的形式进行设计
超级大笨狼 2003-09-22
  • 打赏
  • 举报
回复

Contents Index Topic Contents

Previous Topic: I
Next Topic: IMG


IFRAME

--------------------------------------------------------------------------------

Description

Creates inline floating frames.

Remarks

This element is a block element.

The IFrame functions as a document within a document. Consequently, access to the IFrame object is provided through the frames collection. Use the frames collection to read or write to elements contained in an IFrame.

Properties

align, className, dataFld, dataSrc, document, frameBorder, frameSpacing, hspace, id, innerHTML, innerText, isTextEdit, lang, language, marginHeight, marginWidth, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerHTML, outerText, parentElement, parentTextEdit, scrolling, sourceIndex, src, style, tagName, title, vspace

Methods

contains, getAttribute, insertAdjacentHTML, insertAdjacentText, removeAttribute, scrollIntoView, setAttribute

Collections

all, children

Example

The following code returns a reference to the all collection within the IFrame.


document.all.frames["MyIFrame"].document.all


HTML Element

IFRAME



--------------------------------------------------------------------------------

Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.
超级大笨狼 2003-09-22
  • 打赏
  • 举报
回复
iframe不知道可不可以,你实验吧,好象不行

Contents Index Topic Contents

Previous Topic: I
Next Topic: IMG


IFRAME

--------------------------------------------------------------------------------

Description

Used to create in-line floating frames.

Syntax
<IFRAME
ALIGN=ABSBOTTOM | ABSMIDDLE | BASELINE | BOTTOM | LEFT | MIDDLE | RIGHT | TEXTTOP | TOP
BORDER=pixels
BORDERCOLOR=color
CLASS=classname
DATAFLD=colname
DATASRC=#ID
FRAMEBORDER=NO | YES | 0 | 1
FRAMESPACING=pixels
HEIGHT=n
HSPACE=pixels
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
MARGINHEIGHT=pixels
MARGINWIDTH=pixels
NAME=window_name | _blank | _parent | _self | _top
NORESIZE=NORESIZE | RESIZE
SCROLLING=AUTO | NO | YES
SRC=url
STYLE=css1-properties
TITLE=text
VSPACE=pixels
WIDTH=n
>



Parameter Description
ALIGN=ABSBOTTOM | ABSMIDDLE | BASELINE | BOTTOM | LEFT | MIDDLE | RIGHT | TEXTTOP | TOP Specifies the alignment for the control-like element.
BORDER=pixels Specifies the thickness of a border to be drawn around the element. The default is 0.
BORDERCOLOR=color Sets border color and must be used with the BORDER attribute, except for frames. For a complete list of colors, look at the Internet Explorer color table.
CLASS=classname Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag.
DATAFLD=colname The column name from the data source object that supplies the bound data.
DATASRC=#ID Indicates the ID of the data source object that supplies the data that is bound to this element.
FRAMEBORDER=NO | YES | 0 | 1 Specifies whether or not to display a 3-D border around the frame. "YES" or 1 causes a border to be displayed (default). "NO" or 0 displays no border.
FRAMESPACING=pixels Creates additional space between the frames.
HEIGHT=n Along with WIDTH, specifies the size at which the element is drawn. This attribute may be initially set in pixels or percentages.
HSPACE=pixels Along with VSPACE, specifies margins for the element.
ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position.
LANG=language Specifies which language to use in ISO standard language abbreviation form.
LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT Specifies the language the current script is written in and invokes the proper scripting engine. The default value is JAVASCRIPT. JAVASCRIPT, JSCRIPT The scripting language is written in JavaScript.
VBS, VBSCRIPT The scripting language is written in VBScript.

MARGINHEIGHT=pixels Sets the amount of top and bottom margin should be set before displaying the text in a frame.
MARGINWIDTH=pixels Sets the amount of left and right margin should be set before displaying the text in a frame.
NAME=window_name | _blank | _parent | _self | _top Specifies the window or frame to target the contents at. If no frame or window exists that matches the specified target, a new window is opened for the specified link. If no target is specified, the default is "_self" for a link within the same site or "_top" if the site is external. Special target values are listed below: _blank Specifies to load the link into a new unnamed window.
_parent Specifies to load the link into the immediate parent of the document the link is in.
_self Specifies to load the link into the same window the link was clicked in.
_top Specifies to load the link into the full body of the current window.

NORESIZE When this attribute is supplied, the frame is not resizable by the user. The default behavior allows the user to resize the frame.
SCROLLING=AUTO | NO | YES Specifies that the frame can be scrolled. If set to "AUTO," the browser determines whether scrollbars are necessary (default).
SRC=url Specifies a URL for the associated file to be displayed in the frame.
STYLE=css1-properties Specifies an in-line style sheet for the tag.
TITLE=text Used to provide advisory information.
VSPACE=pixels Along with HSPACE, specifies margins for the element.
WIDTH=n Along with HEIGHT, sets the initial size of the element. This attribute may be initially set in pixels or percentages.

Remarks

This element is a block element.

Both the start and end tags are required.

Example

<IFRAME FRAMEBORDER=0 SCROLLING=NO SRC="sample.htm"></IFRAME>

Scripting Object

IFRAME



--------------------------------------------------------------------------------

Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.
dippergao 2003-09-22
  • 打赏
  • 举报
回复
把iframe语句放在层的语句里就可以了
byybyybyy 2003-09-19
  • 打赏
  • 举报
回复
太好了,有点眉目了,iframe和层有甚吗区别?
怎莫用啊,给一个小小的例子吧。多谢了!!!!!
dippergao 2003-09-18
  • 打赏
  • 举报
回复
晕!
既然是菜单
就放在页面上面
不要用框架了。
byybyybyy 2003-09-18
  • 打赏
  • 举报
回复
现在不是怎么让层出现的问题,而是怎么让层浮在网页其他内容的上面,甚至其他网页的上面(框架内),
dippergao 2003-09-18
  • 打赏
  • 举报
回复
采用onmouse事件
把层设置成hide
菜单栏onmouse=show
内容部分onmouse=hide
  • 打赏
  • 举报
回复
把你的层用iframe替代才可以。
层在IE5.0会被框架挡住,
如果你不想改层的话,只能采用隐藏下面框架页的方式了。
也就是你显示下拉菜单时,将下面的框架页隐藏。
byybyybyy 2003-09-18
  • 打赏
  • 举报
回复
现在是在框架的前提下解决这个问题,期待中〉〉〉〉

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧