<?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/"
xmlns:georss="http://www.georss.org/georss"> <channel><title>freakcommander &#187; lightbox</title> <atom:link href="http://www.freakcommander.de/tag/lightbox/feed/" rel="self" type="application/rss+xml" /><link>http://www.freakcommander.de</link> <description>Kann alles. Weiß alles. Macht alles.</description> <lastBuildDate>Fri, 10 Feb 2012 11:40:49 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Colorbox: Link in der Box öffnen</title><link>http://www.freakcommander.de/2457/computer/colorbox-link-in-der-box-oeffnen/</link> <comments>http://www.freakcommander.de/2457/computer/colorbox-link-in-der-box-oeffnen/#comments</comments> <pubDate>Wed, 02 Dec 2009 18:12:31 +0000</pubDate> <dc:creator>crille</dc:creator> <category><![CDATA[Computer]]></category> <category><![CDATA[colorbox]]></category> <category><![CDATA[html]]></category> <category><![CDATA[jack moore]]></category> <category><![CDATA[Javascript]]></category> <category><![CDATA[lightbox]]></category> <guid
isPermaLink="false">http://www.freakcommander.de/?p=2457</guid> <description><![CDATA[Die Colorbox von Jack Moore ist großartig: Bilder, Videos, HTML: alles mögliche kann in dieser Lightbox dargestellt werden. Was allerdings so nicht vorhanden ist, ist die Möglichkeit, dass Links, die innerhalb der Lightbox aufgerufen werden, auch innerhalb der Lightbox geöffnet werden. Dazu muss innerhalb von $(document).ready(function(){}, in der die Colorbox an die Elemente gebunden werden, [...]]]></description> <content:encoded><![CDATA[<div
id="attachment_2458" class="wp-caption alignright" style="width: 384px"><a
href="http://www.freakcommander.de/wp-content/uploads/2009/12/colorbox.png"><img
class="size-full wp-image-2458" title="colorbox" src="http://www.freakcommander.de/wp-content/uploads/2009/12/colorbox.png" alt="colorbox Colorbox: Link in der Box öffnen" width="374" height="276" /></a><p
class="wp-caption-text">Die Colorbox mit Homer</p></div><p>Die <a
href="http://colorpowered.com/colorbox/">Colorbox von Jack Moore</a> ist großartig: Bilder, Videos, HTML: alles mögliche kann in dieser <strong>Lightbox</strong> dargestellt werden.</p><p>Was allerdings so nicht vorhanden ist, ist die Möglichkeit, dass Links, die innerhalb der Lightbox aufgerufen werden, auch innerhalb der Lightbox geöffnet werden.</p><p>Dazu muss innerhalb von <em>$(document).ready(function(){}</em>, in der die Colorbox an die Elemente gebunden werden, folgender Code eingefügt werden:</p><pre class="brush: jscript">
$(&quot;a.incolorbox&quot;).live(&#039;click&#039;, function(event) {
	event.preventDefault(); // native javascript function
	$.fn.colorbox({ href: $(this).attr(&quot;href&quot;), open: true})
});
</pre><p>Wenn nun innerhalb der Colorbox ein Link zur Klasse &#8220;incolorbox&#8221; gehört, wird dieser innerhalb der Colorbox geöffnet.</p><p>Auch interessant:<ol><li><a
href='http://www.freakcommander.de/2138/computer/jquery-event-listener-fuer-hinzugefuegten-inhalt/' rel='bookmark' title='JQuery Event Listener für hinzugefügten Inhalt'>JQuery Event Listener für hinzugefügten Inhalt</a></li><li><a
href='http://www.freakcommander.de/3009/computer/wiki-ein-externes-bild-mit-einem-internen-link/' rel='bookmark' title='Wiki: Ein externes Bild mit einem internen Link'>Wiki: Ein externes Bild mit einem internen Link</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.freakcommander.de/2457/computer/colorbox-link-in-der-box-oeffnen/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
