Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

提示信息美化,超简单大美化,不顶不要进(11月1日更新)

[复制链接]
beecheung 发表于 2005-10-24 20:33:52 | 显示全部楼层
顶.
别发牢骚,版主加精是必然的嘛
回复

使用道具 举报

 楼主| 秋舞叶 发表于 2005-10-24 20:45:11 | 显示全部楼层
原帖由 beecheung 于 2005-10-24 20:33 发表
顶.
别发牢骚,版主加精是必然的嘛

回复

使用道具 举报

freddy 发表于 2005-10-24 20:46:18 | 显示全部楼层
有意思!
回复

使用道具 举报

xmzyy 发表于 2005-10-24 20:52:46 | 显示全部楼层
回复

使用道具 举报

freddy 发表于 2005-10-27 13:36:07 | 显示全部楼层
准备批量操作了!!
回复

使用道具 举报

jillyz 发表于 2005-11-1 02:02:22 | 显示全部楼层
我的找不到這一段 @@ 請問要加在哪裡呢?
回复

使用道具 举报

Dante 发表于 2005-11-1 02:14:03 | 显示全部楼层
我找不到那句哩!
帮帮忙!
回复

使用道具 举报

jillyz 发表于 2005-11-1 11:43:30 | 显示全部楼层
感謝樓主大大^^

我的 include/common.js

  1. /******************************************************************************
  2.   Crossday Discuz! Board - Common Modules for Discuz!
  3.   Modified by: Crossday Studio (http://crossday.com)
  4.   Based upon:  http://www.cnzzz.com
  5. *******************************************************************************/

  6. var sPop = null;
  7. var postSubmited = false;

  8. function ctlent(obj) {
  9.         if(postSubmited == false && (event.ctrlKey && window.event.keyCode == 13) || (event.altKey && window.event.keyCode == 83)) {
  10.                 if(this.document.input.pmsubmit) {
  11.                         postSubmited = true;
  12.                         this.document.input.pmsubmit.disabled = true;
  13.                         this.document.input.submit();
  14.                 } else if(validate(this.document.input)) {
  15.                         postSubmited = true;
  16.                         if(this.document.input.topicsubmit) this.document.input.topicsubmit.disabled = true;
  17.                         if(this.document.input.replysubmit) this.document.input.replysubmit.disabled = true;
  18.                         if(this.document.input.editsubmit) this.document.input.editsubmit.disabled = true;
  19.                         this.document.input.submit();
  20.                 }
  21.         }
  22. }
  23. function checkall(form, prefix) {
  24.         for(var i = 0; i < form.elements.length; i++) {
  25.                 var e = form.elements[i];
  26.                 if(e.name != 'chkall' && (!prefix || (prefix && e.name.match(prefix)))) {
  27.                         e.checked = form.chkall.checked;
  28.                 }
  29.         }
  30. }

  31. function findobj(n, d) {
  32.         var p,i,x; if(!d) d=document;
  33.         if((p=n.indexOf("?"))>0 && parent.frames.length) {
  34.                 d=parent.frames[n.substring(p+1)].document;
  35.                 n=n.substring(0,p);
  36.         }
  37.         if(!(x=d[n])&&d.all) x=d.all[n];
  38.         for(i=0;!x && i<d.forms.length;i++) x=d.forms[i][n];
  39.         for(i=0;!x && d.layers&&i>d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  40.         return x;
  41. }

  42. function copycode(obj) {
  43.         var rng = document.body.createTextRange();
  44.         rng.moveToElementText(obj);
  45.         rng.scrollIntoView();
  46.         rng.select();
  47.         rng.execCommand("Copy");
  48.         rng.collapse(false);
  49. }

  50. function dzconfirm(theURL, ConfirmMsg) {
  51.         if (confirm( ConfirmMsg ))        {
  52.                 window.location.href=theURL;
  53.         } else {
  54.                 return;
  55.         }
  56. }













  57. <!--

  58. var menuOffX=0        //粕等擒蟀諉恅趼郔酘傷擒燭
  59. var menuOffY=18        //粕等擒蟀諉恅趼階傷擒燭

  60. var fo_shadows=new Array()
  61. var linkset=new Array()


  62. var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
  63. var ns6=document.getElementById&&!document.all
  64. var ns4=document.layers
  65. function openScript(url, width, height){
  66.         var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=no' );
  67. }

  68. function showmenu(e,vmenu,mod){
  69.         if (!document.all&&!document.getElementById&&!document.layers)
  70.                 return
  71.         which=vmenu
  72.         clearhidemenu()
  73.         ie_clearshadow()
  74.         menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : ""
  75.         menuobj.thestyle=(ie4||ns6)? menuobj.style : menuobj
  76.         
  77.         if (ie4||ns6)
  78.                 menuobj.innerHTML=which
  79.         else{
  80.                 menuobj.document.write('<layer name=gui bgColor=#E6E6E6 width=165 onmouseover="clearhidemenu()" onmouseout="hidemenu()">'+which+'</layer>')
  81.                 menuobj.document.close()
  82.         }
  83.         menuobj.contentwidth=(ie4||ns6)? menuobj.offsetWidth : menuobj.document.gui.document.width
  84.         menuobj.contentheight=(ie4||ns6)? menuobj.offsetHeight : menuobj.document.gui.document.height
  85.         
  86.         eventX=ie4? event.clientX : ns6? e.clientX : e.x
  87.         eventY=ie4? event.clientY : ns6? e.clientY : e.y
  88.         
  89.         var rightedge=ie4? document.body.clientWidth-eventX : window.innerWidth-eventX
  90.         var bottomedge=ie4? document.body.clientHeight-eventY : window.innerHeight-eventY
  91.                 if (rightedge<menuobj.contentwidth)
  92.                         menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX-menuobj.contentwidth+menuOffX : ns6? window.pageXOffset+eventX-menuobj.contentwidth : eventX-menuobj.contentwidth
  93.                 else
  94.                         menuobj.thestyle.left=ie4? ie_x(event.srcElement)+menuOffX : ns6? window.pageXOffset+eventX : eventX
  95.                
  96.                 if (bottomedge<menuobj.contentheight&&mod!=0)
  97.                         menuobj.thestyle.top=ie4? ie_y(event.srcElement)+menuOffY : ns6? window.pageYOffset+eventY+10 : eventY
  98.                 else
  99.                         menuobj.thestyle.top=ie4? ie_y(event.srcElement)+menuOffY : ns6? window.pageYOffset+eventY+10 : eventY
  100.         menuobj.thestyle.visibility="visible"
  101.         ie_dropshadow(menuobj,"#999999",3)
  102.         return false
  103. }

  104. function ie_y(e){  
  105.         var t=e.offsetTop;  
  106.         while(e=e.offsetParent){  
  107.                 t+=e.offsetTop;  
  108.         }  
  109.         return t;  
  110. }  
  111. function ie_x(e){  
  112.         var l=e.offsetLeft;  
  113.         while(e=e.offsetParent){  
  114.                 l+=e.offsetLeft;  
  115.         }  
  116.         return l;  
  117. }  
  118. function ie_dropshadow(el, color, size)
  119. {
  120.         var i;
  121.         for (i=size; i>0; i--)
  122.         {
  123.                 var rect = document.createElement('div');
  124.                 var rs = rect.style
  125.                 rs.position = 'absolute';
  126.                 rs.left = (el.style.posLeft + i) + 'px';
  127.                 rs.top = (el.style.posTop + i) + 'px';
  128.                 rs.width = el.offsetWidth + 'px';
  129.                 rs.height = el.offsetHeight + 'px';
  130.                 rs.zIndex = el.style.zIndex - i;
  131.                 rs.backgroundColor = color;
  132.                 var opacity = 1 - i / (i + 1);
  133.                 rs.filter = 'alpha(opacity=' + (100 * opacity) + ')';
  134.                 //el.insertAdjacentElement('afterEnd', rect);
  135.                 fo_shadows[fo_shadows.length] = rect;
  136.         }
  137. }
  138. function ie_clearshadow()
  139. {
  140.         for(var i=0;i<fo_shadows.length;i++)
  141.         {
  142.                 if (fo_shadows[i])
  143.                         fo_shadows[i].style.display="none"
  144.         }
  145.         fo_shadows=new Array();
  146. }


  147. function contains_ns6(a, b) {
  148.         while (b.parentNode)
  149.                 if ((b = b.parentNode) == a)
  150.                         return true;
  151.         return false;
  152. }

  153. function hidemenu(){
  154.         if (window.menuobj)
  155.                 menuobj.thestyle.visibility=(ie4||ns6)? "hidden" : "hide"
  156.         ie_clearshadow()
  157. }

  158. function dynamichide(e){
  159.         if (ie4&&!menuobj.contains(e.toElement))
  160.                 hidemenu()
  161.         else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
  162.                 hidemenu()
  163. }

  164. function delayhidemenu(){
  165.         if (ie4||ns6||ns4)
  166.                 delayhide=setTimeout("hidemenu()",500)
  167. }

  168. function clearhidemenu(){
  169.         if (window.delayhide)
  170.                 clearTimeout(delayhide)
  171. }

  172. function highlightmenu(e,state){
  173.         if (document.all)
  174.                 source_el=event.srcElement
  175.         else if (document.getElementById)
  176.                 source_el=e.target
  177.         if (source_el.className=="menuitems"){
  178.                 source_el.id=(state=="on")? "mouseoverstyle" : ""
  179.         }
  180.         else{
  181.                 while(source_el.id!="popmenu"){
  182.                         source_el=document.getElementById? source_el.parentNode : source_el.parentElement
  183.                         if (source_el.className=="menuitems"){
  184.                                 source_el.id=(state=="on")? "mouseoverstyle" : ""
  185.                         }
  186.                 }
  187.         }
  188. }





  189. //-->

复制代码
回复

使用道具 举报

 楼主| 秋舞叶 发表于 2005-11-1 11:59:54 | 显示全部楼层

回复 #28 jillyz 的帖子

试试。。。

  1. /******************************************************************************
  2.   Crossday Discuz! Board - Common Modules for Discuz!
  3.   Modified by: Crossday Studio (http://crossday.com)
  4.   Based upon:  http://www.cnzzz.com
  5. *******************************************************************************/

  6. var sPop = null;
  7. var postSubmited = false;
  8. document.write("<style type='text/css'id='defaultPopStyle'>");
  9. document.write(".cPopText { font-family: Tahoma, Verdana; 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)}");
  10. document.onmouseover=showpopuptext;

  11. document.write("</style>");
  12. document.write("<div id='popLayer' style='position:absolute;z-index:1000' class='cPopText'></div>");

  13. function showpopuptext() {
  14.         var o=event.srcElement;
  15.         MouseX=event.x;
  16.         MouseY=event.y;
  17.         if(o.alt!=null && o.alt!="") { o.pop=o.alt;o.alt="" }
  18.         if(o.title!=null && o.title!="") { o.pop=o.title;o.title="" }
  19.         if(o.pop!=sPop) {
  20.                 sPop=o.pop;
  21.                 if(sPop==null || sPop=="") {
  22.                         popLayer.style.visibility="hidden";        
  23.                 } else {
  24.                         if(o.dyclass!=null) popStyle=o.dyclass
  25.                         else popStyle="cPopText";
  26.                         popLayer.style.visibility="visible";
  27.                         showit();
  28.                 }
  29.         }
  30. }

  31. function showit() {
  32.         popLayer.className=popStyle;
  33.         popLayer.innerHTML=sPop.replace(/<(.*)>/g,"&lt;$1&gt;").replace(/\n/g,"<br>");;
  34.         popWidth=popLayer.clientWidth;
  35.         popHeight=popLayer.clientHeight;
  36.         if(MouseX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24
  37.                 else popLeftAdjust=0;
  38.         if(MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24
  39.                 else popTopAdjust=0;
  40.         popLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;
  41.         popLayer.style.top=MouseY+12+document.body.scrollTop+popTopAdjust;
  42. }

  43. function ctlent(obj) {
  44.         if(postSubmited == false && (event.ctrlKey && window.event.keyCode == 13) || (event.altKey && window.event.keyCode == 83)) {
  45.                 if(this.document.input.pmsubmit) {
  46.                         postSubmited = true;
  47.                         this.document.input.pmsubmit.disabled = true;
  48.                         this.document.input.submit();
  49.                 } else if(validate(this.document.input)) {
  50.                         postSubmited = true;
  51.                         if(this.document.input.topicsubmit) this.document.input.topicsubmit.disabled = true;
  52.                         if(this.document.input.replysubmit) this.document.input.replysubmit.disabled = true;
  53.                         if(this.document.input.editsubmit) this.document.input.editsubmit.disabled = true;
  54.                         this.document.input.submit();
  55.                 }
  56.         }
  57. }
  58. function checkall(form, prefix) {
  59.         for(var i = 0; i < form.elements.length; i++) {
  60.                 var e = form.elements[i];
  61.                 if(e.name != 'chkall' && (!prefix || (prefix && e.name.match(prefix)))) {
  62.                         e.checked = form.chkall.checked;
  63.                 }
  64.         }
  65. }

  66. function findobj(n, d) {
  67.         var p,i,x; if(!d) d=document;
  68.         if((p=n.indexOf("?"))>0 && parent.frames.length) {
  69.                 d=parent.frames[n.substring(p+1)].document;
  70.                 n=n.substring(0,p);
  71.         }
  72.         if(!(x=d[n])&&d.all) x=d.all[n];
  73.         for(i=0;!x && i<d.forms.length;i++) x=d.forms[i][n];
  74.         for(i=0;!x && d.layers&&i>d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  75.         return x;
  76. }

  77. function copycode(obj) {
  78.         var rng = document.body.createTextRange();
  79.         rng.moveToElementText(obj);
  80.         rng.scrollIntoView();
  81.         rng.select();
  82.         rng.execCommand("Copy");
  83.         rng.collapse(false);
  84. }

  85. function dzconfirm(theURL, ConfirmMsg) {
  86.         if (confirm( ConfirmMsg ))        {
  87.                 window.location.href=theURL;
  88.         } else {
  89.                 return;
  90.         }
  91. }













  92. <!--

  93. var menuOffX=0        //粕等擒蟀諉恅趼郔酘傷擒燭
  94. var menuOffY=18        //粕等擒蟀諉恅趼階傷擒燭

  95. var fo_shadows=new Array()
  96. var linkset=new Array()


  97. var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
  98. var ns6=document.getElementById&&!document.all
  99. var ns4=document.layers
  100. function openScript(url, width, height){
  101.         var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=no' );
  102. }

  103. function showmenu(e,vmenu,mod){
  104.         if (!document.all&&!document.getElementById&&!document.layers)
  105.                 return
  106.         which=vmenu
  107.         clearhidemenu()
  108.         ie_clearshadow()
  109.         menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : ""
  110.         menuobj.thestyle=(ie4||ns6)? menuobj.style : menuobj
  111.         
  112.         if (ie4||ns6)
  113.                 menuobj.innerHTML=which
  114.         else{
  115.                 menuobj.document.write('<layer name=gui bgColor=#E6E6E6 width=165 onmouseover="clearhidemenu()" onmouseout="hidemenu()">'+which+'</layer>')
  116.                 menuobj.document.close()
  117.         }
  118.         menuobj.contentwidth=(ie4||ns6)? menuobj.offsetWidth : menuobj.document.gui.document.width
  119.         menuobj.contentheight=(ie4||ns6)? menuobj.offsetHeight : menuobj.document.gui.document.height
  120.         
  121.         eventX=ie4? event.clientX : ns6? e.clientX : e.x
  122.         eventY=ie4? event.clientY : ns6? e.clientY : e.y
  123.         
  124.         var rightedge=ie4? document.body.clientWidth-eventX : window.innerWidth-eventX
  125.         var bottomedge=ie4? document.body.clientHeight-eventY : window.innerHeight-eventY
  126.                 if (rightedge<menuobj.contentwidth)
  127.                         menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX-menuobj.contentwidth+menuOffX : ns6? window.pageXOffset+eventX-menuobj.contentwidth : eventX-menuobj.contentwidth
  128.                 else
  129.                         menuobj.thestyle.left=ie4? ie_x(event.srcElement)+menuOffX : ns6? window.pageXOffset+eventX : eventX
  130.                
  131.                 if (bottomedge<menuobj.contentheight&&mod!=0)
  132.                         menuobj.thestyle.top=ie4? ie_y(event.srcElement)+menuOffY : ns6? window.pageYOffset+eventY+10 : eventY
  133.                 else
  134.                         menuobj.thestyle.top=ie4? ie_y(event.srcElement)+menuOffY : ns6? window.pageYOffset+eventY+10 : eventY
  135.         menuobj.thestyle.visibility="visible"
  136.         ie_dropshadow(menuobj,"#999999",3)
  137.         return false
  138. }

  139. function ie_y(e){  
  140.         var t=e.offsetTop;  
  141.         while(e=e.offsetParent){  
  142.                 t+=e.offsetTop;  
  143.         }  
  144.         return t;  
  145. }  
  146. function ie_x(e){  
  147.         var l=e.offsetLeft;  
  148.         while(e=e.offsetParent){  
  149.                 l+=e.offsetLeft;  
  150.         }  
  151.         return l;  
  152. }  
  153. function ie_dropshadow(el, color, size)
  154. {
  155.         var i;
  156.         for (i=size; i>0; i--)
  157.         {
  158.                 var rect = document.createElement('div');
  159.                 var rs = rect.style
  160.                 rs.position = 'absolute';
  161.                 rs.left = (el.style.posLeft + i) + 'px';
  162.                 rs.top = (el.style.posTop + i) + 'px';
  163.                 rs.width = el.offsetWidth + 'px';
  164.                 rs.height = el.offsetHeight + 'px';
  165.                 rs.zIndex = el.style.zIndex - i;
  166.                 rs.backgroundColor = color;
  167.                 var opacity = 1 - i / (i + 1);
  168.                 rs.filter = 'alpha(opacity=' + (100 * opacity) + ')';
  169.                 //el.insertAdjacentElement('afterEnd', rect);
  170.                 fo_shadows[fo_shadows.length] = rect;
  171.         }
  172. }
  173. function ie_clearshadow()
  174. {
  175.         for(var i=0;i<fo_shadows.length;i++)
  176.         {
  177.                 if (fo_shadows[i])
  178.                         fo_shadows[i].style.display="none"
  179.         }
  180.         fo_shadows=new Array();
  181. }


  182. function contains_ns6(a, b) {
  183.         while (b.parentNode)
  184.                 if ((b = b.parentNode) == a)
  185.                         return true;
  186.         return false;
  187. }

  188. function hidemenu(){
  189.         if (window.menuobj)
  190.                 menuobj.thestyle.visibility=(ie4||ns6)? "hidden" : "hide"
  191.         ie_clearshadow()
  192. }

  193. function dynamichide(e){
  194.         if (ie4&&!menuobj.contains(e.toElement))
  195.                 hidemenu()
  196.         else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
  197.                 hidemenu()
  198. }

  199. function delayhidemenu(){
  200.         if (ie4||ns6||ns4)
  201.                 delayhide=setTimeout("hidemenu()",500)
  202. }

  203. function clearhidemenu(){
  204.         if (window.delayhide)
  205.                 clearTimeout(delayhide)
  206. }

  207. function highlightmenu(e,state){
  208.         if (document.all)
  209.                 source_el=event.srcElement
  210.         else if (document.getElementById)
  211.                 source_el=e.target
  212.         if (source_el.className=="menuitems"){
  213.                 source_el.id=(state=="on")? "mouseoverstyle" : ""
  214.         }
  215.         else{
  216.                 while(source_el.id!="popmenu"){
  217.                         source_el=document.getElementById? source_el.parentNode : source_el.parentElement
  218.                         if (source_el.className=="menuitems"){
  219.                                 source_el.id=(state=="on")? "mouseoverstyle" : ""
  220.                         }
  221.                 }
  222.         }
  223. }





  224. //-->
复制代码

[ 本帖最后由 秋舞叶 于 2005-11-1 12:07 编辑 ]
回复

使用道具 举报

 楼主| 秋舞叶 发表于 2005-11-1 13:06:00 | 显示全部楼层

回复 #27 Dante 的帖子

看一楼,更新了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-5-4 09:00 , Processed in 0.102544 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表