一個特殊的文本假設有一個網站,其中包括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
}
在
如果塊 我怎麼能提供隨機頁面中的文本。 (它不應該出現在每一頁,應該會出現只有一個頁面)
我該怎麼辦?有什麼建議嗎?
謝謝。