// JavaScript Document function genTwitter(refLink, refTitle) { return ('http://twitter.com/home?status='+encodeURIComponent(refLink)+'&title='+encodeURIComponent(refTitle)); } function genFacebook(refLink, refTitle) { return ('http://www.facebook.com/share.php?u='+encodeURIComponent(refLink)+'&title='+encodeURIComponent(refTitle)); // return ('http://www.facebook.com/sharer.php?u='+encodeURIComponent(refLink)+'&t='+encodeURIComponent(refTitle)); } function genStartlap(refLink, refTitle) { return ('http://www.startlap.hu/sajat_linkek/addlink.php?url='+encodeURIComponent(refLink)+'&title='+encodeURIComponent(refTitle)); } function genIwiw(refLink, refTitle) { return ('http://iwiw.hu/pages/share/share.jsp?u='+encodeURIComponent(refLink)+'&title='+encodeURIComponent(refTitle)); } function genDelicious(refLink, refTitle) { return ('http://del.icio.us/post?url='+encodeURIComponent(refLink)+'&title='+encodeURIComponent(refTitle)); } function genGooglebm(refLink, refTitle) { return ('http://www.google.com/bookmarks/mark?op=edit&bkmk='+encodeURIComponent(refLink)+'&title='+encodeURIComponent(refTitle)); } function genMagnolia(refLink, refTitle) { return ('http://ma.gnolia.com/bookmarklet/add?url='+encodeURIComponent(refLink)); } function genNetscape(refLink, refTitle) { return ('http://www.netscape.com/submit/?U='+encodeURIComponent(refLink)+'&T='+encodeURIComponent(refTitle)); } function genDigg(refLink, refTitle) { return ('http://digg.com/submit?phase=2&url='+encodeURIComponent(refLink)+'&title='+encodeURIComponent(refTitle)); } function genFurl(refLink, refTitle) { return ('http://furl.net/storeIt.jsp?u='+encodeURIComponent(refLink)+'&t='+encodeURIComponent(refTitle)); } function genTechnorati(refLink, refTitle) { return ('http://www.technorati.com/faves?add='+encodeURIComponent(refLink)); } function genReddit(refLink, refTitle) { return ('http://reddit.com/submit?url='+encodeURIComponent(refLink)+'&title='+encodeURIComponent(refTitle)); } function genKudos(refLink, refTitle) { return ('http://www.kudos.no/giKudos.php?tittel='+encodeURIComponent(refTitle)+'&url='+encodeURIComponent(refLink)+'&tag=&type=nyhet&kategori='); } function genBlinklist(refLink, refTitle) { return ('http://blinklist.com/index.php?Action=Blink/addblink.php&Url='+encodeURIComponent(refLink)); } function genLive(refLink, refTitle) { return ('https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url='+encodeURIComponent(refLink)+'&top=1'); } function genStumbleupon(refLink, refTitle) { return ('http://www.stumbleupon.com/submit?url='+encodeURIComponent(refLink)+'&title='+encodeURIComponent(refTitle)); } function genLinkter(refLink, refTitle) { return ('http://www.linkter.hu/index.php?action=suggest_link&url='+encodeURIComponent(refLink)+'&title='+encodeURIComponent(refTitle)); } function genTwitthis(refLink, refTitle) { return ('http://twitthis.com/twit?url='+encodeURIComponent(refLink)); } function genMixx(refLink, refTitle) { return ('http://www.mixx.com/submit?page_url='+encodeURIComponent(refLink)+'&title='+encodeURIComponent(refTitle)); } function genNewsvine(refLink, refTitle) { return ('http://www.newsvine.com/_tools/seed&save?u='+encodeURIComponent(refLink)+'&h='+encodeURIComponent(refTitle)); } function genComments(refLink, refTitle) { return ('http://co.mments.com/track?url='+encodeURIComponent(refLink)+'&title='+encodeURIComponent(refTitle)); } function genYahoomyweb(refLink, refTitle) { return ('http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+encodeURIComponent(refLink)+'&t='+encodeURIComponent(refTitle)); } function genLinkedin(refLink, refTitle) { return ('http://www.linkedin.com/shareArticle?mini=true&url='+encodeURIComponent(refLink)+'&title='+encodeURIComponent(refTitle)+'&source=Tigrincs+Blogja&summary='); } function genEmail(refLink, refTitle) { return ('mailto:?subject='+encodeURIComponent(refTitle)+'&body='+encodeURIComponent(refLink)); } function genLinks () { $(".feedhead", document.body).each(function () { var linkText = $(this).prev().children("h1").children("a").text(); var linkUrl = $(this).prev().children("h1").children("a").attr("href"); var linkItem; var linkPic; var baseUrl = "http://freeware.blog.hu/media/image/ico/"; $(this).append(document.createTextNode("Megosztom másokkal is:")).append($("
")); linkItem = $("").attr({href: genEmail(linkUrl, linkText)}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_email", alt: "e-mail", title: "e-mail"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genTwitter(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_twitter", alt: "Twitter", title: "Twitter"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genFacebook(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_facebook", alt: "Facebook", title: "Facebook"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genGooglebm(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_googlebm", alt: "Google Bookmark", title: "Google Bookmark"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genDelicious(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_delicious", alt: "Del.icio.us", title: "Del.icio.us"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genIwiw(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_iwiw", alt: "IWIW", title: "IWIW"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genStartlap(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_startlap", alt: "Startlap", title: "Startlap"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genLinkter(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_linkter", alt: "Linktér", title: "Linktér"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genLive(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_live", alt: "Microsoft Live", title: "Microsoft Live"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genStumbleupon(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_stumbleupon", alt: "StumbleUpon", title: "StumbleUpon"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genLinkedin(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_linkedin", alt: "LinkedIn", title: "LinkedIn"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genYahoomyweb(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_yahoo", alt: "YahooMyWeb", title: "YahooMyWeb"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genMagnolia(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_magnolia", alt: "Ma.gnolia.com", title: "Ma.gnolia.com"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genNetscape(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_netscape", alt: "Netscape", title: "Netscape"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genDigg(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_digg", alt: "Digg", title: "Digg"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genFurl(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_furl", alt: "Furl", title: "Furl"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genTechnorati(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_technorati", alt: "Technorati", title: "Technorati"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genReddit(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_reddit", alt: "Reddit", title: "Reddit"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genBlinklist(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_blinklist", alt: "Blinklist", title: "Blinklist"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genMixx(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_mixx", alt: "Mixx", title: "Mixx"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genNewsvine(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_newsvine", alt: "NewsVine", title: "NewsVine"}); $(this).append(linkItem.append(linkPic)).append(" "); linkItem = $("").attr({href: genComments(linkUrl, linkText), target: "_blank", rel: "nofollow"}); linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_comments", alt: "Co.mments.com", title: "Co.mments.com"}); $(this).append(linkItem.append(linkPic)).append(" "); // linkItem = $("").attr({href: genKudos(linkUrl, linkText), target: "_blank", rel: "nofollow"}); // linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_kudos", alt: "Kudos", title: "Kudos"}); // linkItem.append(document.createTextNode("Kudos")); // $(this).append(linkItem.append(linkPic)).append(" "); // linkItem = $("").attr({href: genTwitthis(linkUrl, linkText), target: "_blank", rel: "nofollow"}); // linkPic = $("").attr({src: "http://freeware.blog.hu/media/image/spacer.gif", height: 16, width: 16, class: "noborder feedicon feedicon_twitter", alt: "TwitThis", title: "TwitThis"}); // linkItem.append(document.createTextNode("TwitThis")); // $(this).append(linkItem.append(linkPic)).append(" "); }); }