0

如何根据选择更改内容。我在下面给了你一个例子,

考虑到我们有一个顶级菜单,其中包括以下内容:1)主页 2)关于我们 3)联系我们

我有slider container其中的 Text inside <h2> Tag, text 取决于 Pageif About us page then About Us is written等等。

所以我的问题是based on the above selection text will be changed dynamically。你能解释一下吗?

4

1 回答 1

0

Install a plugin like sourcerer which lets you insert custom code as a module.

Create a custom HTML module and publish it somewhere on your code.

Edit the custom HTML module and insert jQuery commands to update the elements you want.

Joomla uses MooTools by default but there are plugins to insert jQuery.

Remember that you won't be able to use the $ alias for the jQuery command so you'll have to use the long form.

Otherwise there might be another Joomla slider that will let you do this.

于 2011-07-13T15:25:37.017 回答