img]http://www.discuz.net/attachments/month_0804/20080427_658f96490556a5eb8525X7HYGhvnnOGy.png.thumb.jpg[/img]
demo :
http://www.buachompoox.com/forum-2-1.html
skin preemod v. 1.0 for dz6.1.0 :
http://www.discuz.net/thread-907430-1-1.html
modify list
1. templates/default/forumdisplay.htm view
复制内容到剪贴板
代码:
<td class="author">
<cite>
<!--{if $thread['authorid'] && $thread['author']}-->
<a href="space.php?uid=$thread[authorid]">$thread[author]</a>
<!--{else}-->
<!--{if $forum['ismoderator']}-->
<a href="space.php?uid=$thread[authorid]">{lang anonymous}</a>
<!--{else}-->
{lang anonymous}
<!--{/if}-->
<!--{/if}-->
</cite>
<em>$thread[dateline]</em>
</td>replace with
复制内容到剪贴板
代码:
<td class="author">
<div style="float:left;width:26px;padding-top:5px;">
<a href="space.php?action=viewpro&uid=$thread[authorid]" style="float: left"><img src="http://youdomain/ucenter/avatar.php?uid=$thread[authorid]&size=small" class="ava_border" width="24px" height="24px" style="border: 1px solid #C0C0C0" alt="<img src='http://youdomain/ucenter/avatar.php?uid=$thread[authorid]&size=middle' border='0' hspace='2' vspace='2' class='ava_border' width='100px' height='100px'>
ืname : $thread[author].
date : $thread[dateline]"/></a></div>
<div style="float:left;padding:5px 0 0 10px;">
<cite>
<div style="width:73px;height:18px;overflow:hidden;">
<!--{if $thread['authorid'] && $thread['author']}-->
<a href="space.php?action=viewpro&uid=$thread[authorid]">$thread[author]</a>
<!--{else}-->
<!--{if $forum['ismoderator']}-->
<a href="space.php?action=viewpro&uid=$thread[authorid]">{lang anonymous}</a>
<!--{else}-->
{lang anonymous}
<!--{/if}-->
<!--{/if}-->
</div><p style="margin:-5px 0 0 0;font-family:Tahoma;font-size: 8pt">$thread[dateline]</p></cite>
</div>
</td>change http://youdomain/ucenter/ for your ucenter
2. include/javascript/common.js put the code under last line
引用:
//www.chenhailm.comALT
var sPop = null;
var postSubmited = false;
document.write("<style type='text/css'id='defaultPopStyle'>");
document.write(".cPopText { font-family: Verdana, Tahoma; background-color: #DDEEFF; border: 1px #8899AA dashed; font-size: 12px; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; visibility: hidden; filter: Alpha(Opacity=80)}");
document.write("</style>");
document.write("<div id='popLayer' style='position:absolute;z-index:1000;' class='cPopText'></div>");
function showPopupText(event) {
if(event.srcElement) o = event.srcElement; else o = event.target;
if(!o) {
return;
}
MouseX = event.clientX;
MouseY = event.clientY;
if(o.alt != null && o.alt != '') {
o.pop = o.alt;
o.alt = '';
}
if(o.title != null && o.title != '') {
o.pop = o.title;
o.title = '';
}
if(o.pop != sPop) {
sPop = o.pop;
if(sPop == null || sPop == '') {
$('popLayer').style.visibility = "hidden";
} else {
popStyle = o.dyclass != null ? o.dyclass : 'popupmenu_popup';
$('popLayer').style.visibility = "visible";
showIt();
}
}
}
function showIt() {
$('popLayer').className = popStyle;
$('popLayer').innerHTML = sPop.replace(/</g,"<").replace(/>/g,">").replace(/\n/g,"<br>");
var bodySL, bodyST;
if(window.pageXOffset){
bodySL=window.pageXOffset;
}else if(document.documentElement&&document.documentElement.scrollLeft){
bodySL=document.documentElement.scrollLeft;
}else if(document.body){
bodySL=document.body.scrollLeft; //author: meizz
}
if(window.pageYOffset){
bodyST=window.pageYOffset;
}else if(document.documentElement&&document.documentElement.scrollTop){
bodyST=document.documentElement.scrollTop;
}else if(document.body){
bodyST=document.body.scrollTop;
}
var bodyCW, bodyCH;
if(window.innerWidth){
bodyCW=window.innerWidth;
}else if(document.documentElement&&document.documentElement.clientWidth){
bodyCW=document.documentElement.clientWidth;
}else if(document.body){
bodyCW=document.body.clientWidth; //author: meizz
}
if(window.innerHeight){
bodyCH=window.innerHeight;
}else if(document.documentElement&&document.documentElement.clientHeight){
bodyCH=document.documentElement.clientHeight;
}else if(document.body){
bodyCH=document.body.clientHeight;
}
if($('popLayer').clientWidth>300){
var popWidth = 300;
}else{
var popWidth = $('popLayer').clientWidth;
}
var popWidth = $('popLayer').clientWidth;
var popHeight = $('popLayer').clientHeight;
var popLeftAdjust = MouseX + 12 + popWidth > bodyCW ? -popWidth - 24 : 0;
var popTopAdjust = MouseY + 12 + popHeight > bodyCH ? -popHeight - 24 : 0;
$('popLayer').style.left = (MouseX + 12 + bodySL + popLeftAdjust) + 'px';
$('popLayer').style.top = (MouseY + 12 + bodyST + popTopAdjust) + 'px';
}
if(!document.onmouseover) {
document.onmouseover = function(e) {
var event = e ? e : window.event;
showPopupText(event);
};
}
//www.chenhailm.comALT
本帖隐藏的内容需要回复才可以浏览