koolkedar
04-10-2012, 10:34 AM
hi i posted this yday but moderator told me to start the new thread so i am starting. So mr moderator can you please let me know the different lightbox version and which will be better for me. Another thing is i m describing the problem but i am not specially interested only in lightbox i tried slimbox2 its also not working and the most simple swap the images also didnt work. The problem is as below. Another thing is i apologize if i started the thread in wrong category. Moderator if u provide me the answer even for swapping problem i will be happy. Problem for slimbox2, lightbox and swap is same.
my web site is not ready so i m not in a position to upload it anywhere so i apologize for that...I have copied the link from another post and paste here...i didnt knew how to post the link plz tel me how to do that as well...thanks and sorry for such coping and pasting...
The problem :--
I have a page product.php on which there is menu with jquery, after that there is dropdown list which gets filled with product name using php code.
After selecting one of the product i pass this value to 3 different function and to 3 different php files for using ajax. Function getimg displays the image of prodcut in div d1. Along with this i show 3 more images in this php code which are sub parts of the product one peace product. Second div shows its technical specification and 3rd shows other options like product in different color or for different size (just the text not images). All the above three divs are working as Tabs(ofcourse handled by jquery). After clicking "product" tab it show the main product image with its sub part's 3 images. 2nd tab is Tech Specifications 3rd is other options.
Now everything is working fine all 3 divs are showing the thing properly. Ajax contents gets loaded properly in div d1. Now what i want is in div d1 when the sub parts are shown and user clicks that sub part either it should show in lightbox,slimbox or i am happy if it gets swapped with original image. which ever works is good for me, but as swap is easy i have no problem for that. As i am not in position to upload the page so sorry for that. I will give details of the which code i included the js, css files.
Another thing is where i have to add the js,lightbox files in product.php or the php files used by ajax.
Following is the code for products.php
<script src="js/jquery-1.3.1.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/style.css" type="text/css" />
<script src="jquery.easing.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery.lightbox-0.5.js"></script>
<link rel="stylesheet" type="text/css" href="css/jquery.lightbox-0.5.css" />
after the above code is the code for navigation of menu then the code for ajax is written.
After that the js for tabs is called.
then is the html form which contact the dropdown menu which fill the product names.
after that are the divs.
Now i am giving you below the code for displaying the images in div d1.
which in proddet.php file
echo'
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="d1">
<!--DWLayoutTable-->
<tr>
<td height="30" colspan="8" valign="middle" align="center" bgcolor="#FFFFFF">';echo "product Name :--'". $row['productname']."'"; echo'<!--DWLayoutEmptyCell--> </td>
</tr>
</table>';
echo "<img class='swap' id='image22' width=800px; src='".$row["image"]."'/>";
echo'
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="d1">
<!--DWLayoutTable-->
<tr>
<td height="14" colspan="8" valign="top" bgcolor="#4E8EB4"><!--DWLayoutEmptyCell--> </td>
</tr>
<!--DWLayoutTable-->
<tr>
<td width="13" height="94" valign="top" bgcolor="#4E8EB4"><!--DWLayoutEmptyCell--> </td>
<td width="249" align="center" valign="middle" bgcolor="#FFFFFF">
<span class="style1">O<span class="style2">ther Options :---</span></span></td>
<td width="125" valign="top">';
echo " <a href='".$row['image1']."' onclick='lightBox()' rel='lightBox' ><img id='image0' style='margin:12px; border:thick; border:#FF0000' width=70px; height=70px; src='".$row["image1"]."'/>  </a>";
echo' </td>
<td width="185" valign="top">';
echo "<a href='".$row['image2']."' rel='lightbox' style='margin:12px' width=70px; height=70px;>'".$row['image2']."' </a> ";
echo' </td>
<td width="180" valign="top">';
echo "<a href='".$row['image3']."' rel='lightbox' style='margin:12px' width=70px; height=70px;>'".$row['image3']."' </a> ";
echo'</td>
<td width="163" valign="top" background="products/pilgrimage.png"><!--DWLayoutEmptyCell--> </td>
</tr>
<!--DWLayoutTable-->
</table>
';
1st image is the main image and other three are its sub parts. I have written onclick="lightbox" as you told in ur older post to which i replied.
This is big post.
But please solve my problem i am fed up with this. I dont know why this thing is happening. I feel its due to conflict with the js and jquery and ajax loading problem. Mr moderator can u please give me some advance version of
lightbox or i am happy if you solve my problem with simple swap.
Thanks in advance
my web site is not ready so i m not in a position to upload it anywhere so i apologize for that...I have copied the link from another post and paste here...i didnt knew how to post the link plz tel me how to do that as well...thanks and sorry for such coping and pasting...
The problem :--
I have a page product.php on which there is menu with jquery, after that there is dropdown list which gets filled with product name using php code.
After selecting one of the product i pass this value to 3 different function and to 3 different php files for using ajax. Function getimg displays the image of prodcut in div d1. Along with this i show 3 more images in this php code which are sub parts of the product one peace product. Second div shows its technical specification and 3rd shows other options like product in different color or for different size (just the text not images). All the above three divs are working as Tabs(ofcourse handled by jquery). After clicking "product" tab it show the main product image with its sub part's 3 images. 2nd tab is Tech Specifications 3rd is other options.
Now everything is working fine all 3 divs are showing the thing properly. Ajax contents gets loaded properly in div d1. Now what i want is in div d1 when the sub parts are shown and user clicks that sub part either it should show in lightbox,slimbox or i am happy if it gets swapped with original image. which ever works is good for me, but as swap is easy i have no problem for that. As i am not in position to upload the page so sorry for that. I will give details of the which code i included the js, css files.
Another thing is where i have to add the js,lightbox files in product.php or the php files used by ajax.
Following is the code for products.php
<script src="js/jquery-1.3.1.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/style.css" type="text/css" />
<script src="jquery.easing.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery.lightbox-0.5.js"></script>
<link rel="stylesheet" type="text/css" href="css/jquery.lightbox-0.5.css" />
after the above code is the code for navigation of menu then the code for ajax is written.
After that the js for tabs is called.
then is the html form which contact the dropdown menu which fill the product names.
after that are the divs.
Now i am giving you below the code for displaying the images in div d1.
which in proddet.php file
echo'
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="d1">
<!--DWLayoutTable-->
<tr>
<td height="30" colspan="8" valign="middle" align="center" bgcolor="#FFFFFF">';echo "product Name :--'". $row['productname']."'"; echo'<!--DWLayoutEmptyCell--> </td>
</tr>
</table>';
echo "<img class='swap' id='image22' width=800px; src='".$row["image"]."'/>";
echo'
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="d1">
<!--DWLayoutTable-->
<tr>
<td height="14" colspan="8" valign="top" bgcolor="#4E8EB4"><!--DWLayoutEmptyCell--> </td>
</tr>
<!--DWLayoutTable-->
<tr>
<td width="13" height="94" valign="top" bgcolor="#4E8EB4"><!--DWLayoutEmptyCell--> </td>
<td width="249" align="center" valign="middle" bgcolor="#FFFFFF">
<span class="style1">O<span class="style2">ther Options :---</span></span></td>
<td width="125" valign="top">';
echo " <a href='".$row['image1']."' onclick='lightBox()' rel='lightBox' ><img id='image0' style='margin:12px; border:thick; border:#FF0000' width=70px; height=70px; src='".$row["image1"]."'/>  </a>";
echo' </td>
<td width="185" valign="top">';
echo "<a href='".$row['image2']."' rel='lightbox' style='margin:12px' width=70px; height=70px;>'".$row['image2']."' </a> ";
echo' </td>
<td width="180" valign="top">';
echo "<a href='".$row['image3']."' rel='lightbox' style='margin:12px' width=70px; height=70px;>'".$row['image3']."' </a> ";
echo'</td>
<td width="163" valign="top" background="products/pilgrimage.png"><!--DWLayoutEmptyCell--> </td>
</tr>
<!--DWLayoutTable-->
</table>
';
1st image is the main image and other three are its sub parts. I have written onclick="lightbox" as you told in ur older post to which i replied.
This is big post.
But please solve my problem i am fed up with this. I dont know why this thing is happening. I feel its due to conflict with the js and jquery and ajax loading problem. Mr moderator can u please give me some advance version of
lightbox or i am happy if you solve my problem with simple swap.
Thanks in advance