一个特殊的文本假设有一个网站,其中包括3个不同的页面。在网站上
我想随机显示一个文本的页面之一,用CSS格式化。
例如网页低于:
hello-world.aspx
hi-sun.aspx
good-night-moon.aspx
* When John enters to the site, the text will appear on hi-sun.aspx,
* When Elmander enters to the site, the text will appear on hello-world.aspx
而当一个人进入其中包括一个特殊的文字,即使再来页面时,它不应该出现。
Psedue代码:
if(Session["first"] == "1")
{
//show the text in a random page
}
else
{
//text.visible = false
}
在
如果块 我怎么能提供随机页面中的文本。 (它不应该出现在每一页,应该会出现只有一个页面)
我该怎么办?有什么建议吗?
谢谢。