帧 - 禁用/启用菜单 [英] Frames -- Disable/Enable Menus

查看:57
本文介绍了帧 - 禁用/启用菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

目前我在一个框架环境中工作,我有
将窗口划分为20%和80%,20%用于导航

用于显示原始内容的目的和正确的框架。现在我想要

来禁用广告启用放置在左框架中的菜单项

用于导航目的。


可以你们中有谁输入我的想法如何继续?如果你需要任何其他信息,请告诉我。


谢谢!

解决方案

Deepan HTML写道:


大家好,

目前我在一个框架环境中工作,我有

将窗口划分为20%和80%,20%用于导航

目的和用于显示原始内容的右框架。现在我想要

来禁用广告启用放置在左框架中的菜单项

用于导航目的。


可以你们中有谁输入我的想法如何继续?如果你需要任何其他信息,请告诉我。



有两种方法可以做到。

第一种方法是使用javascript,它相对简单。您定义

javascript函数来控制菜单项状态,并将其称为onload()所有

右页有2个参数 - 项目ID和所需状态。例如

< body onload =" setmenu(''first'',''disable'')">

这种方式可以用于静态html页面。


第二种方法是使用脚本(Perl CGI或PHP)生成框架集并离开

页面。在这种情况下,您必须使用带有参数的frameset链接,并且这个
脚本(用于生成框架集)将参数传递给其他脚本,以生成左侧菜单的
。这种方式相对来说相对更复杂,但即使

用户已禁用javascript也能正常工作。


-

Petr Vileta,捷克共和国

(我的服务器拒绝来自Yahoo和Hotmail的所有邮件。请将您的

邮件从另一个非垃圾邮件网站发送给我。)


请回复< petr AT practisoft DOT cz>


Petr Vileta写道:


第二种方法是使用脚本(Perl CGI或PHP)生成框架集和

左页。在这种情况下,您必须使用带有参数

的框架集链接,并且此脚本(用于生成框架集)将参数传递给其他

脚本以生成左侧菜单。这种方式相对更复杂但即使用户禁用了javascript,也可以工作。



如果按照这种方式进行,那么就一起省去所有帧!

http://www.google。 com / search?hl = en& q ... =谷歌+搜索

如何在另一个中包含一个html文件 - Google搜索
http://www.google.com/search ?hl = en& q ... il& btnG =搜索

为什么框架是邪恶的 - Google搜索


-

保重,


Jonathan

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

LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Jonathan N. Little写道:


Petr Vileta写道:
< blockquote class =post_quotes>
>第二种方法是使用脚本(Perl CGI或PHP)生成框架集和左页。在这种情况下,您必须使用带有
参数的frameset链接,并且此脚本(用于生成框架集)将参数传递给其他脚本以生成左侧菜单。这种方式相对更复杂,但即使用户禁用了javascript也能正常工作。



如果按照这种方式进行,那么就一起省去所有帧!

http://www.google。 com / search?hl = en& q ... =谷歌+搜索

如何在另一个中包含一个html文件 - Google搜索
http://www.google.com/search ?hl = en& q ... il& btnG =搜索

为什么框架是邪恶的 - Google搜索



是,我知道,但最初的问题是关于如何做框架 ;-)

(见主题)

-

捷克共和国Petr Vileta

(我的服务器拒绝来自雅虎和Hotmail的所有消息。请从另一个非垃圾邮件发送者网站发送你的

邮件。)


请回复< petr AT practisoft DOT cz> ;


Hi All,
Currently i am working in a framed environment where i have
divided the window as 20% and 80% and the 20% is used for navigation
purpose and right frame for displaying the orignal content. Now i want
to Disable ad Enable the menu items which are placed in the left frame
for navigation purpose.

Can any of you input me with any idea as how to proceed? If you
need any other information then please let me know.

Thanks!

解决方案

Deepan HTML wrote:

Hi All,
Currently i am working in a framed environment where i have
divided the window as 20% and 80% and the 20% is used for navigation
purpose and right frame for displaying the orignal content. Now i want
to Disable ad Enable the menu items which are placed in the left frame
for navigation purpose.

Can any of you input me with any idea as how to proceed? If you
need any other information then please let me know.

There is two possible ways to do it.
First way is to use javascript and it is relatively simple. You define
javascript function to control menu item status and call it as onload() at all
right pages with 2 parameters - item id and needed state. For example
<body onload="setmenu(''first'',''disable'')">
This way you can use for static html pages.

Second way is to use scripts (Perl CGI or PHP) to generate frameset and left
page. In this case you must use links to frameset with parameters and this
script (for generating frameset) pass paramaters to other script for
generating left menu. This way is relatively more complex but work even if
user have javascript disabled.

--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your
mail from another non-spammer site please.)

Please reply to <petr AT practisoft DOT cz>


Petr Vileta wrote:

Second way is to use scripts (Perl CGI or PHP) to generate frameset and
left page. In this case you must use links to frameset with parameters
and this script (for generating frameset) pass paramaters to other
script for generating left menu. This way is relatively more complex but
work even if user have javascript disabled.

If doing it this way then dispense with frames all together!

http://www.google.com/search?hl=en&q...=Google+Search
how to include one html file in another - Google Search
http://www.google.com/search?hl=en&q...il&btnG=Search
why frames are evil - Google Search

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Jonathan N. Little wrote:

Petr Vileta wrote:

>Second way is to use scripts (Perl CGI or PHP) to generate frameset
and left page. In this case you must use links to frameset with
parameters and this script (for generating frameset) pass paramaters
to other script for generating left menu. This way is relatively
more complex but work even if user have javascript disabled.


If doing it this way then dispense with frames all together!

http://www.google.com/search?hl=en&q...=Google+Search
how to include one html file in another - Google Search
http://www.google.com/search?hl=en&q...il&btnG=Search
why frames are evil - Google Search

Yes, I know it, but original question was be about "How to do for frames" ;-)
(see Subject)
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your
mail from another non-spammer site please.)

Please reply to <petr AT practisoft DOT cz>


这篇关于帧 - 禁用/启用菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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