<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/1.5.1-alpha" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Bookmarklet or hot key to generate a character string</title>
	<link>http://libraryclips.blogsome.com/2006/05/21/bookmarklet-or-hot-key-to-generate-a-character-string/</link>
	<description>sharing ideas thoughts and feedback</description>
	<pubDate>Sat, 11 Feb 2012 08:03:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.1-alpha</generator>

	<item>
		<title>by: Johnt</title>
		<link>http://libraryclips.blogsome.com/2006/05/21/bookmarklet-or-hot-key-to-generate-a-character-string/#comment-31205</link>
		<pubDate>Sun, 04 Jun 2006 14:29:34 +0100</pubDate>
		<guid>http://libraryclips.blogsome.com/2006/05/21/bookmarklet-or-hot-key-to-generate-a-character-string/#comment-31205</guid>
					<description>If anyone is interested, someone passed on a code to me...when you are now on my blog, you can check a box, and all hyperlinks will open in a new window.

NOTE: This does not help when reading the feed version.

This goes before the /head tag:

&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;!-- 
// thanks to randomwalks.com for this code 
function targetLinks(boNew) { 
if (boNew) 
where = &amp;quot;_blank&amp;quot;; 
else 
where = &amp;quot;_self&amp;quot;; 
for (var i=0; i&amp;lt;=(document.links.length-1); i++) { 
document.links[i].target = where; 
} 
} 
// --&amp;gt; 
&amp;lt;/script&amp;gt; 

And whack this in where you want it:

&amp;lt;form  class=&amp;quot;hid&amp;quot; name=&amp;quot;targeter&amp;quot; action=&amp;quot;&amp;quot;&amp;gt; 
&amp;lt;p&amp;gt;&amp;lt;input type=&amp;quot;checkbox&amp;quot; name=&amp;quot;targetbox&amp;quot; id=&amp;quot;tcheck&amp;quot; 
    onclick=&amp;quot;targetLinks(this.checked);&amp;quot; /&amp;gt; 
&amp;lt;label for=&amp;quot;tcheck&amp;quot;&amp;gt; 
    &amp;lt;font size=1&amp;gt;Open in New Window&amp;lt;/font&amp;gt; 
&amp;lt;/label&amp;gt;&amp;lt;/p&amp;gt; 
&amp;lt;/form&amp;gt;</description>
		<content:encoded><![CDATA[	<p>If anyone is interested, someone passed on a code to me&#8230;when you are now on my blog, you can check a box, and all hyperlinks will open in a new window.</p>
	<p>NOTE: This does not help when reading the feed version.</p>
	<p>This goes before the /head tag:</p>
	<p>&lt;script type=&quot;text/javascript&quot;&gt;&lt;!&#8211;<br />
// thanks to randomwalks.com for this code<br />
function targetLinks(boNew) {<br />
if (boNew)<br />
where = &quot;_blank&quot;;<br />
else<br />
where = &quot;_self&quot;;<br />
for (var i=0; i&lt;=(document.links.length-1); i++) {<br />
document.links[i].target = where;<br />
}<br />
}<br />
// &#8211;&gt;<br />
&lt;/script&gt; </p>
	<p>And whack this in where you want it:</p>
	<p>&lt;form  class=&quot;hid&quot; name=&quot;targeter&quot; action=&quot;&quot;&gt;<br />
&lt;p&gt;&lt;input type=&quot;checkbox&quot; name=&quot;targetbox&quot; id=&quot;tcheck&quot;<br />
    onclick=&quot;targetLinks(this.checked);&quot; /&gt;<br />
&lt;label for=&quot;tcheck&quot;&gt;<br />
    &lt;font size=1&gt;Open in New Window&lt;/font&gt;<br />
&lt;/label&gt;&lt;/p&gt;<br />
&lt;/form&gt;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Johnt</title>
		<link>http://libraryclips.blogsome.com/2006/05/21/bookmarklet-or-hot-key-to-generate-a-character-string/#comment-31175</link>
		<pubDate>Thu, 25 May 2006 02:34:55 +0100</pubDate>
		<guid>http://libraryclips.blogsome.com/2006/05/21/bookmarklet-or-hot-key-to-generate-a-character-string/#comment-31175</guid>
					<description>Maybe a greasemonkey script can enable us to add a button on our blog editors, check out this one to add technorati tags to your blog posts

http://loucypher.wordpress.com/2005/12/27/technorati-tags-button/</description>
		<content:encoded><![CDATA[	<p>Maybe a greasemonkey script can enable us to add a button on our blog editors, check out this one to add technorati tags to your blog posts</p>
	<p><a >http://loucypher.wordpress.com/2005/12/27/technorati-tags-button/</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Johnt</title>
		<link>http://libraryclips.blogsome.com/2006/05/21/bookmarklet-or-hot-key-to-generate-a-character-string/#comment-31167</link>
		<pubDate>Tue, 23 May 2006 02:50:17 +0100</pubDate>
		<guid>http://libraryclips.blogsome.com/2006/05/21/bookmarklet-or-hot-key-to-generate-a-character-string/#comment-31167</guid>
					<description>I asked my blog host about this and they suggested to put a check box at the top of my blog, if a person checks this, all links will open in a new window.

In order to do this they offered some code to go in my template...I'm not sure I'll use this as it still doesn't help people that read the feed version of my content.

Here is an example of a &lt;a href=&quot;http://poostreaks.blogsome.com/&quot; title=&quot;blog&quot; rel=&quot;nofollow&quot;&gt; using this.
&lt;/a&gt;</description>
		<content:encoded><![CDATA[	<p>I asked my blog host about this and they suggested to put a check box at the top of my blog, if a person checks this, all links will open in a new window.</p>
	<p>In order to do this they offered some code to go in my template&#8230;I&#8217;m not sure I&#8217;ll use this as it still doesn&#8217;t help people that read the feed version of my content.</p>
	<p>Here is an example of a <a href="http://poostreaks.blogsome.com/" title="blog" rel="nofollow"> using this.<br />
</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Johnt</title>
		<link>http://libraryclips.blogsome.com/2006/05/21/bookmarklet-or-hot-key-to-generate-a-character-string/#comment-31164</link>
		<pubDate>Mon, 22 May 2006 03:01:14 +0100</pubDate>
		<guid>http://libraryclips.blogsome.com/2006/05/21/bookmarklet-or-hot-key-to-generate-a-character-string/#comment-31164</guid>
					<description>Thanks Marshall it works!

Just working out how to fine tune this process for my purpose when blog drafting.

Only thing is that the label defaults to the name of the URL you type in...is there a way to type in the URL, and also type in the label?

Then the problem is that I already have the label (word/phrase) in my blog post...as I usually just highlight it click the [LINK] tag, enter a URL, and submit, which wraps the code around the label.

I suppose I could &lt;i&gt;cut&lt;/i&gt; the word/phrase from my blog post, hit the bookmarklet, &lt;i&gt;paste&lt;/i&gt; in the word/phrase, also enter in a URL, then submit, then &lt;i&gt;copy&lt;/i&gt; this generated code into the exact spot my cursor is flashing in my blog post.

Another alternative is to use my blog editor [LINK] tag as per usual, the only thing as we know is that the &quot;new window&quot; part of the code is missing, so I could just hit a bookmarklet and it pops up a box with the pre-populated code: target=&quot;blank&quot;, I can just copy this into my blog post
...actually I can kind of do this at the moment anyway, just hit the bookmarklet, and type in any random key and hit OK, then I just copy the section: target=&quot;blank&quot;, and paste that into my blog post.



</description>
		<content:encoded><![CDATA[	<p>Thanks Marshall it works!</p>
	<p>Just working out how to fine tune this process for my purpose when blog drafting.</p>
	<p>Only thing is that the label defaults to the name of the URL you type in&#8230;is there a way to type in the URL, and also type in the label?</p>
	<p>Then the problem is that I already have the label (word/phrase) in my blog post&#8230;as I usually just highlight it click the [LINK] tag, enter a URL, and submit, which wraps the code around the label.</p>
	<p>I suppose I could <i>cut</i> the word/phrase from my blog post, hit the bookmarklet, <i>paste</i> in the word/phrase, also enter in a URL, then submit, then <i>copy</i> this generated code into the exact spot my cursor is flashing in my blog post.</p>
	<p>Another alternative is to use my blog editor [LINK] tag as per usual, the only thing as we know is that the &#8220;new window&#8221; part of the code is missing, so I could just hit a bookmarklet and it pops up a box with the pre-populated code: target=&#8221;blank&#8221;, I can just copy this into my blog post<br />
&#8230;actually I can kind of do this at the moment anyway, just hit the bookmarklet, and type in any random key and hit OK, then I just copy the section: target=&#8221;blank&#8221;, and paste that into my blog post.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Marshall Kirkpatrick</title>
		<link>http://libraryclips.blogsome.com/2006/05/21/bookmarklet-or-hot-key-to-generate-a-character-string/#comment-31161</link>
		<pubDate>Sun, 21 May 2006 19:23:40 +0100</pubDate>
		<guid>http://libraryclips.blogsome.com/2006/05/21/bookmarklet-or-hot-key-to-generate-a-character-string/#comment-31161</guid>
					<description>&lt;a href=&quot;(function(){var%20a='';var%20t=prompt('Enter%20URL%20without%20http://','');var%20tr=t.split('%20');for(var%20i=0;i%3Ctr.length;i++){if(i%20%3E%200){a+=',%20';}a+='%3Ca%20href='+unescape('%22')+'http://'+tr[i]+unescape('%22')+'%20target='+unescape('%22')+'blank'+unescape('%22')+'%3E'+tr[i]+'%3C/a%3E';};prompt('Copy%20this%20code,%20press%20OK,%20then%20paste%20to%20your%20blog%20entry:',a);})()&quot; rel=&quot;nofollow&quot;&gt;NewWindow&lt;/a&gt;

Thanks for the inspiration.  I'll be using that myself.  It's made without www just because I have an asthetic aversion to including the wwws myself.  Hacked together from the tagging bookmarklets I altered on http://marshallk.com/bookmarklets

Hopefully this will work!</description>
		<content:encoded><![CDATA[	<p><a href="(function(){var%20a='';var%20t=prompt('Enter%20URL%20without%20http://','');var%20tr=t.split('%20');for(var%20i=0;i%3Ctr.length;i++){if(i%20%3E%200){a+=',%20';}a+='%3Ca%20href='+unescape('%22')+'http://'+tr[i]+unescape('%22')+'%20target='+unescape('%22')+'blank'+unescape('%22')+'%3E'+tr[i]+'%3C/a%3E';};prompt('Copy%20this%20code,%20press%20OK,%20then%20paste%20to%20your%20blog%20entry:',a);})()" rel="nofollow">NewWindow</a></p>
	<p>Thanks for the inspiration.  I&#8217;ll be using that myself.  It&#8217;s made without www just because I have an asthetic aversion to including the wwws myself.  Hacked together from the tagging bookmarklets I altered on <a >http://marshallk.com/bookmarklets</a></p>
	<p>Hopefully this will work!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: John</title>
		<link>http://libraryclips.blogsome.com/2006/05/21/bookmarklet-or-hot-key-to-generate-a-character-string/#comment-31160</link>
		<pubDate>Sun, 21 May 2006 18:20:53 +0100</pubDate>
		<guid>http://libraryclips.blogsome.com/2006/05/21/bookmarklet-or-hot-key-to-generate-a-character-string/#comment-31160</guid>
					<description>John,

Do you have access to a post template? If you do, then you could save the link code with the target there? Otherwise you can use a &lt;a href=&quot;http://www.htmlhelp.com/reference/html40/head/base.html&quot; rel=&quot;nofollow&quot;&gt;base tag&lt;/a&gt; to set &quot;open in a new window&quot; as the default for your whole page, &amp;amp; then override any &quot;same window&quot; links with their own target tag?</description>
		<content:encoded><![CDATA[	<p>John,</p>
	<p>Do you have access to a post template? If you do, then you could save the link code with the target there? Otherwise you can use a <a href="http://libraryclips.blogsome.com/go.php?u=http%3A%2F%2Fwww.htmlhelp.com%2Freference%2Fhtml40%2Fhead%2Fbase.html&amp;i=0&amp;c=59e7eb1d496b0e7e31b2632c2bd610e0d27e0621" rel="nofollow">base tag</a> to set &#8220;open in a new window&#8221; as the default for your whole page, &amp; then override any &#8220;same window&#8221; links with their own target tag?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Stefan Svartling</title>
		<link>http://libraryclips.blogsome.com/2006/05/21/bookmarklet-or-hot-key-to-generate-a-character-string/#comment-31159</link>
		<pubDate>Sun, 21 May 2006 09:47:48 +0100</pubDate>
		<guid>http://libraryclips.blogsome.com/2006/05/21/bookmarklet-or-hot-key-to-generate-a-character-string/#comment-31159</guid>
					<description>I use the Signature Firefox extension for this:
http://www.grim-world.com/miek/

You can also use the BBCode extension:
https://addons.mozilla.org/firefox/128/
</description>
		<content:encoded><![CDATA[	<p>I use the Signature Firefox extension for this:<br />
<a >http://www.grim-world.com/miek/</a></p>
	<p>You can also use the BBCode extension:<br />
<a >https://addons.mozilla.org/firefox/128/</a>
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

