由于项目需要在登陆框上面添加提醒文字的功能,功能类似于新浪微博的。折腾了一天,总算是把他给弄出来了。下面贴出代码来:
欢迎访问我的博客
<html>
<head>
<title>登陆框 提醒功能</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
/*下拉框*/
.son_ul{background:#fff;width:200px;border:1px solid #ccc;padding:0 2px;position:absolute;left:70px;top:30px;color:#333;text-indent:5px; overflow:hidden;zoom:1;}
.son_ul ul{padding:0;}
.son_ul ul li{height:20px;line-height:20px;cursor:pointer;height:20px;line-height:20px; overflow:hidden;}
.son_ul .hover{background:#efefef;}
.server_list h2 em{margin-top:0;}
</style>
<script type="text/javascript" src="http://f.game.tom.com/xbyxpt/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
//定义类
var lLayer = {
currentIndex:-1
};
//生成页面的HTML代码
lLayer.geneList = function (prefix)
{
if (prefix == '' || prefix =='undefin