逐梦论坛's Archiver

姿迷 发表于 2005-5-8 22:07

关于魔法表情下面添加文字介绍

这是爱网的

http://www.sylove.com/sylove/plug-ins/magicqq/selqq.asp?page=1

有右键预览功能、魔法表情下面有文字介绍

右键预览我找到了方法

[code]打开qq_act.js在最后加入
function mm_showhidelayers() { //v6.0

  var i,p,v,obj,args=mm_showhidelayers.arguments;
  obj=document.getelementbyid("magicface");
  for (i=0; i<(args.length-2); i+=3) if (obj) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function dispmagicemot(magicid,h,w){
     
     magicfaceurl = 'face/' +magicid+ '.swf';
     document.getelementbyid("magicface").innerhtml = '<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="' + w + '" height="' + h + '"><param name=movie value="'+ magicfaceurl +'"><param name=menu value=false><param name=quality value=high><param name=play value=false><param name="wmode" value="transparent"><embed src="' + magicfaceurl +'" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash"; type="application/x-shockwave-flash" width="' + w + '" height="' + h + '"></embed>';
     document.getelementbyid("magicface").style.top = (document.body.scrolltop+((document.body.clientheight-300)/2))+"px";
     document.getelementbyid("magicface").style.left = (document.body.scrollleft+((document.body.clientwidth-480)/2))+"px";
     document.getelementbyid("magicface").style.visibility = 'visible';
     magicid += math.random();
     settimeout("mm_showhidelayers('magicface','','hidden')",5000);
     nowmeid = magicid;
     }
然后打开selqq.asp找到
           ncount=qfacecount-(row*cols + col + (page-1) * tcount)+1
           if ncount<1 then exit for
           response.write .....
     next
把response.write这句换成我这个
           response.write "<td id='magicface' class='bg1' onmouseover=""this.classname='bg2';"" onmouseout=""this.classname='bg1';"" align='center' onclick=""insqq('" & cstr(right(qface(ncount),3)) & "')""><img src=""img/" & cstr(right("00" & qface(ncount),3)) & ".gif"" border=0 alt=""" & qq(clng(qface(ncount))) & """  oncontextmenu=""javascript:dispmagicemot('"& cstr(right("00" & qface(ncount),3)) &"',350,500)""></td>"
再找<script language="javascript" src="qq_act.js"></script>
上面加一句<div id="magicface" style="position:absolute;z-index: 99;visibility:hidden;"></div>
打完收工。。可以用了


你的swf的文件名在qq_act.js里面
我给你的是
magicfaceurl = 'face/' +magicid+ '.swf';
如果你下的是原版的就是你的文件名是sylove.com_001.swf这样的你要改成下面这样
magicfaceurl = 'face/sylove.com_' +magicid+ '.swf';[/code]

魔法表情下面添加文字介绍不知道怎么弄

shillan 发表于 2005-5-10 09:42

不好意思,试了一下,没成功。[EM17]
应该还要定义数组,调用数组等,如果你对js熟悉的话,可以参考一下动网的,如这个:http://www.ziyuan8.com/down/software/catalog108/7360.html

姿迷 发表于 2005-5-10 11:50

[EM03]

姿迷 发表于 2005-5-10 22:00

晕 没想到这么简单

('"& cstr(right("00" & qface(ncount),3)) &"',350,500)"">
后面添加

""" & qq(clng(qface(ncount))) & """
就可以了

shillan 发表于 2005-5-11 09:04

[quote][b]下面引用由[u]姿迷[/u]发表的内容:[/b]

晕 没想到这么简单

('"& cstr(right("00" & qface(ncount),3)) &"',350,500)"">
后面添加
<br>""" & qq(clng(qfa...[/quote]
呵呵,果然!
感谢分享![EM03]

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.