Jquery 面板选项卡

发布于 2024-11-17 21:45:51 字数 538 浏览 3 评论 0原文

好吧,我想使用 php、mysql 和 jquery 制作一个 rpg 系统。这个想法是,会有一个选项卡式内容区域,其中包含城镇、田野、统计数据等选项卡。每个选项卡都有一个内容区域,该区域是对该选项卡的 php 系统的调用。

问题是,是否可以使用 jquery 制作一个普通程序中的窗口,我可以在其中动态更改内容。举个例子,加载的第一个选项卡是统计信息,这里会有更多与统计信息相关的选项卡/部分,第一个是角色统计信息。但我想做的第一件事是检查用户是否登录了该网站,我知道该怎么做,这不是问题,问题是当他们登录时,它会检查他们是否有一个角色,如果不这样做,则需要加载角色创建系统,如果这样做,则加载统计选项卡。

有没有办法说他们没有角色在选项卡中显示创建系统,这将是统计数据,调用选项卡创建,一旦他们创建角色,在同一选项卡中加载统计数据并将其重命名为统计数据。

换句话说,能够设置一个选项卡式内容系统,在其中我可以通过其他 php 系统更改选项卡,而不必每次都创建一个全新的选项卡式内容系统。

正如你可能认为我是 jquery 新手。我有 php 经验,虽然不是很多,还有 mysql、html 等。

Ok so I am wanting to make a rpg system using php, mysql, and jquery. The idea is that there would be a tabbed content area that would have tabs for things like the town, the field, stats etc. Each tab would have a content area that is a call to a php system for that tab.

Here is the thing, is it possible to make a, what would be a window in a normal program, with jquery in which I can dynamically change the content. Let be give an example, the first tab that loads is stats, in here there would be more tabs/sections related to stats, with the first being character stats. But the first thing that I want to do is check to see if the user is logged in to the site, I know how to do that, that isnt the issue, the issue is when they are it checks to see if they have a character, if they dont it needs to load the character creation system, if they do it loads the stats tab.

Is there a way to say on they don't have a character show the creation system in the tab that would be stats, call the tab create, once they are down creating the character, load the stats in the same tab and rename it to stats.

Another words be able to setup a tabbed content system in which I can change the tabs via other php systems without having to make a whole new tabbed content system each time.

As you might think I am new to jquery. I have experience in php, though not tons, and mysql, html, etc.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

叹沉浮 2024-11-24 21:45:51

您可以参考下面的链接。

panel-tabs-content-using-jquery

谢谢。

You can refer below link for this.

panel-tabs-content-using-jquery

Thanx.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文