Free Hogg

11.8.06

“Additional Links” Bookmarklet Help

Filed under: Weblogs — Hogg @ 11:33 pm

I edited the Technorati Tags bookmarklet to make an “Additional Links” bookmarklet. I want to use it to add links from other blogs who’ve written on the same topic. But I need some help. Here’s the code:

javascript:(function(){var a='';var t=prompt('Enter URIs without commas:','');if(!t) return;var tr=t.split(' ');a+='<p>In other words . . .<ul>';for(var i=0;i<tr.length;i++){if(i > 0){a+=' ';}a+='<li><a href='+unescape('%22')+'http://'+tr%5Bi%5D+unescape('%22&#39;)+'>'+tr[i]+'</a></li>';}a+='</ul></p>';prompt('Copy this code, press OK, then paste to your blog entry:',a);})()

So it spits out this:

In other words . . .

Which is close to what I want, but it’s not quite right. I want to be able to display the name of the blog/website instead of the address. I want it to look like this:

In other words . . .

So if anybody out there is a JavaScript guru and can give me a hand, I would love it. Thanks!

Technorati technorati tags: , , ,

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: