Luys
04-25-2011, 06:05 PM
1) Script Title: Lightbox image viewer 2.03a
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm
3) Describe problem: Hi all!
I would like to cancel the title tag tool tip on hover a link, not the linked caption on big image lightbox. It is very annoying because most of the time is a mere echo of the actual link and if I combine plain text plus a link reference the internal code is visible.
I found on forum the thread "Image thumbnail viewer 2 : add target="_blank" to link ?"
http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm
that gives the following solution:
<script type="text/javascript">
(function(){
if(document.body.getAttribute)
for (var i = 0, l=document.links; i < l.length; i++)
if(/enlargeimage/.test(l[i].getAttribute('rel'))){
l[i].caption=l[i].getAttribute('title');
l[i].removeAttribute('title');
}
})();
</script>
</body>
</html>
and change something in the OLD code version, not in the NEW one.
So I changed only "enlargeimage" for "lightbox" and, at first look, it seems to work. But it also hide the text and link of caption in the modal window!
Any idea? :(
--------------
A second more important question to me:
I work only with small thumbnails and big images.
There is any way to modify the code to specify in each of the links or thumbnail images the "desired" final dimensions?
Or better yet, to simplify, is it possible to modify the DD code or the new one of the author to scale the lightbox final image HALF OF the original/actual size? That is, 50%... The latter solution is what I really need.
v 2.05
http://www.lokeshdhakar.com/projects/lightbox2/#download
Thanks in advance for your replies.
Luys
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm
3) Describe problem: Hi all!
I would like to cancel the title tag tool tip on hover a link, not the linked caption on big image lightbox. It is very annoying because most of the time is a mere echo of the actual link and if I combine plain text plus a link reference the internal code is visible.
I found on forum the thread "Image thumbnail viewer 2 : add target="_blank" to link ?"
http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm
that gives the following solution:
<script type="text/javascript">
(function(){
if(document.body.getAttribute)
for (var i = 0, l=document.links; i < l.length; i++)
if(/enlargeimage/.test(l[i].getAttribute('rel'))){
l[i].caption=l[i].getAttribute('title');
l[i].removeAttribute('title');
}
})();
</script>
</body>
</html>
and change something in the OLD code version, not in the NEW one.
So I changed only "enlargeimage" for "lightbox" and, at first look, it seems to work. But it also hide the text and link of caption in the modal window!
Any idea? :(
--------------
A second more important question to me:
I work only with small thumbnails and big images.
There is any way to modify the code to specify in each of the links or thumbnail images the "desired" final dimensions?
Or better yet, to simplify, is it possible to modify the DD code or the new one of the author to scale the lightbox final image HALF OF the original/actual size? That is, 50%... The latter solution is what I really need.
v 2.05
http://www.lokeshdhakar.com/projects/lightbox2/#download
Thanks in advance for your replies.
Luys