使用2个水平框架时HV Menu 5.5出现问题。 [英] Problem with HV Menu 5.5 when working with 2 horizontal frames.

查看:79
本文介绍了使用2个水平框架时HV Menu 5.5出现问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




当我有2帧并且菜单弹出窗口时菜单无法正常工作

frame =文档目标框架,当我选择时项目在

菜单中,文档打开,菜单卡住了。


这是我正在使用的代码:

FrameSet -------------------------------------------- -----------

< html>

< head>

< title>您的标题< / title>

< / head>

< frameset rows =" 20%,*" framespacing =''0''frameborder =''1''border = 0>

< frame frameborder =''1''framespacing =''0''src =" 1.html" ; noresize

scrolling =''no''name =" MyFrameOne">< / frame>

< frame frameborder =''1''framespacing =' '0''src =" 2.html"

name =" MyFrameTwo">< / frame>

< / frameset>

< / html>


1.html -------------------------- -----------------------------------------

< ; html>

< head>你的标题html< / head>

< body bgcolor =" blue">

Frame 1

< script type =''text / javascript''>

// HV菜单 - 由Ger Versluis提供( http://www.burmees.nl/

//提交给动态驱动器( http://www.dynamicdrive.com

//访问 http://www.dynamicdrive.com cript和更多

函数Go(){return}< / script>

< script type =''text / javascript''src =''exmplmenu_var.js ''>< / script>

< script type =''text / javascript''src =''menu_com.js''>< / script>

< / body>

< / html>


2.html -------------- --------------------------------------------------

< html>

< body

onload =" javascript :{if(parent.frames) [0]&& parent.frames [''MyFrameOne'']。Go)parent.frames [''MyFrameOne'']。Go()}"

bgcolor =" red" ;>

第2帧

< / body>

< / html>


exmplmenu_var.js ---------------------------------------------- ----------

var NoOffFirstLineMenus = 5; //第一级物品的数量

var LowBgColor =''#D5D9FE''; //当鼠标不是时的背景颜色

over

var LowSubBgColor =''#D5D9FE''; //鼠标不亮时的背景颜色

over sub

var HighBgColor =''black''; //鼠标结束时的背景颜色

var HighSubBgColor =''black''; //当鼠标结束时的背景颜色

on subs

var FontLowColor =''navy''; //鼠标悬停时的字体颜色

var FontSubLowColor =''navy''; //当鼠标不是字体颜色时

over

var FontHighColor =''white''; //鼠标结束时的字体颜色

var FontSubHighColor =''white''; //鼠标结束时的字体颜色

var BorderColor =''navy''; //边框颜色

var BorderSubColor =''navy''; //潜艇的边框颜色

var BorderWidth = 1; //边框宽度

var BorderBtwnElmnts = 1; //元素1或0之间的边界

var FontFamily =" arial,comic sans ms,technical" //字体系列菜单

item

var FontSize = 8; //字体大小菜单项

var FontBold = 0; //粗体菜单项1或0

var FontItalic = 0; //斜体菜单项1或0

var MenuTextCentered =''left''; //项目文字位置''左'',''居中''

或''右''

var MenuCentered =''left''; //菜单水平位置''左'',

''中心''或''右''

var MenuVerticalCentered =''top''; //菜单顶点位置''顶部'',

''中'',''底''或静态

var ChildVerticalOverlap = .2; //垂直重叠子/父

var StartTop = 16; //菜单偏移x坐标

var StartLeft = 0; //菜单偏移y坐标

var VerCorrect = 0; //多帧y校正

var HorCorrect = 0; //多帧x校正

var LeftPaddng = 3; //左边填充

var TopPaddng = 2; //顶部填充

var FirstLineHorizo​​ntal = 1; //设置为1用于水平菜单,0用于

垂直

var MenuFramesVertical = 0; // cols或行1或0中的帧

var DissapearDelay = 1000; //菜单折叠前的延迟

var TakeOverBgColor = 1; //菜单框架接管背景颜色

子项框架

var FirstLineFrame =''MyFrameOne''; //第一级出现的框架

var SecLineFrame =''MyFrameTwo''; //子级别出现的框架

var DocTargetFrame =''MyFrameTwo''; //目标文件的框架

出现

var TargetLoc =''myMenu''; //用于相对定位的span id

var HideTop = 0; //加载新文档1时隐藏第一级或

0

var MenuWrap = 1; //启用/禁用菜单换行1或0

var RightToLeft = 0; //启用/禁用从右到左展开1或

0

var UnfoldsOnClick = 0; // Level 1展开onclick / onmouseover

var WebMasterCheck = 0; //菜单树检查开启或关闭1或0

var ShowArrow = 1; //当1

var KeepHilite = 1时使用箭头gifs; //保持选定的路径高亮

var Arrws = [''tri.gif'',5,10,''tridown.gif'',10,5,''trileft.gif'', 5,10]; //

箭头来源,宽度和高度


有什么想法吗?

Elad

Hi

The Menu doesn''t work properly when I have 2 frame and the Menu popup
frame=document target frame, when I choose item in
the menu the doc opened and the menu get stuck.

Here is the code I''m using:

FrameSet -------------------------------------------------------
<html>
<head>
<title>Your Title</title>
</head>
<frameset rows="20%,*" framespacing=''0'' frameborder=''1'' border=0>
<frame frameborder=''1'' framespacing=''0'' src="1.html" noresize
scrolling=''no'' name="MyFrameOne"></frame>
<frame frameborder=''1'' framespacing=''0'' src="2.html"
name="MyFrameTwo"></frame>
</frameset>
</html>

1.html -------------------------------------------------------------------
<html>
<head>your header html</head>
<body bgcolor="blue">
Frame 1
<script type=''text/javascript''>
//HV Menu- by Ger Versluis (http://www.burmees.nl/)
//Submitted to Dynamic Drive (http://www.dynamicdrive.com)
//Visit http://www.dynamicdrive.com for this script and more
function Go(){return}</script>
<script type=''text/javascript'' src=''exmplmenu_var.js''></script>
<script type=''text/javascript'' src=''menu_com.js''></script>
</body>
</html>

2.html ----------------------------------------------------------------
<html>
<body
onload="javascript:{if(parent.frames[0]&&parent.frames[''MyFrameOne''].Go)parent.frames[''MyFrameOne''].Go()}"
bgcolor="red">
Frame 2
</body>
</html>

exmplmenu_var.js --------------------------------------------------------
var NoOffFirstLineMenus=5; // Number of first level items
var LowBgColor=''#D5D9FE''; // Background color when mouse is not
over
var LowSubBgColor=''#D5D9FE''; // Background color when mouse is not
over on subs
var HighBgColor=''black''; // Background color when mouse is over
var HighSubBgColor=''black''; // Background color when mouse is over
on subs
var FontLowColor=''navy''; // Font color when mouse is not over
var FontSubLowColor=''navy''; // Font color subs when mouse is not
over
var FontHighColor=''white''; // Font color when mouse is over
var FontSubHighColor=''white''; // Font color subs when mouse is over
var BorderColor=''navy''; // Border color
var BorderSubColor=''navy''; // Border color for subs
var BorderWidth=1; // Border width
var BorderBtwnElmnts=1; // Border between elements 1 or 0
var FontFamily="arial,comic sans ms,technical" // Font family menu
items
var FontSize=8; // Font size menu items
var FontBold=0; // Bold menu items 1 or 0
var FontItalic=0; // Italic menu items 1 or 0
var MenuTextCentered=''left''; // Item text position ''left'', ''center''
or ''right''
var MenuCentered=''left''; // Menu horizontal position ''left'',
''center'' or ''right''
var MenuVerticalCentered=''top''; // Menu vertial position ''top'',
''middle'',''bottom'' or static
var ChildOverlap=.2; // horizontal overlap child/ parent
var ChildVerticalOverlap=.2; // vertical overlap child/ parent
var StartTop=16; // Menu offset x coordinate
var StartLeft=0; // Menu offset y coordinate
var VerCorrect=0; // Multiple frames y correction
var HorCorrect=0; // Multiple frames x correction
var LeftPaddng=3; // Left padding
var TopPaddng=2; // Top padding
var FirstLineHorizontal=1; // SET TO 1 FOR HORIZONTAL MENU, 0 FOR
VERTICAL
var MenuFramesVertical=0; // Frames in cols or rows 1 or 0
var DissapearDelay=1000; // delay before menu folds in
var TakeOverBgColor=1; // Menu frame takes over background color
subitem frame
var FirstLineFrame=''MyFrameOne''; // Frame where first level appears
var SecLineFrame=''MyFrameTwo''; // Frame where sub levels appear
var DocTargetFrame=''MyFrameTwo''; // Frame where target documents
appear
var TargetLoc=''myMenu''; // span id for relative positioning
var HideTop=0; // Hide first level when loading new document 1 or
0
var MenuWrap=1; // enables/ disables menu wrap 1 or 0
var RightToLeft=0; // enables/ disables right to left unfold 1 or
0
var UnfoldsOnClick=0; // Level 1 unfolds onclick/ onmouseover
var WebMasterCheck=0; // menu tree checking on or off 1 or 0
var ShowArrow=1; // Uses arrow gifs when 1
var KeepHilite=1; // Keep selected path highligthed
var Arrws=[''tri.gif'',5,10,''tridown.gif'',10,5,''trileft.gif'',5, 10]; //
Arrow source, width and height

Any idea ?
Elad

推荐答案

elad于2003年11月24日写道:
elad wrote on 24 Nov 2003:


当我有菜单时,菜单无法正常工作2帧和菜单
弹出框架=文档目标框架,当我在菜单中选择菜单时,文档打开,菜单卡住。
Hi

The Menu doesn''t work properly when I have 2 frame and the Menu
popup frame=document target frame, when I choose item in
the menu the doc opened and the menu get stuck.




< snip reposted code>


这是您第三次发布此主题。停下来。它是否发生在你的第一个地方与你实际编写脚本的人联系?
?他们是您获得解决方案的最佳选择。


迈克


-

Michael Winter
M.******@blueyonder.co.uk.inva 盖子(删除.invalid以回复)



<snip reposted code>

This is the third time you''ve posted a topic on this. Stop it. Did it
occur to you to contact the person that actually wrote the script in
the first place? They would be your best bet to get a solution.

Mike

--
Michael Winter
M.******@blueyonder.co.uk.invalid (remove ".invalid" to reply)


在文章< b6 ********************** ****@posting.google.com>,
el ******* ****@comverse.com 启发我们...
In article <b6**************************@posting.google.com >,
el***********@comverse.com enlightened us with...


当我有2帧时,菜单无法正常工作菜单弹出窗口
frame =文档目标框架,当我在菜单中选择菜单时,文档打开,菜单卡住。
Hi

The Menu doesn''t work properly when I have 2 frame and the Menu popup
frame=document target frame, when I choose item in
the menu the doc opened and the menu get stuck.




你有一个目标myMenu,但我在2.html

代码中看不到这样的目标div,脚本期望它。


你刚刚离开为了空间,或者你忘了把它放在

真正的来源?


-

~kaeli~
高原是一种高级奉承。
http: //www.ipwebdesign.net/wildAtHeart
http:// www .ipwebdesign.net / kaelisSpace



You have a target myMenu, but I saw no such target div in the 2.html
code, where the script expected it to be.

Did you just leave that out for space, or did you forget to put it in
the real source?

--
~kaeli~
A plateau is a high form of flattery.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace


1。实际上这是我第二次就这个问题打开一个主题。

2.我开了一个新话题,因为我很急需得到一个

的回答。

3.如果我可以联系写这篇文章的人我会有

已经这样做了。

4.论坛 - 非常有用创建,以便用户可以提问。我不认为你好b $ b认为你是论坛经理。


感谢您的帮助...


***通过开发人员指南 http://www.developersdex.com 发送***

不要只是参加USENET ......获得奖励!
1. Actually it''s the second time I open a topic on this issue.
2. I opened a new topic because it is very urgent to me to get an
answer.
3. If I could have contact the person who wrote this I would have
already do that.
4. Forums - are usefully created so users can ask questions. and I don''t
think you are the forum manager.

Thanks for you help...

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!


这篇关于使用2个水平框架时HV Menu 5.5出现问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆