最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - Conditional Banners

programmeradmin2浏览0评论

I'm using banners/ads that are successfully displayed in every entry/post I created in my website.

¿Is there a way that banners can change to another banner according to some field in the destiny post/entry?

Someone said "Yes". Thank you.

How can that be done?

I'm using the HTML clause DIV to put the banners. It does not admit conditionals as far as I know, so I guess I have to combine that with some code. Am I right?. The theme I'm using allow me to place some JavaScript code. Can this JavaScript code reach the fields or information inside the destiny post/entry?

So I can say something like this:

if entry.tag="banner1" then UsedBanner="Banner1.jpg"

and the DIV clause would receive the content of UsedBanner and display a banner that can be different for every entry/post.

Where can I find specific information about this subject?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论