<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Lightbox JS &#8211; update</title>
	<atom:link href="http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/</link>
	<description></description>
	<lastBuildDate>Wed, 24 Aug 2011 07:47:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: GlowletlE</title>
		<link>http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54396</link>
		<dc:creator>GlowletlE</dc:creator>
		<pubDate>Fri, 03 Sep 2010 01:56:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54396</guid>
		<description>Hi My name is Rich and i would like to show you this great [url=http://www.bhgalleries.com][b]Free Porn[/b][/url] and [url=http://amazingteenbabes.com][b]Teen Porn[/b][/url] or [url=http://www.partygalleries.com][b]Porn[/b][/url] free sites</description>
		<content:encoded><![CDATA[<p>Hi My name is Rich and i would like to show you this great [url=http://www.bhgalleries.com][b]Free Porn[/b][/url] and [url=http://amazingteenbabes.com][b]Teen Porn[/b][/url] or [url=http://www.partygalleries.com][b]Porn[/b][/url] free sites</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cliseeshy</title>
		<link>http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54372</link>
		<dc:creator>cliseeshy</dc:creator>
		<pubDate>Wed, 28 Jul 2010 10:22:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54372</guid>
		<description>jxdobh http://www.melodyjai.com/,big white booty bzlyyu</description>
		<content:encoded><![CDATA[<p>jxdobh <a href="http://www.melodyjai.com/,big" rel="nofollow">http://www.melodyjai.com/,big</a> white booty bzlyyu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dfherrtsyertd</title>
		<link>http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54335</link>
		<dc:creator>dfherrtsyertd</dc:creator>
		<pubDate>Thu, 03 Jun 2010 09:33:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54335</guid>
		<description>I love this site because ...
&lt;a href=&quot;http://smsclub.net76.net/chitchatting/index.php?topic=5902.0&quot; rel=&quot;nofollow&quot;&gt;paris hilton fuck&lt;/a&gt; , 
&lt;a href=&quot;http://smsclub.net76.net/chitchatting/index.php?topic=5904.0&quot; rel=&quot;nofollow&quot;&gt;watch paris hilton sex tape&lt;/a&gt; , 
&lt;a href=&quot;http://my1land2lsummer.com/index.php?topic=4705.0&quot; rel=&quot;nofollow&quot;&gt;paris hilton desnuda&lt;/a&gt; , 
&lt;a href=&quot;http://growingthefamily.com/board/index.php?topic=2114.0&quot; rel=&quot;nofollow&quot;&gt;paris hilton porno&lt;/a&gt; , 
&lt;a href=&quot;http://growingthefamily.com/board/index.php?topic=2114.0&quot; rel=&quot;nofollow&quot;&gt;paris hilton porno&lt;/a&gt; , 
&lt;a href=&quot;http://smsclub.net76.net/chitchatting/index.php?topic=5902.0&quot; rel=&quot;nofollow&quot;&gt;paris hilton fuck&lt;/a&gt; ,</description>
		<content:encoded><![CDATA[<p>I love this site because &#8230;<br />
<a href="http://smsclub.net76.net/chitchatting/index.php?topic=5902.0" rel="nofollow">paris hilton fuck</a> ,<br />
<a href="http://smsclub.net76.net/chitchatting/index.php?topic=5904.0" rel="nofollow">watch paris hilton sex tape</a> ,<br />
<a href="http://my1land2lsummer.com/index.php?topic=4705.0" rel="nofollow">paris hilton desnuda</a> ,<br />
<a href="http://growingthefamily.com/board/index.php?topic=2114.0" rel="nofollow">paris hilton porno</a> ,<br />
<a href="http://growingthefamily.com/board/index.php?topic=2114.0" rel="nofollow">paris hilton porno</a> ,<br />
<a href="http://smsclub.net76.net/chitchatting/index.php?topic=5902.0" rel="nofollow">paris hilton fuck</a> ,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nandakishor Chavan</title>
		<link>http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54249</link>
		<dc:creator>Nandakishor Chavan</dc:creator>
		<pubDate>Thu, 21 Jan 2010 06:34:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54249</guid>
		<description>Hi Jimmy,
I have same problem. have u salved this problem, please tell me a solution if you solved this one.


I am using 2 frames in my web page. In 1 frame, i am opening a lightbox for image but it will take first frame portion for overlay. It should take a whole screen for overlay.

please help me dear.

thanks</description>
		<content:encoded><![CDATA[<p>Hi Jimmy,<br />
I have same problem. have u salved this problem, please tell me a solution if you solved this one.</p>
<p>I am using 2 frames in my web page. In 1 frame, i am opening a lightbox for image but it will take first frame portion for overlay. It should take a whole screen for overlay.</p>
<p>please help me dear.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: K-Qha</title>
		<link>http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54244</link>
		<dc:creator>K-Qha</dc:creator>
		<pubDate>Tue, 12 Jan 2010 10:51:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54244</guid>
		<description>Oopps... it looks like my post are being filtered out -.-&quot;

...
Step 3: in your AJAX div area (the div u used to load AJAX content), put this line AFTER your closing div ([/div]):
[script]initLightbox();[/script]

Step 4: the last one, in EVERY anchor you produced using AJAX, put this in the onClick event:
showLightbox(this);return false;
i.e: 
[a href=&quot;yourimage.jpg&quot; onClick=&quot;showLightbox(this);return false;&quot;][img src=&quot;thumbnail.jpg&quot;][/a]</description>
		<content:encoded><![CDATA[<p>Oopps&#8230; it looks like my post are being filtered out -.-&#8221;</p>
<p>&#8230;<br />
Step 3: in your AJAX div area (the div u used to load AJAX content), put this line AFTER your closing div ([/div]):<br />
[script]initLightbox();[/script]</p>
<p>Step 4: the last one, in EVERY anchor you produced using AJAX, put this in the onClick event:<br />
showLightbox(this);return false;<br />
i.e:<br />
[a href="yourimage.jpg" onClick="showLightbox(this);return false;"][img src="thumbnail.jpg"][/a]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: K-Qha</title>
		<link>http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54243</link>
		<dc:creator>K-Qha</dc:creator>
		<pubDate>Tue, 12 Jan 2010 10:46:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54243</guid>
		<description>I found this lightbox just a few hours before. While the v2 seems more sophisticated in some way, I prefer this one because the prototype.js&#039; 120k++ size seems a lil bulky for me.

The problem I have to face with this one is AJAX compatibility, since initLightbox would only work on the initial opening of the page, not when dynamic image links acquired with AJAX. I found my wayaround after taking a peek at lightbox.js. Here is the steps:
1. comment out line 285 - 295 (which perform &quot;on-the-fly&quot; anchor modification)
2. comment out the last line which says addLoadEvent(initLightbox); to prevent initialization (in FF it works just fine with this line uncommented but I find that IE thinks differently :p)
3. in your AJAX div area (the div u used to load AJAX content), put this line AFTER your ): 
initLightbox();
4. the last one, in EVERY anchor you produced using AJAX, put this in the onClick event:
showLightbox(this);return false;
i.e: &lt;a href=&quot;yourlink.jpg&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;

And... voila!! Have fun with your AJAX gallery+lightbox :D

P.S: Sorry if this cheapskate trick is already posted by someone before. Just trying to share :)</description>
		<content:encoded><![CDATA[<p>I found this lightbox just a few hours before. While the v2 seems more sophisticated in some way, I prefer this one because the prototype.js&#8217; 120k++ size seems a lil bulky for me.</p>
<p>The problem I have to face with this one is AJAX compatibility, since initLightbox would only work on the initial opening of the page, not when dynamic image links acquired with AJAX. I found my wayaround after taking a peek at lightbox.js. Here is the steps:<br />
1. comment out line 285 &#8211; 295 (which perform &#8220;on-the-fly&#8221; anchor modification)<br />
2. comment out the last line which says addLoadEvent(initLightbox); to prevent initialization (in FF it works just fine with this line uncommented but I find that IE thinks differently :p)<br />
3. in your AJAX div area (the div u used to load AJAX content), put this line AFTER your ):<br />
initLightbox();<br />
4. the last one, in EVERY anchor you produced using AJAX, put this in the onClick event:<br />
showLightbox(this);return false;<br />
i.e: <a href="yourlink.jpg" rel="nofollow"></a></p>
<p>And&#8230; voila!! Have fun with your AJAX gallery+lightbox :D</p>
<p>P.S: Sorry if this cheapskate trick is already posted by someone before. Just trying to share :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carte visite</title>
		<link>http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54237</link>
		<dc:creator>carte visite</dc:creator>
		<pubDate>Thu, 24 Dec 2009 05:42:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54237</guid>
		<description>it worked just fine for me, thank you so much</description>
		<content:encoded><![CDATA[<p>it worked just fine for me, thank you so much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nick</title>
		<link>http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54050</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Sun, 31 May 2009 08:21:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54050</guid>
		<description>* found this fix for 2.0.4: [http://www.saurdo.com/01/03/using-html-in-a-lightbox-description]

The exact javascript file you need to edit is in the &quot;/js/&quot; folder and is named &quot;lightbox.js&quot;. The line you will need to edit is line 218 and 223 in Lightbox v2. In different versions it may vary. If you do not see the word &quot;title&quot; anywhere on those lines then doing a search for &quot;title&quot; should yield your results.

You should see something like this:

if ((imageLink.rel == &#039;lightbox&#039;)){ 
// if image is NOT part of a set, add single image to imageArray 
this.imageArray.push([imageLink.href, imageLink.title]); 
} else { 
// if image is part of a set.. 
this.imageArray = 
$$(imageLink.tagName + &#039;[href][rel=&quot;&#039; + imageLink.rel + &#039;&quot;]&#039;). 
collect(function(anchor){ return [anchor.href, anchor.title]; }). 
uniq(); 

while (this.imageArray[imageNum][0] != imageLink.href) { imageNum++; } 
}

Simply change the attribute &quot;title&quot; on both of your lines to the attribute of your choice. I have even highlighted it for your convenience. Once finished you may save and exit. The next step is to edit your HTML to correspond to your new attribute. This is as easy as changing &quot;title&quot; to &quot;id&quot; in your img tag.

Your HTML tag should now look like this (if you used the ID attribute):

&lt;a href=&quot;images/image-4.jpg&quot; rel=&quot;nofollow&quot;&gt;Image&lt;/a&gt; 
    

Now you&#039;re done. You may now use HTML in your lightbox description. However, you still have to deal with writing all that gibberish. If your images are dynamically handled by a PHP script you&#039;ll be happy to hear that there&#039;s a little function called &quot;htmlentities()&quot; that will deal with all that for you. I use the exact function in my gallery script.

If you&#039;re unfortunate enough to be coding your gallery entirely in HTML without the help of a server side language I have created a little program that might help you out. I made it in Quickscript in fact!

Here is the source code for my little htmlentity encoding program:

if($_POST){ 
    $code = $_POST[&#039;code&#039;]; 
    echo &#039;Enter HTML here:  
    &#039;.$code.&#039; 
     
    &#039;; 
    echo &#039;Result:&#039;.htmlentities($code).&#039;&#039;; 
} 
else{ 
echo &#039; 
Enter HTML here:  
 

     
    &#039;; 
} 
    

You may use the program on my website by going here. If you&#039;d like to use it on your own server you&#039;ll need to edit the bits with my URL in it. That part was necessary to add because I was using quickscript and there was no absolute path for it to follow since it was retrieving the code from the database.

Now you are truly done! You are now free to use the HTML you encode into html entities in your Lightbox descriptions without having any nasty titles or having to use a lightbox alternative. If you have any quetions feel free to contact me.</description>
		<content:encoded><![CDATA[<p>* found this fix for 2.0.4: [http://www.saurdo.com/01/03/using-html-in-a-lightbox-description]</p>
<p>The exact javascript file you need to edit is in the &#8220;/js/&#8221; folder and is named &#8220;lightbox.js&#8221;. The line you will need to edit is line 218 and 223 in Lightbox v2. In different versions it may vary. If you do not see the word &#8220;title&#8221; anywhere on those lines then doing a search for &#8220;title&#8221; should yield your results.</p>
<p>You should see something like this:</p>
<p>if ((imageLink.rel == &#8216;lightbox&#8217;)){<br />
// if image is NOT part of a set, add single image to imageArray<br />
this.imageArray.push([imageLink.href, imageLink.title]);<br />
} else {<br />
// if image is part of a set..<br />
this.imageArray =<br />
$$(imageLink.tagName + &#8216;[href][rel="' + imageLink.rel + '"]&#8216;).<br />
collect(function(anchor){ return [anchor.href, anchor.title]; }).<br />
uniq(); </p>
<p>while (this.imageArray[imageNum][0] != imageLink.href) { imageNum++; }<br />
}</p>
<p>Simply change the attribute &#8220;title&#8221; on both of your lines to the attribute of your choice. I have even highlighted it for your convenience. Once finished you may save and exit. The next step is to edit your HTML to correspond to your new attribute. This is as easy as changing &#8220;title&#8221; to &#8220;id&#8221; in your img tag.</p>
<p>Your HTML tag should now look like this (if you used the ID attribute):</p>
<p><a href="images/image-4.jpg" rel="nofollow">Image</a> </p>
<p>Now you&#8217;re done. You may now use HTML in your lightbox description. However, you still have to deal with writing all that gibberish. If your images are dynamically handled by a PHP script you&#8217;ll be happy to hear that there&#8217;s a little function called &#8220;htmlentities()&#8221; that will deal with all that for you. I use the exact function in my gallery script.</p>
<p>If you&#8217;re unfortunate enough to be coding your gallery entirely in HTML without the help of a server side language I have created a little program that might help you out. I made it in Quickscript in fact!</p>
<p>Here is the source code for my little htmlentity encoding program:</p>
<p>if($_POST){<br />
    $code = $_POST['code'];<br />
    echo &#8216;Enter HTML here:<br />
    &#8216;.$code.&#8217; </p>
<p>    &#8216;;<br />
    echo &#8216;Result:&#8217;.htmlentities($code).&#8221;;<br />
}<br />
else{<br />
echo &#8216;<br />
Enter HTML here:  </p>
<p>    &#8216;;<br />
} </p>
<p>You may use the program on my website by going here. If you&#8217;d like to use it on your own server you&#8217;ll need to edit the bits with my URL in it. That part was necessary to add because I was using quickscript and there was no absolute path for it to follow since it was retrieving the code from the database.</p>
<p>Now you are truly done! You are now free to use the HTML you encode into html entities in your Lightbox descriptions without having any nasty titles or having to use a lightbox alternative. If you have any quetions feel free to contact me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nick</title>
		<link>http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54049</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Sun, 31 May 2009 00:14:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54049</guid>
		<description>I&#039;ve read above, but am having trouble getting the lightbox captions (title tags) moved over to the alt or similar tag to hack around the title tooltip popup. Everything I try seems to break the .js lightbox functionality. Any help?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve read above, but am having trouble getting the lightbox captions (title tags) moved over to the alt or similar tag to hack around the title tooltip popup. Everything I try seems to break the .js lightbox functionality. Any help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johan</title>
		<link>http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54039</link>
		<dc:creator>johan</dc:creator>
		<pubDate>Tue, 12 May 2009 06:07:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.lokeshdhakar.com/2006/01/10/lightbox-js-update/#comment-54039</guid>
		<description>hey!
I tried various solution for loading the image outside the iframe. Can&#039;t get it to work. Can somebody make the salution downloadable in an example?
I would be very greatfull.
I&#039;m using Plogger with lightbox skin so preferable only some changes to the .js or .css file of lightbox.
thanx!</description>
		<content:encoded><![CDATA[<p>hey!<br />
I tried various solution for loading the image outside the iframe. Can&#8217;t get it to work. Can somebody make the salution downloadable in an example?<br />
I would be very greatfull.<br />
I&#8217;m using Plogger with lightbox skin so preferable only some changes to the .js or .css file of lightbox.<br />
thanx!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

