Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Need a Lightbox code and easy directions
Old 10-28-2009, 03:09 PM Need a Lightbox code and easy directions
Average Talker

Posts: 21
Name: Robert Culos
Trades: 0
Can someone not only provide a simple code but specific directions on how to add a lightbox to a link on a page.

It seems simple and I keep getting close but not cigar.

Thank you.

RC
rmculos is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-28-2009, 03:34 PM Re: Need a Lightbox code and easy directions
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
Have you tried this one?
http://www.huddletogether.com/projects/lightbox/

It is pretty simple and has good directions on how to set it up.
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 10-28-2009, 04:12 PM Re: Need a Lightbox code and easy directions
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Yes, and they come WITH instructions and examples
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-28-2009, 04:13 PM Re: Need a Lightbox code and easy directions
jim1228's Avatar
Extreme Talker

Posts: 195
Name: Jim
Location: Ohio
Trades: 0
This may be outdated.

HTML Code:
<link rel="stylesheet" href="css/lightbox.css" type="text/css" />
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/jquery.lightbox.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){$(".lightbox").lightbox();});
</script>

<a href="1.jpg" class="lightbox" rel="gallery"><img src="thumb_1.jpg" alt="Your Image Title" title="Your Image Title" /></a>
You need to upload the external script files to your server.
jim1228 is offline
Reply With Quote
View Public Profile Visit jim1228's homepage!
 
Old 10-28-2009, 04:25 PM Re: Need a Lightbox code and easy directions
Average Talker

Posts: 21
Name: Robert Culos
Trades: 0
Believe it or not I have tried that and it was still confusing. I'll go back and work on it again.

Thanks all.
rmculos is offline
Reply With Quote
View Public Profile
 
Old 10-28-2009, 05:30 PM Re: Need a Lightbox code and easy directions
Average Talker

Posts: 21
Name: Robert Culos
Trades: 0
Okay - not getting it - working with a basic lightbox.

Here is my code (trying to launch image-1 from hotspot):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>

<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
</head>

<body>
<img src="index.jpg" width="1200" height="950" border="0" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="313,479,412,498" href="images/image-1.jpg" rel="lightbox" title="my caption" />
</map>
</body>
</html>

Here is my CSS:

#lightbox{ position: absolute; left: 0; width: 100%; z-index: 100; text-align: center; line-height: 0;}
#lightbox img{ width: auto; height: auto;}
#lightbox a img{ border: none; }

#outerImageContainer{ position: relative; background-color: #fff; width: 250px; height: 250px; margin: 0 auto; }
#imageContainer{ padding: 10px; }

#loading{ position: absolute; top: 40%; left: 0%; height: 25%; width: 100%; text-align: center; line-height: 0; }
#hoverNav{ position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 10; }
#imageContainer>#hoverNav{ left: 0;}
#hoverNav a{ outline: none;}

#prevLink, #nextLink{ width: 49%; height: 100%; background-image: url(data:image/gif;base64,AAAA); /* Trick IE into showing hover */ display: block; }
#prevLink { left: 0; float: left;}
#nextLink { right: 0; float: right;}
#prevLink:hover, #prevLink:visited:hover { background: url(images/prevlabel.gif) left 15% no-repeat; }
#nextLink:hover, #nextLink:visited:hover { background: url(images/nextlabel.gif) right 15% no-repeat; }

#imageDataContainer{ font: 10px Verdana, Helvetica, sans-serif; background-color: #fff; margin: 0 auto; line-height: 1.4em; overflow: auto; width: 100% ; }

#imageData{ padding:0 10px; color: #666; }
#imageData #imageDetails{ width: 70%; float: left; text-align: left; }
#imageData #caption{ font-weight: bold; }
#imageData #numberDisplay{ display: block; clear: left; padding-bottom: 1.0em; }
#imageData #bottomNavClose{ width: 66px; float: right; padding-bottom: 0.7em; outline: none;}

#overlay{ position: absolute; top: 0; left: 0; z-index: 90; width: 100%; height: 500px; background-color: #000; }

Any mistakes? The screen gets dark but no image shows up.

Thank you!!
rmculos is offline
Reply With Quote
View Public Profile
 
Old 10-28-2009, 06:10 PM Re: Need a Lightbox code and easy directions
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
What version of the lightbox are you using? Is it the latest one that is available for download on the site I posted earlier? Is it a different one?

I think it could have something to do with the image map, but the latest version says it supports image maps...???
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 10-28-2009, 06:15 PM Re: Need a Lightbox code and easy directions
Average Talker

Posts: 21
Name: Robert Culos
Trades: 0
Yes it's the latest, Version 2:

http://www.lokeshdhakar.com/projects/lightbox2/
rmculos is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need a Lightbox code and easy directions
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.69118 seconds with 12 queries