/    Sign up×
Community /Pin to ProfileBookmark

help with lightbox and Ap Div

Im pulling my hair out!!

I have used lightbox several times in the past but today i thought i would try a different approach to design that i havent tried be for.

I created the entire page in photoshop,then placed the page in a table. I inserted an Ap Div over the the image and inserted another image that i wanted to use in lightbox but lightbox does not work..Please help and advise is great.

im using firefox if that makes any difference

<!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>Welcome to Spruce – Gallery</title>
<style type=”text/css”>
<!–
body {
background-image: url(../Assets/background.jpg);
}
#apDiv1 {
position:absolute;
width:200px;
height:115px;
z-index:1;
left: 463px;
top: 309px;
}

–>
</style>

</head>

<body>
<table width=”200″ border=”0″ align=”center”>
<tr>
<td><img src=”../Assets/Gallery.jpg” alt=”gallery” width=”600″ height=”800″ border=”0″ usemap=”#Map” />
<map name=”Map” id=”Map”>
<area shape=”rect” coords=”46,183,94,198″ href=”../index.html” alt=”home” />
<area shape=”rect” coords=”146,180,201,201″ href=”../Services/services.html” alt=”services” />
<area shape=”rect” coords=”265,179,323,201″ href=”../About/about.html” alt=”About Us” />
<area shape=”rect” coords=”371,183,421,201″ href=”index.html” alt=”Gallery” />
<area shape=”rect” coords=”480,181,551,200″ href=”../Contact/Contact.html” alt=”Contact Us” />
<area shape=”rect” coords=”159,764,197,779″ href=”../index.html” alt=”home” />
<area shape=”rect” coords=”205,760,254,780″ href=”../Services/services.html” alt=”services” />
<area shape=”rect” coords=”267,764,320,780″ href=”../About/about.html” alt=”about us” />
<area shape=”rect” coords=”329,762,369,781″ href=”index.html” alt=”gallery” />
<area shape=”rect” coords=”385,762,448,782″ href=”../Contact/Contact.html” alt=”contact us” />
</map> <div id=”apDiv1″><a href=”Asset/sarapicture.jpg” rel=”lightbox[xmas]”><img src=”../Assets/sara.jpg” width=”100″ height=”200″ alt=”sara” /></div></td>
</tr>
</table>
</body>
</html>

Thanks in advance

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@FangNov 28.2010 — That works if the lightbox css and JavaScript is included.
Copy linkTweet thisAlerts:
@buzz1066authorNov 28.2010 — hang fang thanks for that, I put the css and javascript in but it still does not work, when i click the image in preview i get the default page of file not found

thanks
Copy linkTweet thisAlerts:
@FangNov 28.2010 — The paths are different[CODE]<a href="[COLOR="Blue"]Asset/[/COLOR]sarapicture.jpg" rel="lightbox[xmas]"><img src="[COLOR="Blue"]../Assets/[/COLOR]sara.jpg" width="100" height="200" alt="sara" />[/CODE]
×

Success!

Help @buzz1066 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...