开放不同包括在同一个div内 [英] opening different includes within the same div

查看:121
本文介绍了开放不同包括在同一个div内的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是PHP新手,所以请放轻松。


我有一个页面,其中2个div相邻,左边是菜单, />
右边的内容。现在我想知道的是,当我点击菜单div中的不同链接时,是否有可能使用b $ b来改变内容div中包含的文件?


所以基本上,当我点击新闻链接时,它会在内容div中包含文件

''newss.php'',依此类推菜单的其余部分

项目。


这是我的菜单中的链接列表和相应的文件

需要点击每个内容div时打开:


主页main.php

团队team.php

链接links.php

联系contact.php


我会很乐意提供任何帮助!

Hi, I am very new to PHP so please go easy on me.

I have a page with 2 divs next to each other, a menu in the left and
content in the right. Now what I want to know, is it possible to
chenge the file being included in the content div when I click on
different links in the menu div?

So basically, when I click on the ''News'' link it includes the file
''news.php'' in the content div and so on for the rest of the menu
items.

Here is a list of links within my menu and the corresponding files
that need to be opened in the content div when each is clicked on:

Home main.php
Team team.php
Links links.php
Contact contact.php

I would be greatful for any help!

推荐答案

3月4日,10:21,timhaynes1 ... @ googlemail.com写道:
On 4 Mar, 10:21, timhaynes1...@googlemail.com wrote:

我很新对PHP请你放轻松。


我有一个页面,彼此相邻,有两个div,菜单中有一个e左边和

内容在右边。现在我想知道的是,当我点击菜单div中的不同链接时,是否有可能使用b $ b来改变内容div中包含的文件?


所以基本上,当我点击新闻链接时,它会在内容div中包含文件

''newss.php'',依此类推菜单的其余部分

项目。


这是我的菜单中的链接列表和相应的文件

需要点击每个内容div时打开:


主页main.php

团队team.php

链接links.php

联系contact.php


我会很乐意为您提供帮助!
Hi, I am very new to PHP so please go easy on me.

I have a page with 2 divs next to each other, a menu in the left and
content in the right. Now what I want to know, is it possible to
chenge the file being included in the content div when I click on
different links in the menu div?

So basically, when I click on the ''News'' link it includes the file
''news.php'' in the content div and so on for the rest of the menu
items.

Here is a list of links within my menu and the corresponding files
that need to be opened in the content div when each is clicked on:

Home main.php
Team team.php
Links links.php
Contact contact.php

I would be greatful for any help!



您正在描述CMS(内容管理系统)。


安装Mambo或Joomla或其他CMS,它是一切都为你完成。

You are describing a CMS (Content Management System).

Install Mambo or Joomla or some other CMS and it is all done for you.


您正在描述CMS(内容管理系统)。
You are describing a CMS (Content Management System).

>

安装Mambo或Joomla或其他一些CMS,这一切都已完成。
>
Install Mambo or Joomla or some other CMS and it is all done for you.



嗯,不,因为这对我想要的东西来说有点复杂。我只需要
需要在特定的< divwhen

相关链接中点击每个4包含。


无论如何,谢谢。

Well no, because that is a little complex for what I want. I only
need to open each of the 4 includes in a specific <divwhen the
relevant link is clicked on.

Thanks anyway.


您可以使用Frames。如果你想影响
You can use Frames for this. If you want to influence the content of a

DIV的内容,而且已经没有加载整个页面,那么你就是看看AJAX的b $ b,但是我想我已经建议了。


一个CMS可能看起来很长,但是当你决定开发你的网站

时,你最终会建立起来越来越多的人已经建立了之前已建成的

DIV that is already there without loading the whole page, you are
looking at AJAX, but I think I already suggested that.

A CMS may seem long winded, but as you decide to develop your site
further, you will end up building more and more of what folks have
already built before.



是的,CMS可能是明智的,从长远来看,我最终可能会使用一个但是现在我只想学习PHP和我被告知

最好的学习方法是使用一些PHP实际构建一个站点。我从来没有使用过框架,撒旦发明了这些! AJAX,听起来很有意思,我想我可能会跟着这个,感谢你的建议。

Yes a CMS is probably sensible and in the long run I may eventually
use one but for now I just want to learn PHP and i''ve been told the
best way to learn is to actually build a site using some PHP. I never
use frames, satan invented these! AJAX, sounds interesting, I think I
might follow this up, thanks for the advice.


这篇关于开放不同包括在同一个div内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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