1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
<?php include("phpconfig.php");?> <?php $query="SELECT * FROM tbl_banner WHERE banner_type ='2' AND banner_status='1' ORDER BY id DESC "; $resultBanner=mysql_query($query); ?> <!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" /> <meta name="description" content="jQuery Liquid carousel plugin"/> <title>jQuery Liquid Carousel plugin</title> <link type='text/css' rel='stylesheet' href='css/style-liquidcarousel.css' /> <link type='text/css' rel='stylesheet' href='css/liquidcarousel.css' /> <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="js/jquery.liquidcarousel.pack.js"></script> <script type="text/javascript"> <!-- $(document).ready(function() { $('#liquid1').liquidcarousel({height:129, duration:250, hidearrows:false}); }); --> </script> </head> <body>
<div id="liquid1" class="liquid"> <span class="previous" style="opacity:1;filter:alpha(opacity=100)" onmouseover="this.style.opacity=0.4;this.filters.alpha.opacity=40" onmouseout="this.style.opacity=1;this.filters.alpha.opacity=100"/></span> <div class="wrapper"> <ul> <?php while($data=mysql_fetch_assoc($resultBanner)){ if($data['links']==''){ $target=""; $data['links']='#'; }else{ $target="target=\"_top\""; } ?> <li><a href="<?php echo $data['links'];?>" title="<?php echo $n?>" target="_blank"><img src="<?php echo $path_product.$data['pic_name']?>" width="247" height="115" alt="image 0<?php echo $n?>" border="0" style="opacity:1;filter:alpha(opacity=100)" onmouseover="this.style.opacity=0.4;this.filters.alpha.opacity=40" onmouseout="this.style.opacity=1;this.filters.alpha.opacity=100"/></a></li> <?php $n++; } ?> </ul> </div> <span class="next" style="opacity:1;filter:alpha(opacity=100)" onmouseover="this.style.opacity=0.4;this.filters.alpha.opacity=40" onmouseout="this.style.opacity=1;this.filters.alpha.opacity=100"/></span> </div>
</body> </html>
|