Hiện cửa sổ popup khi có tin nhắn

TuấnDương

Admin
Thành viên BQT
pload file
fixed_position_ie.js
vào thư mục clientscript/

import file pm_popup_replacement.xml ^_^

Installation
download về xem hay theo hướng dẫn phía dưới.

vào Admincp -> skin bạn đang xài, tìm template -> Private Message Templates -> pm_popup_script và thay thế tất cả code dưới đây vào

<script type="text/javascript" src="clientscript/fixed_position_ie.js"></script>
<script type='text/javascript'>
var agtbrw=navigator.userAgent.toLowerCase();
var operaaa=(agtbrw.indexOf('opera')!=-1);
var head="display:''";
var folder='';
function expandit(curobj){
if(document.getElementById(curobj)){
folder=document.getElementById(curobj).style;
}else{

if(ns6==1||operaaa==true){
folder=curobj.nextSibling.nextSibling.style;
}else{
folder=document.all[curobj.sourceIndex+1].style;
}
}
if (folder.display=="none"){folder.display="";}else{folder.display="none";}
}
mytagid = Math.floor( Math.random() * 10000 );
</script>
<style type="text/css">
#pm_popup {
position:fixed;
top:250px;
border:1px solid;
width:64%;
margin-right:18%;
margin-left:18%;
}

</style>
<div id="pm_popup">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td class="tcat">
<span class="smallfont" style="float:$stylevar
"><a href="#" onclick="expandit('pm_popup');">Close</a></span>
You have a private message!
</td>
</tr>
<tr>
<td class="panelsurround" align="center">
<div class="panel">
<div align="center">
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>
You're newest message is from <b>$newpm[fromusername]</b>, entitled <b>'$newpm[title]'</b>
<br />
</td>
</tr>
<tr>
<td align="center">
<br /><br />
<a href="private.php?do=showpm&pmid=$newpm[pmid]">Read this message</a> <a href="private.php?do=showpm&pmid=$newpm[pmid]" target="_blank"><span class="smallfont">(New Window)</span></a>
<br /><br />
<a href="private.php">Go to my PM inbox</a>
</td>
</tr>
</table>
</div>
</div>


<div style="margin-top:$stylevar[cellpadding]px">
<form><input type="button" class="button" value="Close this popup" onclick="expandit('pm_popup');" /></form>
</div>
</td>
</tr>
</table>
</div>​
 
Back
Top