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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
12
返回列表 发新帖

[美化] 提示信息仿2.5

[复制链接]
sunghost 发表于 2006-2-9 00:14:15 | 显示全部楼层
满不错……支持……
回复

使用道具 举报

肯得基 发表于 2006-2-9 01:46:20 | 显示全部楼层
好东西 谢了
回复

使用道具 举报

hknf 发表于 2006-2-19 08:45:10 | 显示全部楼层
支持ing
回复

使用道具 举报

ㄨЬái鷺♂ 发表于 2006-2-19 11:24:00 | 显示全部楼层
还是2.5的好看。
回复

使用道具 举报

goau 发表于 2006-3-25 03:53:04 | 显示全部楼层
看不见效果
回复

使用道具 举报

M55 发表于 2006-3-25 05:17:02 | 显示全部楼层
原帖由 yjflq2002 于 2006-2-7 08:38 发表
感觉2.5的那种淡蓝色的比较漂亮,现在倒出来给需要的朋友。

include\common.js中查找

var sPop = null;
var postSubmited = false;

document.write("<style type='text/css'id='defaultPopStyl ...


哈哈!没想到楼主也是一性情中人啊~~~~

支持!

收下了
回复

使用道具 举报

eaF1BEAM 发表于 2006-5-16 00:02:44 | 显示全部楼层
大写一起研究一下这窜代码



  1. //帖子列表特效
  2. //原版:http://cnstat.net
  3. //By:小虫虫,QQ:38477904
  4. //共享给大家的东西,请保留这些说明,谢谢!
  5. //2005年10月16日----小虫虫
  6. <!--
  7. var cnstat_ua = navigator.userAgent
  8. var cnstat_ps = navigator.productSub
  9. var cnstat_dom = (document.getElementById)? 1:0
  10. var cnstat_ie4 = (document.all&&!cnstat_dom)? 1:0
  11. var cnstat_ie5 = (document.all&&cnstat_dom)? 1:0
  12. var cnstat_nn4 =(navigator.appName.toLowerCase() == "netscape" && parseInt(navigator.appVersion) == 4)
  13. var cnstat_nn6 = (cnstat_dom&&!cnstat_ie5)? 1:0
  14. var cnstat_sNav = (cnstat_nn4||cnstat_nn6||cnstat_ie4||cnstat_ie5)? 1:0
  15. var cnstat_cssFilters = ((cnstat_ua.indexOf("MSIE 5.5")>=0||cnstat_ua.indexOf("MSIE 6")>=0)&&cnstat_ua.indexOf("Opera")<0)? 1:0
  16. var cnstat_Style=[],Text=[],cnstat_Count=0,cnstat_sbw=0,cnstat_move=0,cnstat_hs="",cnstat_mx,cnstat_my,cnstat_scl,cnstat_sct,cnstat_ww,cnstat_wh,cnstat_obj,cnstat_sl,cnstat_st,cnstat_ih,cnstat_iw,cnstat_vl,cnstat_hl,cnstat_sv,cnstat_evlh,cnstat_evlw,cnstat_tbody
  17. var cnstat_HideTip = "eval(cnstat_obj+cnstat_sv+cnstat_hl+';'+cnstat_obj+cnstat_sl+'=0;'+cnstat_obj+cnstat_st+'=-800')"
  18. var cnstat_doc_root = ((cnstat_ie5&&cnstat_ua.indexOf("Opera")<0||cnstat_ie4)&&document.compatMode=="CSS1Compat")? "document.documentElement":"document.body"
  19. var cnstat_PX = (cnstat_nn6)? "px" :""



  20. if(cnstat_sNav) {
  21.         window.onresize = cnstat_ReloadTip//替换前为ReloadTip
  22.         document.onmousemove = cnstat_MoveTip
  23.         if(cnstat_nn4) document.captureEvents(Event.MOUSEMOVE)
  24. }       
  25. if(cnstat_nn4||cnstat_nn6) {
  26.         cnstat_mx = "e.pageX"
  27.         cnstat_my = "e.pageY"
  28.         cnstat_scl = "window.pageXOffset"
  29.         cnstat_sct = "window.pageYOffset"       
  30.         if(cnstat_nn4) {
  31.                 cnstat_obj = "document.cnstat_TipLayer."
  32.                 cnstat_sl = "left"
  33.                 cnstat_st = "top"
  34.                 cnstat_ih = "clip.height"
  35.                 cnstat_iw = "clip.width"
  36.                 cnstat_vl = "'show'"
  37.                 cnstat_hl = "'hide'"
  38.                 cnstat_sv = "visibility="
  39.         }
  40.         else cnstat_obj = "document.getElementById('cnstat_TipLayer')."
  41. }
  42. if(cnstat_ie4||cnstat_ie5) {
  43.         cnstat_obj = "cnstat_TipLayer."
  44.         cnstat_mx = "event.x"
  45.         cnstat_my = "event.y"
  46.         cnstat_scl = "eval(cnstat_doc_root).scrollLeft"
  47.         cnstat_sct = "eval(cnstat_doc_root).scrollTop"
  48.         if(cnstat_ie5) {
  49.                 cnstat_mx = cnstat_mx+"+"+cnstat_scl
  50.                 cnstat_my = cnstat_my+"+"+cnstat_sct
  51.         }
  52. }
  53. if(cnstat_ie4||cnstat_dom){
  54.         cnstat_sl = "style.left"
  55.         cnstat_st = "style.top"
  56.         cnstat_ih = "offsetHeight"
  57.         cnstat_iw = "offsetWidth"
  58.         cnstat_vl = "'visible'"
  59.         cnstat_hl = "'hidden'"
  60.         cnstat_sv = "style.visibility="
  61. }
  62. if(cnstat_ie4||cnstat_ie5||cnstat_ps>=20020823) {
  63.         cnstat_ww = "eval(cnstat_doc_root).clientWidth"
  64.         cnstat_wh = "eval(cnstat_doc_root).clientHeight"
  65. }         
  66. else {
  67.         cnstat_ww = "window.innerWidth"
  68.         cnstat_wh = "window.innerHeight"
  69.         cnstat_evlh = eval(cnstat_wh)
  70.         cnstat_evlw = eval(cnstat_ww)
  71.         cnstat_sbw=15
  72. }       

  73. function cnstat_applyCssFilter(){
  74.         if(cnstat_cssFilters&&FiltersEnabled) {
  75.                 var cnstat_dx = " progid:DXImageTransform.Microsoft."
  76.                 cnstat_TipLayer.style.filter = "revealTrans()"+cnstat_dx+"Fade(Overlap=1.00 enabled=0)"+cnstat_dx+"Inset(enabled=0)"+cnstat_dx+"Iris(irisstyle=PLUS,motion=in enabled=0)"+cnstat_dx+"Iris(irisstyle=PLUS,motion=out enabled=0)"+cnstat_dx+"Iris(irisstyle=DIAMOND,motion=in enabled=0)"+cnstat_dx+"Iris(irisstyle=DIAMOND,motion=out enabled=0)"+cnstat_dx+"Iris(irisstyle=CROSS,motion=in enabled=0)"+cnstat_dx+"Iris(irisstyle=CROSS,motion=out enabled=0)"+cnstat_dx+"Iris(irisstyle=STAR,motion=in enabled=0)"+cnstat_dx+"Iris(irisstyle=STAR,motion=out enabled=0)"+cnstat_dx+"RadialWipe(wipestyle=CLOCK enabled=0)"+cnstat_dx+"RadialWipe(wipestyle=WEDGE enabled=0)"+cnstat_dx+"RadialWipe(wipestyle=RADIAL enabled=0)"+cnstat_dx+"Pixelate(MaxSquare=35,enabled=0)"+cnstat_dx+"Slide(slidestyle=HIDE,Bands=25 enabled=0)"+cnstat_dx+"Slide(slidestyle=PUSH,Bands=25 enabled=0)"+cnstat_dx+"Slide(slidestyle=SWAP,Bands=25 enabled=0)"+cnstat_dx+"Spiral(GridSizeX=16,GridSizeY=16 enabled=0)"+cnstat_dx+"Stretch(stretchstyle=HIDE enabled=0)"+cnstat_dx+"Stretch(stretchstyle=PUSH enabled=0)"+cnstat_dx+"Stretch(stretchstyle=SPIN enabled=0)"+cnstat_dx+"Wheel(spokes=16 enabled=0)"+cnstat_dx+"GradientWipe(GradientSize=1.00,wipestyle=0,motion=forward enabled=0)"+cnstat_dx+"GradientWipe(GradientSize=1.00,wipestyle=0,motion=reverse enabled=0)"+cnstat_dx+"GradientWipe(GradientSize=1.00,wipestyle=1,motion=forward enabled=0)"+cnstat_dx+"GradientWipe(GradientSize=1.00,wipestyle=1,motion=reverse enabled=0)"+cnstat_dx+"Zigzag(GridSizeX=8,GridSizeY=8 enabled=0)"+cnstat_dx+"Alpha(enabled=0)"+cnstat_dx+"Dropshadow(OffX=3,OffY=3,Positive=true,enabled=0)"+cnstat_dx+"Shadow(strength=3,direction=135,enabled=0)"
  77.         }
  78. }

  79. function cnstat_stm(cnstat_t,cnstat_c,cnstat_s) {
  80.   cnstat_c=cnstat_c.replace(/\n/g,"<br>");
  81.   if(cnstat_sNav) {
  82.           if(cnstat_s.length<25) {
  83.                 var ErrorNotice = "DHTML TIP MESSAGE VERSION 1.2 ERROR NOTICE.\n"
  84.                 if(cnstat_t.length<2&&cnstat_s.length<25) alert(ErrorNotice+"It looks like you removed an entry or more from the Style Array and Text Array of this tip.\nTheir should be 25 entries in every Style Array even though empty and 2 in every Text Array. You defined only "+cnstat_s.length+" entries in the Style Array and "+cnstat_t.length+" entry in the Text Array. This tip won'cnstat_t be viewed to avoid errors")
  85.                 else if(cnstat_t.length<2) alert(ErrorNotice+"It looks like you removed an entry or more from the Text Array of this tip.\nTheir should be 2 entries in every Text Array. You defined only "+cnstat_t.length+" entry. This tip won'cnstat_t be viewed to avoid errors.")
  86.                 else if(cnstat_s.length<25) alert(ErrorNotice+"It looks like you removed an entry or more from the Style Array of this tip.\nTheir should be 25 entries in every Style Array even though empty. You defined only "+cnstat_s.length+" entries. This tip won'cnstat_t be viewed to avoid errors.")
  87.         }
  88.           else {
  89.                 var cnstat_ab = "" ;var cnstat_ap = ""
  90.                 var cnstat_titCol = (cnstat_s[0])? "COLOR='"+cnstat_s[0]+"'" : ""
  91.                 var cnstat_txtCol = (cnstat_s[1])? "COLOR='"+cnstat_s[1]+"'" : ""
  92.                 var cnstat_titBgCol = (cnstat_s[2])? "BGCOLOR='"+cnstat_s[2]+"'" : ""
  93.                 var cnstat_txtBgCol = (cnstat_s[3])? "BGCOLOR='"+cnstat_s[3]+"'" : ""
  94.                 var cnstat_titBgImg = (cnstat_s[4])? "BACKGROUND='"+cnstat_s[4]+"'" : ""       
  95.                 var cnstat_txtBgImg = (cnstat_s[5])? "BACKGROUND='"+cnstat_s[5]+"'" : ""
  96.                 var cnstat_titTxtAli = (cnstat_s[6] && cnstat_s[6].toLowerCase()!="left")? "ALIGN='"+cnstat_s[6]+"'" : ""
  97.                 var cnstat_txtTxtAli = (cnstat_s[7] && cnstat_s[7].toLowerCase()!="left")? "ALIGN='"+cnstat_s[7]+"'" : ""   
  98.                 var add_height = (cnstat_s[15])? "HEIGHT='"+cnstat_s[15]+"'" : ""
  99.                 if(!cnstat_s[8])  cnstat_s[8] = "Verdana,Arial,Helvetica"
  100.                 if(!cnstat_s[9])  cnstat_s[9] = "Verdana,Arial,Helvetica"                                       
  101.                 if(!cnstat_s[12]) cnstat_s[12] = 1
  102.                 if(!cnstat_s[13]) cnstat_s[13] = 1
  103.                 if(!cnstat_s[14]) cnstat_s[14] = 200
  104.                 if(!cnstat_s[16]) cnstat_s[16] = 0
  105.                 if(!cnstat_s[17]) cnstat_s[17] = 0
  106.                 if(!cnstat_s[18]) cnstat_s[18] = 10
  107.                 if(!cnstat_s[19]) cnstat_s[19] = 10
  108.                 cnstat_hs = cnstat_s[11].toLowerCase()
  109.                 if(cnstat_ps==20001108){
  110.                 if(cnstat_s[2]) cnstat_ab="STYLE='border:"+cnstat_s[16]+"px solid"+" "+cnstat_s[2]+"'"
  111.                 cnstat_ap="STYLE='padding:"+cnstat_s[17]+"px "+cnstat_s[17]+"px "+cnstat_s[17]+"px "+cnstat_s[17]+"px'"}
  112.                 var cnstat_closeLink=(cnstat_hs=="sticky")? "<TD ALIGN='right'><FONT SIZE='"+cnstat_s[12]+"' FACE='"+cnstat_s[8]+"'><A HREF='javascript:void(0)' ONCLICK='cnstat_stickyhide()' STYLE='text-decoration:none;color:"+cnstat_s[0]+"'><B>Close</B></A></FONT></TD>":""
  113.                 var cnstat_title=(cnstat_t||cnstat_hs=="sticky")? "<TABLE WIDTH='100%' BORDER='0' CELLPADDING='0' CELLSPACING='0'><TR><TD height=20 "+cnstat_titTxtAli+" style='padding-left:3px;table-layout:fixed;word-break:break-all'><FONT FACE='"+cnstat_s[8]+"' "+cnstat_titCol+">"+cnstat_t+"</FONT></TD>"+cnstat_closeLink+"</TR></TABLE>" : ""
  114.                 var cnstat_txt="<TABLE "+cnstat_titBgImg+" "+cnstat_ab+" WIDTH='"+cnstat_s[14]+"' BORDER='0' CELLPADDING='"+cnstat_s[16]+"' CELLSPACING='0' "+cnstat_titBgCol+" ><TR><TD>"+cnstat_title+"<TABLE WIDTH='100%' "+add_height+" BORDER='0' CELLPADDING='"+cnstat_s[17]+"' CELLSPACING='0' "+cnstat_txtBgCol+" "+cnstat_txtBgImg+"><TR><TD "+cnstat_txtTxtAli+" "+cnstat_ap+" VALIGN='top' style='padding-top:5px;padding-left:3px;padding-right:3px;padding-bottom:3px;table-layout:fixed;word-break:break-all'><FONT  FACE='"+cnstat_s[9]+"' "+cnstat_txtCol +">"+cnstat_c+"</FONT></TD></TR></TABLE></TD></TR></TABLE>"
  115.                 if(cnstat_nn4) {
  116.                         with(eval(cnstat_obj+"document")) {
  117.                                 open()
  118.                                 write(cnstat_txt)
  119.                                 close()
  120.                         }
  121.                 }
  122.                 else eval(cnstat_obj+"innerHTML=cnstat_txt")
  123.                 cnstat_tbody = {
  124.                         Pos:cnstat_s[10].toLowerCase(),
  125.                         Xpos:cnstat_s[18],
  126.                         Ypos:cnstat_s[19],
  127.                         Transition:cnstat_s[20],
  128.                         Duration:cnstat_s[21],
  129.                         Alpha:cnstat_s[22],
  130.                         ShadowType:cnstat_s[23].toLowerCase(),
  131.                         ShadowColor:cnstat_s[24],
  132.                         Width:parseInt(eval(cnstat_obj+cnstat_iw)+3+cnstat_sbw)
  133.                 }
  134.                 if(cnstat_ie4) {
  135.                         cnstat_TipLayer.style.width = cnstat_s[14]
  136.                          cnstat_tbody.Width = cnstat_s[14]
  137.                 }
  138.                 cnstat_Count=0       
  139.                 cnstat_move=1
  140.          }
  141.   }
  142. }

  143. function cnstat_MoveTip(e) {
  144.         if(cnstat_move) {
  145.                 var cnstat_X,cnstat_Y,cnstat_MouseX = eval(cnstat_mx),cnstat_MouseY = eval(cnstat_my); cnstat_tbody.Height = parseInt(eval(cnstat_obj+cnstat_ih)+3)
  146.                 cnstat_tbody.wiw = parseInt(eval(cnstat_ww+"+"+cnstat_scl)); cnstat_tbody.wih = parseInt(eval(cnstat_wh+"+"+cnstat_sct))
  147.                 switch(cnstat_tbody.Pos) {
  148.                         case "left" : cnstat_X=cnstat_MouseX-cnstat_tbody.Width-cnstat_tbody.Xpos; cnstat_Y=cnstat_MouseY+cnstat_tbody.Ypos; break
  149.                         case "center": cnstat_X=cnstat_MouseX-(cnstat_tbody.Width/2); cnstat_Y=cnstat_MouseY+cnstat_tbody.Ypos; break
  150.                         case "float": cnstat_X=cnstat_tbody.Xpos+eval(cnstat_scl); cnstat_Y=cnstat_tbody.Ypos+eval(cnstat_sct); break       
  151.                         case "fixed": cnstat_X=cnstat_tbody.Xpos; cnstat_Y=cnstat_tbody.Ypos; break               
  152.                         default: cnstat_X=cnstat_MouseX+cnstat_tbody.Xpos; cnstat_Y=cnstat_MouseY+cnstat_tbody.Ypos
  153.                 }

  154.                 if(cnstat_tbody.wiw<cnstat_tbody.Width+cnstat_X) cnstat_X = cnstat_tbody.wiw-cnstat_tbody.Width
  155.                 if(cnstat_tbody.wih<cnstat_tbody.Height+cnstat_Y+cnstat_sbw) {
  156.                         if(cnstat_tbody.Pos=="float"||cnstat_tbody.Pos=="fixed") cnstat_Y = cnstat_tbody.wih-cnstat_tbody.Height-cnstat_sbw
  157.                         else cnstat_Y = cnstat_MouseY-cnstat_tbody.Height
  158.                 }
  159.                 if(cnstat_X<0) cnstat_X=0
  160.                 eval(cnstat_obj+cnstat_sl+"=cnstat_X+cnstat_PX;"+cnstat_obj+cnstat_st+"=cnstat_Y+cnstat_PX")
  161.                 cnstat_ViewTip()
  162.         }
  163. }

  164. function cnstat_ViewTip() {
  165.           cnstat_Count++
  166.         if(cnstat_Count == 1) {
  167.                 if(cnstat_cssFilters&&FiltersEnabled) {       
  168.                         for(Index=28; Index<31; Index++) { cnstat_TipLayer.filters[Index].enabled = 0 }
  169.                         for(cnstat_s=0; cnstat_s<28; cnstat_s++) { if(cnstat_TipLayer.filters[cnstat_s].status == 2) cnstat_TipLayer.filters[cnstat_s].stop() }
  170.                         if(cnstat_tbody.Transition == 51) cnstat_tbody.Transition = parseInt(Math.random()*50)
  171.                         var cnstat_applyTrans = (cnstat_tbody.Transition>-1&&cnstat_tbody.Transition<24&&cnstat_tbody.Duration>0)? 1:0
  172.                         var cnstat_advFilters = (cnstat_tbody.Transition>23&&cnstat_tbody.Transition<51&&cnstat_tbody.Duration>0)? 1:0
  173.                         var cnstat_which = (cnstat_applyTrans)?0:(cnstat_advFilters)? cnstat_tbody.Transition-23:0
  174.                         if(cnstat_tbody.Alpha>0&&cnstat_tbody.Alpha<100) {
  175.                                   cnstat_TipLayer.filters[28].enabled = 1
  176.                                   cnstat_TipLayer.filters[28].opacity = cnstat_tbody.Alpha
  177.                         }
  178.                         if(cnstat_tbody.ShadowColor&&cnstat_tbody.ShadowType == "simple") {
  179.                                   cnstat_TipLayer.filters[29].enabled = 1
  180.                                   cnstat_TipLayer.filters[29].color = cnstat_tbody.ShadowColor
  181.                         }
  182.                         else if(cnstat_tbody.ShadowColor&&cnstat_tbody.ShadowType == "complex") {
  183.                                   cnstat_TipLayer.filters[30].enabled = 1
  184.                                   cnstat_TipLayer.filters[30].color = cnstat_tbody.ShadowColor
  185.                         }
  186.                         if(cnstat_applyTrans||cnstat_advFilters) {
  187.                                 eval(cnstat_obj+cnstat_sv+cnstat_hl)
  188.                                   if(cnstat_applyTrans) cnstat_TipLayer.filters[0].transition = cnstat_tbody.Transition
  189.                                   cnstat_TipLayer.filters[cnstat_which].duration = cnstat_tbody.Duration
  190.                                   cnstat_TipLayer.filters[cnstat_which].apply()
  191.                         }
  192.                 }
  193.                 eval(cnstat_obj+cnstat_sv+cnstat_vl)
  194.                 if(cnstat_cssFilters&&FiltersEnabled&&(cnstat_applyTrans||cnstat_advFilters)) cnstat_TipLayer.filters[cnstat_which].play()
  195.                 if(cnstat_hs == "sticky") cnstat_move=0
  196.           }
  197. }

  198. function cnstat_stickyhide() {
  199.         eval(cnstat_HideTip)
  200. }

  201. function cnstat_ReloadTip() {
  202.          if(cnstat_nn4&&(cnstat_evlw!=eval(cnstat_ww)||cnstat_evlh!=eval(cnstat_wh))) location.reload()
  203.          else if(cnstat_hs == "sticky") eval(cnstat_HideTip)
  204. }

  205. function cnstat_htm() {
  206.         if(cnstat_sNav) {
  207.                 if(cnstat_hs!="keep") {
  208.                         cnstat_move=0;
  209.                         if(cnstat_hs!="sticky") eval(cnstat_HideTip)
  210.                 }       
  211.         }
  212. }

  213. document.write('<DIV id=cnstat_TipLayer style="Z-INDEX: 1000; VISIBILITY: hidden; POSITION: absolute; TOP: -100px"></DIV>');
  214. var FiltersEnabled = 1;
  215. cnstat_Style[1]=["black","black","#B2DB48","#ffffff","","","","","","","","","","",300,"",2,2,10,10,51,0.5,75,"simple","gray"];
  216. cnstat_applyCssFilter();
  217. //-->
复制代码
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-12-23 01:27 , Processed in 0.025611 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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