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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
<?php require("configure.php"); ?> <!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> <title>Wah Tung Sponge Factory Limited</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="description" content="Sleep, health, pillows, cushion,Mattress"> <meta name="keywords" content="memory foam,memory foam pillow,memory foam cushion,foam mattress / memory foam mattress,memory foam topper,Bedding Product,memory foam manufacturer & supplier,memory foam seat cushion,lumbar back massage cushion,baby & kids / child pillow,neck cushion / pillow,記憶棉工廠 / 製造商,太空棉,慢回彈,低反彈,太空棉枕頭 / 記憶棉小童枕頭 / 低反彈嬰兒枕頭,海棉床褥 / 太空棉床褥,床上用品,腰部按摩咕臣,記憶棉靠墊,記憶棉座墊,太空棉頸枕,记忆棉工厂 / 制造商,太空棉,慢回弹,低反弹,太空棉枕头 / 记忆棉小童枕头 / 低反弹婴儿枕头,海棉床褥 / 太空棉床褥,床上用品,腰部按摩靠垫,记忆棉靠垫,记忆棉座垫,太空棉颈枕"> <link rel="stylesheet" type="text/css" href="../css/style.css" /> <link rel="stylesheet" type="text/css" href="../css/jqueryslidemenu.css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script> <script type="text/javascript" src="../js/jqueryslidemenu.js"></script>
<? $sql = "SELECT image "; $sql .= "FROM slideshow "; $result = mysql_query($sql);
if (mysql_num_rows($result)> 0) { $x =0; while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) { //echo "sql img = ".$row["image"]; $php_array[$x] = "../slideshow/".$row["image"]; $x++; } }
?> <script language="JavaScript1.1">
//***************************************** // Blending Image Slide Show Script- // © Dynamic Drive (www.dynamicdrive.com) // For full source code, visit http://www.dynamicdrive.com/ //*****************************************
//specify interval between slide (in mili seconds) var slidespeed=1000
//specify images //var slideimages=new Array("../images/homepic1.jpg","../images/homepic2.jpg","../images/homepic3.jpg","../images/homepic4.jpg","../images/homepic5.jpg") var slideimages = new Array <? for ($i=0; $i<count($php_array);$i++) { echo 'slideimages['.$i.']=["'.$php_array[$i].'"];'; } ?>
//specify corresponding links var slidelinks=new Array("","","")
var newwindow=1 //open links in new window? 1=yes, 0=no
var imageholder=new Array() var ie=document.all for (i=0;i<slideimages.length;i++){ imageholder[i]=new Image() imageholder[i].src=slideimages[i] }
</script>
</head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0"> <table width="965" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="965" height="128" align="right" valign="top" background="../images/header.jpg" style="background-repeat:no-repeat"><table border="0" cellpadding="0" cellspacing="0"> <tr> <td align="right" valign="top" style="padding-top:10px;padding-right:10px"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="400" height="90"> <param name="movie" value="../flash/slogan_en.swf" /> <param name="quality" value="high" /> <param name="wmode" value="transparent"> <embed src="../flash/slogan_en.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="400" height="90" wmode="transparent"></embed> </object></td> </tr> <tr> <td align="right" valign="bottom"><table border="0"> <tr> <td align="right"><a href="../en/index.php"><img src="../images/lang_eng.png" width="56" height="15" border="0" /></a></td> <td align="right"><a href="../sc/index.php"><img src="../images/lang_sc.png" width="78" height="15" border="0" /></a></td> <td align="right"><a href="../jp/index.php"><img src="../images/lang_jp.png" width="63" height="15" border="0" /></a></td> </tr> </table></td> </tr> </table> </td> </tr>
<!-- Menu --> <?php require("menu.php"); ?>
<!-- Content --> <tr> <td height="480"><img src="../images/homepic1.jpg" name="slide" border=0 style="filter:blendTrans(duration=3)" width=965 height=483> <script language="JavaScript1.1"> <!-- var whichlink=0 var whichimage=0 var blenddelay=(ie)? document.images.slide.filters[0].duration*1000 : 0 function slideit(){ if (!document.images) return if (ie) document.images.slide.filters[0].apply() document.images.slide.src=imageholder[whichimage].src if (ie) document.images.slide.filters[0].play() whichlink=whichimage whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0 setTimeout("slideit()",slidespeed+blenddelay) } slideit() //--> </script>
</td> </tr>
<!-- Footer --> <?php require("footer.php"); ?>
</table> </body>
</html>
|