So, judging by your code, you are trying to open a separate page when the image is clicked and display that page in a shadow box.
HTML Code:
<a href="fhinfo.php" rel="shadowbox;width=500;height=350"><img src="images/fhrip.jpg" width="455" height="145" alt="Fullhouse"></a>
Here is a quick how-to, on how to accomplish this.
Hopefully you should be able to apply what I have done to solve your problem.
- Download shadowbox.js (http://www.shadowbox-js.com/download.html) making sure that you check the "External sites and pages" option
- Unpack the 'shadowbox-3.0.3' folder to your Desktop (for example)
- In the shadowbox folder you just unpacked, create two files 'a.html' and 'b.html'
- Copy the code listed below into the respective files
- Load up 'a.html' into your browser and click the link
a.html
HTML Code:
<!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>a.html</title>
<link rel="stylesheet" type="text/css" href="shadowbox.css">
<script type="text/javascript" src="shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({});
</script>
</head>
<body>
<a rel="shadowbox;width=400;height=400" href="b.html">Click here to open 'b.html' in an iframe in a shadow box.</a>
</body>
</html>
b.html
HTML Code:
<!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>b.html</title>
<link rel="stylesheet" type="text/css" href="shadowbox.css">
</head>
<body style="background:white; color:black; padding:0 20px;">
<h1>My Heading</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,
sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,
sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</body>
</html>
You'll probably want to remove the inline CSS from the body tag. That was just for demonstration purposes.
HTH
Bookmarks