<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lars Schenk &#187; Plugin</title>
	<atom:link href="http://lars-schenk.com/tag/plugin/feed" rel="self" type="application/rss+xml" />
	<link>http://lars-schenk.com</link>
	<description>IT-Services :: Software-Development since 1980 :: Freelancer since 1988</description>
	<lastBuildDate>Thu, 18 Feb 2010 23:42:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flickr Photo Gallery 0.92 mit WordPress 2.3</title>
		<link>http://lars-schenk.com/flickr-photo-gallery-092-mit-wordpress-23/156</link>
		<comments>http://lars-schenk.com/flickr-photo-gallery-092-mit-wordpress-23/156#comments</comments>
		<pubDate>Mon, 08 Oct 2007 20:53:03 +0000</pubDate>
		<dc:creator>Lars Schenk</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://lars-schenk.com/flickr-photo-gallery-092-mit-wordpress-23/156</guid>
		<description><![CDATA[Flickr Photo Gallery Version 0.92 macht Probleme mit WordPress 2.3 &#8211; ein Update des Plugins ist derzeit nicht verfügbar. Um die Administrator-Seite wieder zum laufen zu bringen kann man sich damit behelfen in der admin-options-load.php die Zeile 15
require_once(dirname(__FILE__).$tmpPath.&#8217;/wp-admin/admin-db.php&#8217;);
auszukommentieren.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://tantannoodles.com/toolkit/photo-album/">Flickr Photo Gallery</a> Version 0.92 macht Probleme mit WordPress 2.3 &#8211; ein Update des Plugins ist derzeit nicht verfügbar. Um die Administrator-Seite wieder zum laufen zu bringen kann man sich damit behelfen in der admin-options-load.php die Zeile 15<br />
<blockquote>require_once(dirname(__FILE__).$tmpPath.&#8217;/wp-admin/admin-db.php&#8217;);</p></blockquote>
<p>auszukommentieren.</p>
]]></content:encoded>
			<wfw:commentRss>http://lars-schenk.com/flickr-photo-gallery-092-mit-wordpress-23/156/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.3 macht viele Plugins unbrauchbar</title>
		<link>http://lars-schenk.com/wordpress-23-macht-viele-plugins-unbrauchbar/153</link>
		<comments>http://lars-schenk.com/wordpress-23-macht-viele-plugins-unbrauchbar/153#comments</comments>
		<pubDate>Tue, 02 Oct 2007 15:54:58 +0000</pubDate>
		<dc:creator>Lars Schenk</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://lars-schenk.com/wordpress-23-macht-viele-plugins-unbrauchbar/153</guid>
		<description><![CDATA[Unter der Haube hat sich viel geändert. Entsprechende Hinweise dazu sowie das komplette Changelog habe ich hier verlinkt. 
Am problematischsten dürfte das neue Taxonomy-System sein, denn es ersetzt diverse Tabellen.
Das Upgrade auf WordPress 2.3 löscht gleich mehrere Tabellen und macht so eine Reihe von Plugins unbrauchbar, die direkt auf diese Tabellen zugreifen statt über die [...]]]></description>
			<content:encoded><![CDATA[<p>Unter der Haube hat sich viel geändert. Entsprechende <a href="http://codex.wordpress.org/Version_2.3">Hinweise dazu</a> sowie das komplette <a href="http://codex.wordpress.org/Changelog/2.3">Changelog</a> habe ich hier verlinkt. </p>
<p>Am problematischsten dürfte das neue <a href="http://codex.wordpress.org/index.php?title=Version_2.3:New_Taxonomy">Taxonomy-System</a> sein, denn es ersetzt diverse Tabellen.<br />
Das Upgrade auf WordPress 2.3 löscht gleich mehrere Tabellen und macht so eine Reihe von Plugins unbrauchbar, die direkt auf diese Tabellen zugreifen statt über die dafür vorgesehene <a href="http://codex.wordpress.org/Function_Reference/get_categories">API zu gehen um z.B. die Kategorien auszulesen</a>. Wer also nach dem Upgrade Fehlermeldungen wie z.B. &#8220;wp_post2cat&#8217; doesn&#8217;t exist&#8221; bekommt, kann davon ausgehen, dass ein verwendetes Plugin nicht mit WordPress 2.3 kompatibel ist. </p>
<p>Eine <a href="http://codex.wordpress.org/Plugins/Plugin_Compatibility/2.3#Non-working_plugins.2C_or_has_issues">List der zu WordPress 2.3 nicht mehr kompatiblen Plugins</a> wurde hier zusammengestellt.</p>
<p><span id="more-153"></span></p>
<p>Ein Plugin, dass ich einsetze und für das ich kein Upgrade von Seiten des Autoren erwarte ist:</p>
<p><a href="http://www.silpstream.com/blog/wp-dtree/">WP-dTree 2.2 Version 2.2 (10 July 2006)<br />
</a>. Das Plugin macht einen recht verwaisten Eindruck, leistete aber bis zu WP 2.2.3 sehr gute Dienste so dass ich dafür sogar ein Widget druckrum gebastelt habe. Da ich bisher noch keinen brauchbaren Ersatz gefunden habe, werde ich das Plugin soweit patchen, dass ich es wieder für meine Zwecke einsetzen kann. (to be continued &#8230; maybe&#8230; if there is enough time)&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://lars-schenk.com/wordpress-23-macht-viele-plugins-unbrauchbar/153/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress Upgrades &#8211; Impact auf Plugings</title>
		<link>http://lars-schenk.com/wordpress-upgrades-impact-auf-plugings/105</link>
		<comments>http://lars-schenk.com/wordpress-upgrades-impact-auf-plugings/105#comments</comments>
		<pubDate>Thu, 26 Apr 2007 12:02:58 +0000</pubDate>
		<dc:creator>Lars Schenk</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[tech-recipes]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Widget]]></category>

		<guid isPermaLink="false">http://www.lars-schenk.com/wordpress-upgrades-impact-auf-plugings/105</guid>
		<description><![CDATA[Mit dem Wordpress-Upgrade auf 2.1 (derzeit 2.13) habe ich mich bei diesem Blog etwas schwer getan, denn ich verwende zahlreiche Plugins deren Kompatibelität zur 2.1er Version nocht nicht bestätigt war. Jetzt habe ich endlich das Upgrade von der 2.07 zur 2.13 gewagt und fahre dabei mit folgenden Plugins weiterhin überwiegend reibungslos: 

iG:Syntax Hiliter 3.5
Subscribe to [...]]]></description>
			<content:encoded><![CDATA[<p>Mit dem Wordpress-Upgrade auf 2.1 (derzeit 2.13) habe ich mich bei diesem Blog etwas schwer getan, denn ich verwende zahlreiche Plugins deren Kompatibelität zur 2.1er Version nocht nicht bestätigt war. Jetzt habe ich endlich das Upgrade von der 2.07 zur 2.13 gewagt und fahre dabei mit folgenden Plugins weiterhin überwiegend reibungslos: <span id="more-105"></span></p>
<ol>
<li><a href="http://blog.igeek.info/wp-plugins/igsyntax-hiliter/">iG:Syntax Hiliter 3.5</a></li>
<li><a href="http://txfx.net/code/wordpress/subscribe-to-comments/">Subscribe to comments 2.1</a></li>
<li><a href="http://www.acmetech.com/blog/adsense-deluxe/">Adsense-Deluxe 0.8</a></li>
<li><a href="http://tantannoodles.com/toolkit/photo-album/">Flickr Photo Gallery</a> (aktuelle Version 0.91 broken downgrade auf Version 0.89)</li>
</ol>
<p>Das Subscripte to comments scheint einen Bug zu haben, denn die Einstellung: "CSS "clear" auf Abonnieren-Checkbos ausführen" lässt sich nicht ändern. Da das CSS mit meinem Theme nicht harmoniert habe ich im Plugin subscripte-to-comments.php bei Zeile 269 folgende kleine Änderung vorgenommen:</p>
<div class="igBar"><span id="lphp-2"><a href="#" onclick="javascript:showPlainTxt('php-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-2">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// 26.04.2007 - clear-both war immer true. Wird wohl nicht richtig in die DB geschrieben. </span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// Ich brauche es immer disabled. Daher stelle ich es hier auf null/false.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">clear_both</span> = <span style="color:#FF0000;">''</span>; <span style="color:#FF9933; font-style:italic;">// $this-&gt;settings['clear_both']; </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Das nützliche Plugin erlaubt, Kommentare zu abonieren. Man erhält also eine EMail-Benachrichtigung, wenn jemand einen Folgekommentar auf einen eigenen Kommentar abgegeben hat.</p>
<p>Und noch eine Hinweis zur aktuellen Flickr Photo Gallery Version 0.91: Da hat sich offenbar ein Fehler eingeschlichen, denn es erscheint die Fehlermeldung "Error: Please create at least one Flickr photo set, and then click the “Refresh” button above to see your photos." beim Versuch den Flickr-Cash zu refreshen. Diese Fehlermeldung wurde auch im Blog von anderen Anwendern bestätigt. Ich habe auf die 0.89 downgraden müssen und bin damit das Problem losgeworden. Ab Version 0.87 ist das Plugin für WP 2.1 geeignet. Da ich zuvor die 0.85 laufen hatte war ich zu einem Upgrade gezwungen.</p>
]]></content:encoded>
			<wfw:commentRss>http://lars-schenk.com/wordpress-upgrades-impact-auf-plugings/105/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Plugin für Flickr und Lightbox</title>
		<link>http://lars-schenk.com/wordpress-plugin-flickr-lightbox/76</link>
		<comments>http://lars-schenk.com/wordpress-plugin-flickr-lightbox/76#comments</comments>
		<pubDate>Tue, 14 Nov 2006 00:42:46 +0000</pubDate>
		<dc:creator>Lars Schenk</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[tech-recipes]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[Lightbox]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://www.lars-schenk.com/wordpress-plugin-flickr-lightbox/76</guid>
		<description><![CDATA[Mit dem Wordpress Plugin Flickr Photo Album for WordPress hat Joe Tan eine das wirklich schöne Integration der Flickr Dienste in WordPress ermöglicht. Wer keine eigene Gallery wie zum Beispiel Gallery 1 oder 2 von Bharat Mediratta oder die Coppermine Photo Gallery betreiben und integrieren möchte, kann mit diesem Plugin schnell und unkompliziert seine eigenen [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/photos/photo/296797332/Joana__Alicia.html" title="Dieses Bild wurde mit der Default-Methode vom Plugin eingebunden - der Link führt Sie zu einer neuen Seite."><img style="float: right; margin-left: 20px; margin-bottom: 10px;" src="http://static.flickr.com/122/296797332_9748d1020b_m.jpg" alt="" width="240" height="135" border="0" /></a>Mit dem Wordpress Plugin <a href="http://tantannoodles.com/toolkit/photo-album/">Flickr Photo Album for WordPress</a> hat Joe Tan eine das wirklich schöne Integration der <a href="http://www.flickr.com">Flickr</a> Dienste in WordPress ermöglicht. Wer keine eigene Gallery wie zum Beispiel <a href="http://gallery.menalto.com/">Gallery 1 oder 2 von Bharat Mediratta</a> oder die <a href="http://coppermine-gallery.net/">Coppermine Photo Gallery</a> betreiben und integrieren möchte, kann mit diesem Plugin schnell und unkompliziert seine eigenen Fotoalben in den WordPress basierten Blog integrieren. Die Installation setzt einen eigenen API-Key bei Flickr voraus, der aber auch während der Installation angelegt werden kann.<br />
Ein optionales Flickr Sidebar Widget zur Anzeige Ihrer aktuellen Flickr Bilder im WordPress Sidebar wird ebenfalls mitgeliefert - es setzt jedoch das <a href="http://automattic.com/code/widgets/">WordPress Widgets Plugin</a> voraus.</p>
<p>Optional werden auch die <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox 2</a> Effekte unterstützt, hierzu kann in /wp-content/plugins/silaspartners/flickr/photoalbum-header.html die Variable <i>$useLightbox = true;</i> gesetzt werden. Der Vorteil der Lightbox ist, dass Bilder in der Volldarstellung über der aktuellen Seiten und nicht innerhalb einer neuen Seite dargestellt werden, was dem Webdesigner mehr Möglichkeiten für das Layout offenbart und den Betrachter des Bildes auf der aktuellen Seite verweilen läst.</p>
<p><a href="http://static.flickr.com/122/296797332_9748d1020b_o.jpg" rel="lightbox" title="Hier wird das Vollbild via Lightbox dargestellt: Ein Seitenwechsel wird vermieden!"><img style="float: right; margin-left: 20px; margin-bottom: 10px;" src="http://static.flickr.com/122/296797332_9748d1020b_m.jpg" alt="" width="240" height="135" border="0" /></a>Bei der Lightbox Integration bin ich jedoch einen anderen Weg gegangen, denn das Setzen des <i>$useLightbox = true;</i> Schalters aktiviert die Lighbox nur bei der Foto-Alben-Darstellung und nimmt dem Anwender dort die Möglichkeit Kommentare zu einem Album bzw. Bild zu hinterlegen. Während die Lightbox-Effekte ungenutzt bleiben, wenn man ein Flickr Bild über das Plugin in den WordPress-Editor einbindet.  Und genau hier möchte man doch die Vorteile der Lightbox ausspielen indem man zur Volldarstellung des Bildes den Leser eines Beitrages nicht dazu zwingt, die aktuelle Seite zu verlassen. </p>
<p>Probieren Sie es einmal aus: Ein Klick auf das obere Bild führt Sie auf eine neue Seite - dies ist das Default-Verhalten des Plugins. Und ein Klick auf das zweite Bild nutzt die Lightbox und führt Sie nicht von dieser Seite weg. Im folgenden habe ich ein paar Notitzen gemacht, welche Änderungen durchzuführen sind. <span id="more-76"></span></p>
<p>Zunächst einmal brauchen wir die Lightbox nun "Site-wide" und müssen daher entsprechende Vorkehrungen am WP-Theme vornehmen, denn das Flickr Plugin bindet die Lightbox nur auf den von ihm generierten Seiten ein. Ich editiere also /wp-content/themes/YOURTHEMEDIRECTORY/header.php und erweitere den &lt;head&gt;-Bereich wie folgt:</p>
<div class="igBar"><span id="lphp-6"><a href="#" onclick="javascript:showPlainTxt('php-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-6">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;!-- Start:lightbox --&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;style type=<span style="color:#FF0000;">"text/css"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">/* &lt;![CDATA[ */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">/* lightbox css&nbsp; */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">@import url<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000; font-weight:bold;">&lt;?php</span> bloginfo<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'home'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;?&gt;/wp-content/plugins/silaspartners/flickr/lightbox/css/lightbox.css<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">/* ]]&gt; */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/style&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script src=<span style="color:#FF0000;">"&lt;?php bloginfo('home');?&gt;/wp-content/plugins/silaspartners/flickr/lightbox/js/prototype.js"</span> type=<span style="color:#FF0000;">"text/javascript"</span> language=<span style="color:#FF0000;">"JavaScript"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script src=<span style="color:#FF0000;">"&lt;?php bloginfo('home');?&gt;/wp-content/plugins/silaspartners/flickr/lightbox/js/scriptaculous.js?load=effects"</span> type=<span style="color:#FF0000;">"text/javascript"</span> language=<span style="color:#FF0000;">"JavaScript"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script src=<span style="color:#FF0000;">"&lt;?php bloginfo('home');?&gt;/wp-content/plugins/silaspartners/flickr/lightbox/js/lightbox.js"</span> type=<span style="color:#FF0000;">"text/javascript"</span> language=<span style="color:#FF0000;">"JavaScript"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color:#FF0000;">"text/javascript"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fileLoadingImage = <span style="color:#FF0000;">"&lt;?php bloginfo('home');?&gt;/wp-content/plugins/silaspartners/flickr/lightbox/images/loading.gif"</span>;&nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">fileBottomNavCloseImage = <span style="color:#FF0000;">"&lt;?php bloginfo('home');?&gt;/wp-content/plugins/silaspartners/flickr/lightbox/images/closelabel.gif"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;/script&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;!-- <a href="http://www.php.net/end"><span style="color:#000066;">End</span></a>:lightbox --&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Die Pfadangabe zur Lightbox kann auch anders gewählt werden - ich habe auf die zZ. aktuelle Verison 2.02 zurückgegriffen, die vom FlickrPlugin mitgeliefert wurde. </p>
<p>In /wp-content/plugins/silaspartners/flickr/photoalbum-header.html habe ich nun <i>$useLightbox = false;</i> gesetzt, damit ich bei der Alben-Ansicht die Kommentarefunktion verfügbar habe.</p>
<p>Als Komfortfunktion möchte ich nun noch das Flickr Plugin so modifizieren, dass beim Einfügen von Bildern in einen Beitrag gleich korrekte Lightbox Links erstellt werden und die Links nicht von der Seite wegführen. Hierzu ändere ich an in /wp-content/plugins/silaspartners/flickr/inline-photos.html die Funktion <i>silas_addPhoto</i> wie folgt:</p>
<div class="igBar"><span id="lphp-7"><a href="#" onclick="javascript:showPlainTxt('php-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-7">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> silas_addPhoto<span style="color:#006600; font-weight:bold;">&#40;</span>photoUrl, sourceUrl, width, height, title<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// photoURL soll immer das Original-Bild auf flickr sein</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// damit Lightbox die Anzeige übernehmen kann und der Link zum Bild</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// nicht auf eine neue Seite führt:</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; flickrOriginalPhotoUrl = <span style="color:#000000; font-weight:bold;">new</span> String<span style="color:#006600; font-weight:bold;">&#40;</span>sourceUrl<span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; flickrOriginalPhotoUrl = flickrOriginalPhotoUrl.replace<span style="color:#006600; font-weight:bold;">&#40;</span>/_s|_t|_m/,<span style="color:#FF0000;">"_o"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">var</span> html = </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'&lt;a href=&quot;'</span>+flickrOriginalPhotoUrl+<span style="color:#FF0000;">'&quot; rel=&quot;lightbox[album]&quot; title=&quot;'</span>+title+<span style="color:#FF0000;">'&quot;&gt;'</span> +</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'&lt;img src=&quot;'</span>+sourceUrl+<span style="color:#FF0000;">'&quot; width=&quot;'</span>+width+<span style="color:#FF0000;">'&quot; height=&quot;'</span>+height+<span style="color:#FF0000;">'&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;'</span> +</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF0000;">'&lt;/a&gt; '</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> richedit <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; win.tinyMCE.execCommand<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'mceInsertContent'</span>, <span style="color:#000000; font-weight:bold;">false</span>, html<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; win.edInsertContent<span style="color:#006600; font-weight:bold;">&#40;</span>win.edCanvas, html<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#000000; font-weight:bold;">false</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Es wird also statt der virtuellen HTML Seite zum Bild/Album nun direkt auf die URI des Bildes bei Flickr verlinkt. Damit die Lightbox eingreifen kann, wird das Attribut <i>rel="lightbox[album]"</i> eingefügt. Durch den optionalen Zusatz [album] werden alle Bilder eines Beitrags zu einer zusammenhängen Serie zusammengeführt, so dass Lightbox mit "Next" and "Prev" das Durchblättern aller Bilder eines Beitrags erlaubt.<br />
Das Title-Attribut wird im Anchor-Tag gesetzt. Das Alt-Attribut im Img-Tag hingegen wird leer gesetzt, damit der IE keinen Standard-Tooltipp für das Image anzeigt. Wenn SweetTitles installiert sind, so wird das Title-Attribut aus dem Anchor-Tag für das Tooltipp-Rendering ausgewertet.</p>
<p>Bekannte Seiteneffekte:<br />
Ein evtl. hinterlegter Titel wird hier zwar für Lightbox auswertbar im Anchror-Tag mit angegeben und sollte eigentlich dazu führen, das bei der Volldarstellung des Bildes der Titel unter dem Bild angezeigt wird - in diesem Blog klappt das jedoch nicht, weil ich auf dieser Site <a href="http://www.lars-schenk.com/sweettitles-fading-tooltips/74" title="erfahren Sie mehr über die leistungsfähige Tool-Tip Lösung SweetTitles.">auch Dustin Diaz' Sweet Titles verwende</a>. Hier gibt es einen Konflikt in den JavaScripten.</p>
<p>Folgende HTML Snippet sind mit den o.g. Änderungen am JavaScript über den Editor einfügbar. Auf eine automatische Formatierung habe ich verzichtet, da ich diese von Fall zu Fall individuell per Style-Attribut einfüge.</p>
<div class="igBar"><span id="lhtml-8"><a href="#" onclick="javascript:showPlainTxt('html-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-8">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Square (75x75):</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://static.flickr.com/120/296797177_9611731de3_o.jpg"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"lightbox[album]"</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"Alicia &amp; Joana"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://static.flickr.com/120/296797177_9611731de3_s.jpg"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"75"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"75"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">""</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Thumbnail (100x56):</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://static.flickr.com/121/296797039_ded27dfc9a_o.jpg"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"lightbox[album]"</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"Joana &amp; Alicia"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://static.flickr.com/121/296797039_ded27dfc9a_t.jpg"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"100"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"56"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">""</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span> </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Small (240x135):</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://static.flickr.com/107/296796964_bbb2a1281e_o.jpg"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"lightbox[album]"</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"Heiko &amp; Lars Hansapark 2006"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://static.flickr.com/107/296796964_bbb2a1281e_m.jpg"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"240"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"135"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">""</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Medium (500x281):</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://static.flickr.com/114/296796873_03b0533dc4_o.jpg"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"lightbox[album]"</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"Joana &amp; Alicia"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://static.flickr.com/114/296796873_03b0533dc4.jpg"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"500"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"281"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>&nbsp; <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">""</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span> </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Large (800x450):</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">&lt;a</span></a> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://static.flickr.com/121/296796774_7dd793fd66_o.jpg"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"lightbox[album]"</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"Joana"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://static.flickr.com/121/296796774_7dd793fd66_o.jpg"</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">"800"</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">"450"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">""</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ich habe hier alle Grössen die vom Plugin bzw. Flickr unterstützt werden einmal aufgeführt. Die folgenden Bilder werden von Lightbox als ein zusammenhängende Serie erkannt, weil sie das identische Attribut <i>rel="lightbox[album]"</i> enthalten.</p>
<p>Square (75x75):<br />
<a href="http://static.flickr.com/120/296797177_9611731de3_o.jpg" rel="lightbox[album]" title="Alicia &#038; Joana"><img src="http://static.flickr.com/120/296797177_9611731de3_s.jpg" width="75" height="75" border="0" alt="" /></a> </p>
<p>Thumbnail (100x56):<br />
<a href="http://static.flickr.com/121/296797039_ded27dfc9a_o.jpg" rel="lightbox[album]" title="Joana &#038; Alicia"><img src="http://static.flickr.com/121/296797039_ded27dfc9a_t.jpg" width="100" height="56" border="0" alt="" /></a> </p>
<p>Small (240x135):<br />
<a href="http://static.flickr.com/107/296796964_bbb2a1281e_o.jpg" rel="lightbox[album]" title="Heiko &#038; Lars Hansapark 2006"><img src="http://static.flickr.com/107/296796964_bbb2a1281e_m.jpg" width="240" height="135" border="0" alt="" /></a> </p>
<p>Medium (500x281):<br />
<a href="http://static.flickr.com/114/296796873_03b0533dc4_o.jpg" rel="lightbox[album]" title="Joana &#038; Alicia"><img src="http://static.flickr.com/114/296796873_03b0533dc4.jpg" width="500" height="281" border="0"  alt="" /></a> </p>
<p>Large (800x450):<br />
<a href="http://static.flickr.com/121/296796774_7dd793fd66_o.jpg" rel="lightbox[album]" title="Joana"><img src="http://static.flickr.com/121/296796774_7dd793fd66_o.jpg" width="800" height="450" border="0" alt="" /></a> </p>
]]></content:encoded>
			<wfw:commentRss>http://lars-schenk.com/wordpress-plugin-flickr-lightbox/76/feed</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Smarter SweetTitles &#8211; JavaScript Fading Tooltips adjusted</title>
		<link>http://lars-schenk.com/sweettitles-fading-tooltips/74</link>
		<comments>http://lars-schenk.com/sweettitles-fading-tooltips/74#comments</comments>
		<pubDate>Fri, 10 Nov 2006 01:51:36 +0000</pubDate>
		<dc:creator>Lars Schenk</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[tech-recipes]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://www.lars-schenk.com/sweettitles-fading-tooltips/74</guid>
		<description><![CDATA[Dustin Diaz hat mit SweetTitles eine sehr elegante Lösung zur verbesserten Darstellung von Tooltips erstellt. Ich habe das JavaScript jetzt mal probeweise auch auf dieser Site eingesetzt und dabei  noch mal ein klein wenig an meine Bedürfnisse angepasst. 
Zum einen unterdrücke ich die stets erfolgende Ausgabe des Protokoll-Prefix "http://". Die so gewonnen 7 Zeichen [...]]]></description>
			<content:encoded><![CDATA[<p>Dustin Diaz hat mit <a href="http://www.dustindiaz.com/sweet-titles" rel="external" title="SweetTitles verbessert die Darstellung von Tooltips">SweetTitles</a> eine sehr elegante Lösung zur verbesserten Darstellung von Tooltips erstellt. Ich habe das JavaScript jetzt mal probeweise auch auf dieser Site eingesetzt und dabei  noch mal ein klein wenig an meine Bedürfnisse angepasst. <span id="more-74"></span></p>
<p>Zum einen unterdrücke ich die stets erfolgende Ausgabe des Protokoll-Prefix "http://". Die so gewonnen 7 Zeichen schlage ich auf die URL-Ausgabe drauf, so das ich statt 25 Zeichen nun 32 Zeichen der URL anzeigen kann. Ferner unterdrücke ich die URL-Ausgabe ganz, wenn die URL "meine" Domain oder "static.flickr." oder "javascript:" enthält. Es sieht einfach eleganter aus, wenn eine URL nur dann angezeigt wird, wenn es sich um einen externen Link handelt. Das Unterdrücken der URL-Ausgabe bei Vorhandensein von "JavaScript:" sorgt dafür das Items, die mit JavaScript belegt sind nicht mit einem SweetTitle versehen werde. Gerade bei aufklappbaren Listen (z.B. Kategorieliste per WP-dTree) würde es andernfalls sehr störend wirken.   </p>
<p>Da im Original immer eine URL ausgegben wird, gibt es auch immer einen Tooltipp. Bei meiner Variante kann es nun aber vorkommen, dass die URL nicht ausgeben wird. Wenn dann nun noch der Tooltipp leer ist, muss das natürlich erkannt werden so dass in diesem Fall kein Tooltipp ausgeben wird.</p>
<p>Folgende kleine Änderungen am Quellcode /wp-content/themes/#your_theme_name#/js/sweetTitles.js sorgen für dieses geänderte Verhalten:</p>
<div class="igBar"><span id="ljava-10"><a href="#" onclick="javascript:showPlainTxt('java-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-10">
<div class="java">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//...</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;tipShow : function<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; var scrX = <a href="http://www.google.com/search?q=allinurl%3ANumber+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">Number</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">xCord</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; var scrY = <a href="http://www.google.com/search?q=allinurl%3ANumber+java.sun.com&amp;bntl=1"><span style="color: #aaaadd; font-weight: bold;">Number</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">yCord</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; var tp = parseInt<span style="color: #66cc66;">&#40;</span>scrY+<span style="color: #cc66cc;color:#800000;">15</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; var lt = parseInt<span style="color: #66cc66;">&#40;</span>scrX+<span style="color: #cc66cc;color:#800000;">10</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; var anch = <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">checkNode</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; var addy = <span style="color: #ff0000;">''</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; var access = <span style="color: #ff0000;">''</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> anch.<span style="color: #006600;">nodeName</span>.<span style="color: #006600;">toLowerCase</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> == <span style="color: #ff0000;">'a'</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addy = <span style="color: #66cc66;">&#40;</span>anch.<span style="color: #006600;">href</span>.<span style="color: #006600;">length</span>&gt; <span style="color: #cc66cc;color:#800000;">32</span> ? anch.<span style="color: #006600;">href</span>.<span style="color: #006600;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">substring</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span>,<span style="color: #cc66cc;color:#800000;">32</span><span style="color: #66cc66;">&#41;</span>+<span style="color: #ff0000;">"..."</span> : anch.<span style="color: #006600;">href</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addy = addy.<span style="color: #006600;">replace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'http://'</span>,<span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> !addy.<span style="color: #006600;">search</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'lars-schenk.'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> addy = <span style="color: #ff0000;">''</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> !addy.<span style="color: #006600;">search</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'static.flickr.'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> addy = <span style="color: #ff0000;">''</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> !addy.<span style="color: #006600;">search</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'javascript:'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> addy = <span style="color: #ff0000;">''</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var access = <span style="color: #66cc66;">&#40;</span> anch.<span style="color: #006600;">accessKey</span> ? <span style="color: #ff0000;">' &lt;span&gt;['</span>+anch.<span style="color: #006600;">accessKey</span>+<span style="color: #ff0000;">']&lt;/span&gt; '</span> : <span style="color: #ff0000;">''</span> <span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addy = anch.<span style="color: #006600;">firstChild</span>.<span style="color: #006600;">nodeValue</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">tip</span>.<span style="color: #006600;">innerHTML</span> = <span style="color: #ff0000;">"&lt;p&gt;"</span>+anch.<span style="color: #006600;">getAttribute</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'tip'</span><span style="color: #66cc66;">&#41;</span>+<span style="color: #ff0000;">"&lt;em&gt;"</span>+access+addy+<span style="color: #ff0000;">"&lt;/em&gt;&lt;/p&gt;"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> parseInt<span style="color: #66cc66;">&#40;</span>document.<span style="color: #006600;">documentElement</span>.<span style="color: #006600;">clientWidth</span>+document.<span style="color: #006600;">documentElement</span>.<span style="color: #006600;">scrollLeft</span><span style="color: #66cc66;">&#41;</span> &lt;parseInt<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">tip</span>.<span style="color: #006600;">offsetWidth</span>+lt<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">tip</span>.<span style="color: #006600;">style</span>.<span style="color: #006600;">left</span> = parseInt<span style="color: #66cc66;">&#40;</span>lt-<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">tip</span>.<span style="color: #006600;">offsetWidth</span>+<span style="color: #cc66cc;color:#800000;">10</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>+<span style="color: #ff0000;">'px'</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">tip</span>.<span style="color: #006600;">style</span>.<span style="color: #006600;">left</span> = lt+<span style="color: #ff0000;">'px'</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> parseInt<span style="color: #66cc66;">&#40;</span>document.<span style="color: #006600;">documentElement</span>.<span style="color: #006600;">clientHeight</span>+document.<span style="color: #006600;">documentElement</span>.<span style="color: #006600;">scrollTop</span><span style="color: #66cc66;">&#41;</span> &lt;parseInt<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">tip</span>.<span style="color: #006600;">offsetHeight</span>+tp<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">tip</span>.<span style="color: #006600;">style</span>.<span style="color: #006600;">top</span> = parseInt<span style="color: #66cc66;">&#40;</span>tp-<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">tip</span>.<span style="color: #006600;">offsetHeight</span>+<span style="color: #cc66cc;color:#800000;">10</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>+<span style="color: #ff0000;">'px'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">tip</span>.<span style="color: #006600;">style</span>.<span style="color: #006600;">top</span> = tp+<span style="color: #ff0000;">'px'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>addy || anch.<span style="color: #006600;">getAttribute</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'tip'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">tip</span>.<span style="color: #006600;">style</span>.<span style="color: #006600;">visibility</span> = <span style="color: #ff0000;">'visible'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">tip</span>.<span style="color: #006600;">style</span>.<span style="color: #006600;">opacity</span> = <span style="color: #ff0000;">'.1'</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006600;">tipFade</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">10</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//... </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Bekannte Probleme:<br />
Wenn SweetTitles ein Title-Attribut in einem Anchor-Tag rendert, welches um ein Image-Tag gelegt ist, un dieses Image-Tag ein Alt-Tag enthält, so wird beim IE der intrinsinc Tooltipp zusätzlich zum SweetTitle-Tooltipp gerendert. Daher sollten bei einem verlinkten Image-Tag das ALT-Attribut stets mit <i>alt=""</i> angegeben werde.</p>
]]></content:encoded>
			<wfw:commentRss>http://lars-schenk.com/sweettitles-fading-tooltips/74/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
