|
这是爱网的
http://www.sylove.com/sylove/plug-ins/magicqq/selqq.asp?page=1
有右键预览功能、魔法表情下面有文字介绍
右键预览我找到了方法
- 打开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';
复制代码
魔法表情下面添加文字介绍不知道怎么弄 |
|