/var/www/(Del)wah-tung.com/html/sc/index.php


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
<?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">
<html>
<head>
<title>Wah Tung Sponge Factory Limited</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<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 height="128" align="right" valign="top" background="../images/headersc.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_sc.swf" />
              <param name="quality" value="high" />
              <param name="wmode" value="transparent" />
              <embed src="../flash/slogan_sc.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 width="965" height="480"><img src="../images/1.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>