<div class="box pt5">
<style>
.bmdh
{
padding: 0 0 6px 4px;
}
.bmdh li
{
float: left;
width: 110px;
height: 40px;
padding: 8px 0;
text-align: center;
border: solid 1px #ccc;
margin: 6px 6px 0 0;
word-wrap: break-word;
word-break: break-all;
color: #333;
overflow: hidden;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
border-radius: 15px;
box-shadow: 0 0 1px rgba(255,255,255,1) inset,0 0 6px rgba(0,0,0,.2);
}
.bmdh li a
{
color: #444;
display: block;
}
.bmdh li a:hover
{
color: #06c;
text-decoration: none;
}
</style>
<div class="c1">
<div class="b1">
<div class="fl" style="width: 100px">
<div class="con1"><ul><li>便民电话</li></ul><div class="clear"></div></div>
</div>
<div class="fr ar" style="width: 600px"><a href="/user/feedback.htm?parentid=3" target="_blank" style="background-image: none;padding-right: 0">想让您的电话显示在这里吗,名额有限哦,赶快联系客服吧。</a></div>
<div class="clear"></div>
</div>
<div class="v1">
<div class="bmdh">
<ul>
<script runat="server">
protected int GetRandomSeed1()
{
byte[] bytes = new byte[4];
System.Security.Cryptography.RNGCryptoServiceProvider rng = new System.Security.Cryptography.RNGCryptoServiceProvider();
rng.GetBytes(bytes);
return BitConverter.ToInt32(bytes, 0);
}
</script>
<%
try
{
string[] arr1 = "#ffe7db,#fbe8be,#f1f9ac,#c0f9ac,#acf9f3,#c4e9ff,#f4d1fb,#fde1ee".Split(',');
StringBuilder sb = new StringBuilder();
System.Data.IDataReader rdr = (System.Data.IDataReader)WMshow.Show("select * from links where parentid=2 order by sorting desc,id asc");
while (rdr.Read())
{
Random rnd = new Random(GetRandomSeed1());
sb.Append("<li style=\"background:" + arr1[rnd.Next(7)] + ";\"><a href=\"" + rdr["url"].ToString() + "\" target=\"_blank\">" + WMreplace.NoHtml(rdr["n"].ToString()).Replace(" ", "<br />") + "</a></li>");
}
rdr.Close(); rdr.Dispose();
Response.Write(sb.ToString());
}
catch { throw; }
%>
</ul>
<div class="clear"></div>
</div>
</div>
<div class="n1"><div class="fl"></div><div class="fr"></div><div class="clear"></div></div>
</div>
</div>