001.
<html>
002.
<head>
003.
<title></title>
004.
<script src=
"js/jquery-1.4.2.min.js"
type=
"text/javascript"
></script>
005.
<script src=
"js/jquery.divslideshow-1.2-min.js"
type=
"text/javascript"
></script>
006.
007.
<script>
008.
$(document).ready(
function
(){
009.
010.
$(
'.slideshow'
).divSlideShow();
011.
012.
013.
$(
'#dss,#plug-and-play'
).divSlideShow({
014.
height:350,
015.
width:850,
016.
arrow:
"split"
,
017.
loop:3,
018.
slideContainerClass:
"slide-container"
,
019.
separatorClass:
"separator"
,
020.
controlClass:
"control"
,
021.
leftArrowClass:
"control"
,
022.
rightArrowClass:
"control"
,
023.
controlActiveClass:
"control-active"
,
024.
controlHoverClass:
"control-hover"
,
025.
controlContainerClass:
"control-container"
026.
027.
});
028.
029.
030.
031.
032.
033.
034.
035.
036.
037.
038.
039.
040.
041.
042.
043.
044.
045.
046.
047.
048.
049.
050.
051.
052.
053.
054.
055.
056.
057.
058.
059.
});
060.
061.
function
manipulate()
062.
{
063.
$.divSlideShow.slideTo(
'#plug-and-play'
,$(
'#test_gotoPage'
).val()-1);
064.
}
065.
</script>
066.
<style>
067.
068.
069.
#plug-
and
-play {display:none; margin-bottom:20px; border:0px solid #aaaaaa;}
070.
#plug-
and
-play .slide{cursor:pointer;font-size:12px;font-family:Tahoma;border:0px solid #cccccc; margin:5px; padding:5px;}
071.
#plug-
and
-play .slide-container{}
072.
#plug-
and
-play .separator{border:0px solid #aaaaaa;}
073.
#plug-
and
-play .control{font-size:10px; width:12px; cursor:pointer;}
074.
#plug-
and
-play .control-container{background:#bbbbbb;}
075.
#plug-
and
-play .control-active{text-decoration:none;}
076.
#plug-
and
-play .control-hover{text-decoration:none; font-weight:bold;}
077.
078.
#dss {display:none;border:0px solid black;}
079.
#dss .slide{cursor:pointer;font-size:12px;font-family:Tahoma;border:0px solid red; margin:5px; padding:5px;}
080.
#dss .slide-container{}
081.
#dss .separator{border:0px solid #22cc22;}
082.
#dss .control{font-size:10px; width:12px; cursor:pointer;}
083.
#dss .control-container{}
084.
#dss .control-active{text-decoration:none;}
085.
#dss .control-hover{text-decoration:none; font-weight:bold;}
086.
a:link {
087.
text-decoration: none;
088.
}
089.
a:visited {
090.
text-decoration: none;
091.
}
092.
a:hover {
093.
text-decoration: none;
094.
}
095.
a:active {
096.
text-decoration: none;
097.
}
098.
</style>
099.
100.
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=iso-8859-1"
></head>
101.
<body>
102.
103.
<div id=
"dss"
>
104.
105.
<div
class
=
"slide"
>
106.
<table border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
107.
<tr>
108.
<td>
109.
110.
111.
112.
113.
<?
114.
115.
include
(
"inc/connect.php"
);
116.
117.
118.
$result
=mysql_query(
"select * from tbl_tour where tourid='2' "
);
119.
$nf
= mysql_num_fields(
$result
);
120.
$num_rows
= mysql_num_rows(
$result
);
121.
if
(
$num_rows
==
'0'
){
122.
123.
echo
" No Data"
;
124.
}
else
{
125.
$dataIndb
=
$num_rows
;
126.
$rowFix
=
$dataIndb
/3;
127.
$rowFix
=
ceil
(
$rowFix
);
128.
129.
$count
=0;
130.
for
(
$i
=0;
$i
<
$rowFix
;
$i
++){
131.
echo
"<tr>"
;
132.
for
(
$j
=0;
$j
<3;
$j
++){
133.
134.
echo
"<td align=center>"
;
135.
if
(
$count
<
$dataIndb
){
136.
@mysql_data_seek(
$result
,
$count
);
137.
$r
= mysql_fetch_array(
$result
);
138.
139.
140.
?>
141.
<table border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
142.
<tr>
143.
<td><table width=
"260"
height=
"150"
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
>
144.
<tr>
145.
<td><a href=
"tours_view.php?topic_id=<?php echo $r[topic_id]?>&tourid=<?php echo $r[tourid]?>"
target=
"_parent"
><img src=
"imgs_tour/<? echo $r[t_pic]; ?>"
/></a></td>
146.
</tr>
147.
148.
</table></td>
149.
</tr>
150.
</table>
151.
<?
152.
}
153.
echo
"</td>"
;
154.
$count
++;
155.
}
156.
echo
"</tr>"
;
157.
}
158.
}
159.
160.
161.
?></td>
162.
</tr>
163.
</table>
164.
165.
</div>
166.
167.
168.
</div>
169.
170.
171.
172.
</body>
173.
</html>