Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: one.lt reklama

Parašė Poker· 2008 Bal. 20 19:04:10
#26

Nesupratai,noriu paklaust kaip į ta koda iterpt:

echo "<div id='infobar'><a href='http://www.thegtaplace.lt'>WTB Halisha+16 L2-Gold</a></div>
<style>
#infobar a {
top: 0;
left: 0;
display: block;
width: 100%;
position: fixed;
height: 20px;
line-height: 16px;
font-family: Arial Black;
font-size: 12px;
text-decoration: none;
color: white;
background-color: #473737;
border-bottom: 3px solid #473737;
text-align: center;
}
#infobar a:hover {
color: black;
}
</style>





Šita koda:
$text = array("Jusu tekstas.","Jusu tekstas","Jusu tekstas");
#
$cc = count($text) ;
#
$cl = $cc-1;
#
$rand = rand(0,$cl);
#
echo"$text[$rand]";