var main=document.getElementById("main"); var singlepost=false; var firstpost; var anchor; for(var i=0;i if(main.childNodes[i].className&&main.childNodes[i].className=="post") { var post=main.childNodes[i]; if(!firstpost) { firstpost=post; } for(var j=0;j if(post.childNodes[j].className&&post.childNodes[j].className=="posthead") { var posthead=post.childNodes[j]; if(posthead.childNodes[1]&&posthead.childNodes[1].tagName&&posthead.childNodes[1].tagName=="H2") { 情缘.教程_网 [http://Www.XiuGoo.Com] if(posthead.childNodes[1].childNodes[1]&&posthead.childNodes[1].childNodes[1].tagName&&posthead.childNodes[1].childNodes[1].tagName=="A") { anchor=posthead.childNodes[1].childNodes[1]; } else { anchor=posthead.childNodes[1].childNodes[0]; } } else { anchor=posthead.childNodes[0].childNodes[0]; } anchor.style.fontSize="14pt"; if(anchor.className&&anchor.className=="singleposttitle") { singlepost=true; } } } } } if(singlepost) { var postfoot=document.createElement("div"); firstpost.appendChild(postfoot); postfoot.className="postfoot"; postfoot.innerHTML="Add to del.icio.us"; postfoot.innerHTML+="http://digg.com/submit?phase=2&url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"\">Digg This!"; postfoot.innerHTML+="http://www.facebook.com/share.php?u="+encodeURIComponent(location.href)+"\">Share on Facebook"; postfoot.innerHTML+="http://www.google.com/bookmarks/mark?op=edit&bkmk="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"\">Google Bookmark This"; } |
|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )
GMT+8, 2024-9-29 11:36 , Processed in 0.189419 second(s), 12 queries , Gzip On, MemCache On.
Powered by Discuz! X3.5
© 2001-2023 Discuz! Team.