Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

trying to create a site using thickbox to popup an image

Posted on 2008-06-10
9
Medium Priority
?
412 Views
Last Modified: 2011-10-19
i am trying to build a website using dreanweaver cs3
i want to create a pop up image using thick box
i am looking for a step by step guide
i have tryed the main site but i cant seam to make it work

head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<style type="text/css" media="all">
<!--
@import url("../js/thickbox.css");
-->
</style>
<link href="js/thickbox.css" rel="stylesheet" type="text/css" />
</head>
 
<body>
<table width="983" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutDefaultTable-->
  <tr>
    <td width="20" height="63">&nbsp;</td>
    <td width="262">&nbsp;</td>
    <td width="30">&nbsp;</td>
    <td width="671" rowspan="3" valign="top"><div align="center"><img src="images/WVLogo.jpg" width="347" height="168" /></div></td>
  </tr>
  <tr>
    <td height="36">&nbsp;</td>
    <td valign="top"><a href="mailto:rsmith@wvsf.us" class="link">Make an Appointment</a></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="69">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<div class="big">
  <table width="577" height="375" border="0" align="center" cellpadding="0" cellspacing="10">
    <!--DWLayoutDefaultTable-->
    <tr>
      <td width="142"><img src="images/Dr. Phillips &amp; Maggie sitting.jpg" alt="" name="test" width="232" height="232" class="box1" id="test" /></td>
      <td width="145">&nbsp;</td>
      <td width="146"><a href="foog.php"><img src="images/Chef Breck at 2004 Fall Food Fest.JPG" width="240" height="232" class="box1" /></a></td>
    </tr>
    <tr>
      <td><img src="images/WV Foundation Golf Photo.JPG" width="232" height="232" class="box1" /></td>
      <td>&nbsp;</td>
      <td><a href="dog.htm?height=200&width=200" title="" class="thickbox"><img src="images/Walking the Dog.jpg" width="232" height="232" class="box1" /></a></td>
    </tr>
    <tr>
      <td><img src="images/2007 Easter Egg 012.jpg" width="232" height="232" class="box1" /></td>
      <td>&nbsp;</td>
      <td><img src="images/2007 Mardi Gras 010.jpg" width="232" height="232" class="box1" /></td>
    </tr>
  </table>
</div>
</body>
</html>

Open in new window

0
Comment
Question by:westminsterit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 21758917
Where are the JS files?

<script type="text/javascript" src="path-to-file/jquery.js"></script>
<script type="text/javascript" src="path-to-file/thickbox.js"></script>

as detailed here:
http://jquery.com/demo/thickbox/
0
 

Author Comment

by:westminsterit
ID: 21760230
here is the revised code
after making the change i am still haveing turbble
can you see what am i doing wrong?
<!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>
<script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/thickbox.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<style type="text/css" media="all">
<!--
@import url("../js/thickbox.css");
-->
</style>
<link href="js/thickbox.css" rel="stylesheet" type="text/css" />
</head>
 
<body>
<div class="big"><table width="577" height="375" border="0" align="center" cellpadding="0" cellspacing="10"><tr><td width="142"><table width="983" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutDefaultTable-->
  <tr>
    <td width="20" height="63">&nbsp;</td>
    <td width="262">&nbsp;</td>
    <td width="30">&nbsp;</td>
    <td width="671" rowspan="3" valign="top"><div align="center"><img src="images/WVLogo.jpg" width="347" height="168" /></div></td>
  </tr>
  <tr>
    <td height="36">&nbsp;</td>
    <td valign="top"><a href="mailto:rsmith@wvsf.us" class="link">Make an Appointment</a></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="69">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
        <div class="big">
          <table width="577" height="375" border="0" align="center" cellpadding="0" cellspacing="10">
            <!--DWLayoutDefaultTable-->
            <tr>
              <td width="142"><img src="images/Dr. Phillips &amp; Maggie sitting.jpg" alt="" name="test" width="232" height="232" class="box1" id="test" /></td>
              <td width="145">&nbsp;</td>
              <td width="146"><a href="foog.php"><img src="images/Chef Breck at 2004 Fall Food Fest.JPG" width="240" height="232" class="box1" /></a></td>
            </tr>
            <tr>
              <td><img src="images/WV Foundation Golf Photo.JPG" width="232" height="232" class="box1" /></td>
              <td>&nbsp;</td>
              <td><a href="dog.htm?height=200&width=200" title="" class="thickbox"><img src="images/Walking the Dog.jpg" width="232" height="232" class="box1" /></a></td>
            </tr>
            <tr>
              <td><img src="images/2007 Easter Egg 012.jpg" width="232" height="232" class="box1" /></td>
              <td>&nbsp;</td>
              <td><img src="images/2007 Mardi Gras 010.jpg" width="232" height="232" class="box1" /></td>
            </tr>
          </table>
        </div></td>
      </tr>
</table>
</div>
</body>
</html>

Open in new window

0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 21760426
Are the files in the right places?

It works in this example where I changed the files to point at the jquery site (you should not do that in real life)
testthickbox.txt
0
Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

 

Author Comment

by:westminsterit
ID: 21761197
they are in the js folder in the root of the site.
0
 

Author Comment

by:westminsterit
ID: 21761698
ok i found the problem the file name was wrong in the js script
but now it seems to be displaing in the lower left hand corner of the screen and not in the middle of the browser window
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 21762117
That is a missing CSS file
0
 

Author Comment

by:westminsterit
ID: 21762363
on the target html page ?
or did i not download everything i needed ?
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 2000 total points
ID: 21762775
you need the thickbox.css too
0
 

Author Comment

by:westminsterit
ID: 21762825
i have that placed in the same file
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question