Head部分:


<!-- 2012问卷调查css JS 开始 By yixiaoer 2012-06-18可删除 -->
 <style type="text/css">
 body .note{
 position:absolute;
 z-index: 9999;
 width:526px;
 height:326px;
 background:url(@PATH_TPLRES@/images/wenjuan_bg.png) no-repeat;
 top:200px;
 left:50%;
 padding:0;
 margin-left:-263px;
 display:none;
 }
 .wenjuan_close { width:35px; float:right;padding-top:20px; padding-right:20px;}
 .wenjuan_content { padding-top:65px; padding-left:35px; padding-right:35px; }
 .wenjuan_content p { line-height:18px; padding-bottom:16px;}
 </style>

 <script>
 function cookiesave(n, v, mins, dn, path)
 {
 if(n)
 {
 if(!mins) mins = 365 * 24 * 60;
 if(!path) path = "/";
 var date = new Date();
 date.setTime(date.getTime() + (mins * 60 * 1000));
 var expires = "; expires=" + date.toGMTString();
 if(dn) dn = "domain=" + dn + "; ";
 document.cookie = n + "=" + v + expires + "; " + dn + "path=" + path;
 }
 }
 function cookieget(n)
 {
 var name = n + "=";
 var ca = document.cookie.split(';');
 for(var i=0;i<ca.length;i++) {
 var c = ca[i];
 while (c.charAt(0)==' ') c = c.substring(1,c.length);
 if (c.indexOf(name) == 0) return c.substring(name.length,c.length);
 }
 return "";
 }
 function closeclick(){
 document.getElementById('note').style.display='none';
 cookiesave('closeclick','closeclick','','','');
 }
 function clickclose(){
 if(cookieget('closeclick')=='closeclick'){
 document.getElementById('note').style.display='none';
 }else{
 setTimeout('shownote()', 5000);
 }
 }
 window.onload=clickclose;
 function shownote(){
 document.getElementById('note').style.display='block';

}
 </script>
 <!-- 2012问卷调查css JS 结束 By yixiaoer 2012-06-18可删除 -->

页尾部分:


<!-- 2012问卷调查弹出层 开始 By yixiaoer 2012-06-18可删除 -->
 <div id="note">
 <div><a href="#" onclick="closeclick()"><img src="@PATH_TPLRES@/images/wenjuan_close.gif" border="0" /></a></div>
 <div>
 <p><b>亲爱的用户,您好!</b></p>

<p>欢迎您参与H3C 2012年中文网站"用户有奖调查",您的反馈将有利于我们为您提供更好
 的网站体验!</p>

<p>本次问卷共8个问题,所有回答问卷的用户将有机会获赠H3C提供的小礼品,我们将在问
 卷收集结束后公布获奖情况,抽奖过程将会通过视频方式进行公布,以保证公平公正!</p>

<p><b>问卷截止时间:</b><font color="#de5252">2012年6月18日</font></p>
 <p><a href="http://www.h3c.com.cn/Home/Online_Survey" target="_self">
 <img src="@PATH_TPLRES@/images/wenjuan_canyu.gif" border="0" /></a></p>
 </div>
 <!-- 2012问卷调查弹出层 结束 By yixiaoer 2012-06-18可删除 -->