1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
| <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <style> * { word-wrap: break-word; }
.wp { width: 730px; margin: 0px auto; }
.mtn { margin-top: 5px !important; }
#ct .frame { margin: 0; border: none; }
.xfs_2 .frame-title, .xfs_2 .frametitle, .xfs_2 .tab-title { background-color: #A90000; background-position: 0 -99px; }
.xfs .frame-title, .xfs .frametitle, .xfs .tab-title, .xfs .frame-title a, .xfs .frametitle a, .xfs .tab-title a { color: #FFF !important; }
.xfs .frame-title, .xfs .frametitle, .xfs .tab-title { border: none; background: transparent url(images/mu.png) repeat-x 0 95; }
.title { padding: 0 10px; height: 32px; font-size: 14px; font-weight: 700; line-height: 32px; overflow: hidden; }
.block { margin: 10px 10px 0; }
ul, menu, dir { display: block; list-style: none; -webkit-margin-before: 1em; -webkit-margin-after: 1em; -webkit-margin-start: 0px; -webkit-margin-end: 0px; -webkit-padding-start: 25px; }
.mls li { padding: 0 0 5px; width: 66px; height: 85px; }
.ml li { float: left; text-align: center; overflow: hidden; }
a { color: #333; text-decoration: none; font: 12px/1.5 Tahoma, 'Microsoft Yahei', 'Simsun'; }
.mls p { margin-top: 5px; }
.ml p, .ml span { display: block; width: 100%; height: 20px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.mls img { width: 48px; height: 48px; }
.ml img { display: block; margin: 0 auto; }
a img { border: none; } </style> </head> <body>
<div class="wp mtn"> <div id="diy3" class="area"> <div id="frameipq7f2" class="xfs xfs_2 frame move-span cl frame-1"> <div class="title frame-title"><span class="titletext">当前在线用户</span></div> <div id="frameipq7f2_left" class="column frame-1-c"> <div id="frameipq7f2_left_temp" class="move-span temp"></div> <div id="portal_block_695" class="block move-span"> <div id="portal_block_695_content" class="dxb_bc"> <div class="module cl ml mls" id="users"> <ul>
</ul> </div> </div> </div> </div> </div> </div> </div>
<script> var users = [ {"name": "smyhvae", "icon": "images/noavatar_small.gif"}, {"name": "smyh", "icon": "images/noavatar_small.gif"}, {"name": "smyh02", "icon": "images/75_avatar_small.jpg"}, {"name": "vae", "icon": "images/89_avatar_small.jpg"}, {"name": "today", "icon": "images/noavatar_small.gif"}, {"name": "enen", "icon": "images/noavatar_small.gif"}, {"name": "oyey", "icon": "images/noavatar_small.gif"}, {"name": "dongxiaojie", "icon": "images/noavatar_small.gif"}, {"name": "qishi", "icon": "images/noavatar_small.gif"}, {"name": "qqtang", "icon": "images/noavatar_small.gif"}, {"name": "wawawa", "icon": "images/noavatar_small.gif"}, {"name": "haha", "icon": "images/noavatar_small.gif"}, {"name": "robot", "icon": "images/noavatar_small.gif"}, {"name": "heheda", "icon": "images/noavatar_small.gif"}, {"name": "smyhvae1", "icon": "images/noavatar_small.gif"}, {"name": "lihaile", "icon": "images/noavatar_small.gif"} ];
var div = document.getElementById("users"); var ul = div.firstElementChild || div.firstChild;
for (var i = 0; i < users.length; i++) { ul.innerHTML += '<li>' + '<a href="#" target="blank"><img src="' + users[i].icon + '" width="48" height="48" alt="' + users[i].name + '"></a>' + '<p><a href="#" title="' + users[i].name + '" target="_blank">' + users[i].name + '</a></p>' + '</li>'; } </script> </body> </html>
|