File: D:/HostingSpaces/SBogers34/himawarijewels.com/wwwroot/Main.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Main.aspx.cs" Inherits="Main" %>
<%@ Register Src="include/Bottom.ascx" TagName="Bottom" TagPrefix="uc3" %>
<%@ Register Src="include/Top.ascx" TagName="Top" TagPrefix="uc1" %>
<!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 runat="server">
<title>Himawari Jewelry</title>
<link rel="stylesheet" type="text/css" href="images/css.css" />
<script type="text/javascript" language="javascript" src="images/spire.js"></script>
<script type="text/javascript" language='javascript' src='images/jquery.js'></script>
<script type="text/javascript" language='javascript' src='images/jscroll.js'></script>
<script type="text/javascript" src="images/thickbox_plus.js"></script>
<link rel="stylesheet" type="text/css" href="images/thickbox.css"/>
</head>
<body class="bgmain">
<form id="form1" runat="server">
<center>
<div id="main_lay">
<uc1:Top ID="Top1" runat="server" />
<div id="lay_mflash"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1000" height="342">
<param name="movie" value="images/main_swf.swf" />
<param name="quality" value="high" />
<param name="menu" value="false" />
<param name="wmode" value="transparent" />
<embed src="images/main_swf.swf" width="1000" height="342" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" menu="false" wmode="transparent"></embed>
</object></div>
<div id="lay_mnews"><style>.rollBox{width:764px;overflow:hidden;}
.rollBox .Cont{width:764px;overflow:hidden;float:left;}
.rollBox .ScrCont{width:10000000px;}
.rollBox .Cont .pic{width:194px;float:left;}
.rollBox .Cont .pic img{background:#fff;display:block;margin:0px;}
.rollBox .Cont .pic p{line-height:26px;color:#505050;}
.rollBox .Cont a:link,.rollBox .Cont a:visited{color:#626466;text-decoration:none;}
.rollBox .Cont a:hover{color:#f00;text-decoration:underline;}
.rollBox #List1,.rollBox #List2,.rollBox #List1_,.rollBox #List2_{float:left;}
</style>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="164" height="134"> </td>
<td width="22"><img src="images/s.gif" width="22" height="22" alt="向左滚动" name="img_l" class="hand" id="img_l" onmousedown="ISL_GoUp()" onmouseup="ISL_StopUp()" onmouseout="ISL_StopUp()" /></td>
<td width="758"><div class="rollBox">
<div class="Cont" id="ISL_Cont">
<div class="ScrCont">
<div id="List1">
<div class="pic"><a href="Product.aspx?Bid=103&Cid=167"><img src="images/ds1.jpg" width="180" height="100" /></a></div>
<div class="pic"><a href="Product.aspx?Bid=103&Cid=168"><img src="images/ds2.jpg" width="180" height="100" /></a></div>
<div class="pic"><a href="Product.aspx?Bid=103&Cid=169"><img src="images/ds3.jpg" width="180" height="100" /></a></div>
<div class="pic"><a href="Product.aspx?Bid=103&Cid=170"><img src="images/ds4.jpg" width="180" height="100" /></a></div>
<div class="pic"><a href="Product.aspx?Bid=103&Cid=182"><img src="images/ds5.jpg" width="180" height="100" /></a></div>
<div class="pic"><a href="Product.aspx?Bid=103&Cid=183"><img src="images/ds6.jpg" width="180" height="100" /></a></div>
</div>
<div id="List2"></div>
</div>
</div>
</div></td>
<td width="22"><img src="images/s.gif" width="22" height="22" alt="向右滚动" name="img_r" class="hand" id="img_r" onmousedown="ISL_GoDown()" onmouseup="ISL_StopDown()" onmouseout="ISL_StopDown()" /></td><td> </td>
<!--td style="padding-left:13px;"><asp:Literal ID="news_home" runat="server"></asp:Literal><asp:Literal ID="news_pic" runat="server"></asp:Literal></td-->
</tr>
</table>
</div>
<script language="javascript" type="text/javascript">
<!--//--><![CDATA[//><!--
//图片滚动列表 mengjia 070816
var Speed = 10; //速度(毫秒)
var Space = 5; //每次移动(px)
var PageWidth = 191; //翻页宽度
var fill = 0; //整体移位
var MoveLock = false;
var MoveTimeObj;
var Comp = 0;
var AutoPlayObj = null;
GetObj("List2").innerHTML = GetObj("List1").innerHTML;
GetObj('ISL_Cont').scrollLeft = fill;
GetObj("ISL_Cont").onmouseover = function(){clearInterval(AutoPlayObj);}
GetObj("ISL_Cont").onmouseout = function(){AutoPlay();}
AutoPlay();
function GetObj(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval('document.all.'+objName)}}
function AutoPlay(){ //自动滚动
clearInterval(AutoPlayObj);
AutoPlayObj = setInterval('ISL_GoDown();ISL_StopDown();',5000); //间隔时间
}
function ISL_GoUp(){ //上翻开始
if(MoveLock) return;
clearInterval(AutoPlayObj);
MoveLock = true;
MoveTimeObj = setInterval('ISL_ScrUp();',Speed);
}
function ISL_StopUp(){ //上翻停止
clearInterval(MoveTimeObj);
if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0){
Comp = fill - (GetObj('ISL_Cont').scrollLeft % PageWidth);
CompScr();
}else{
MoveLock = false;
}
AutoPlay();
}
function ISL_ScrUp(){ //上翻动作
if(GetObj('ISL_Cont').scrollLeft <= 0){GetObj('ISL_Cont').scrollLeft = GetObj('ISL_Cont').scrollLeft + GetObj('List1').offsetWidth}
GetObj('ISL_Cont').scrollLeft -= Space ;
}
function ISL_GoDown(){ //下翻
clearInterval(MoveTimeObj);
if(MoveLock) return;
clearInterval(AutoPlayObj);
MoveLock = true;
ISL_ScrDown();
MoveTimeObj = setInterval('ISL_ScrDown()',Speed);
}
function ISL_StopDown(){ //下翻停止
clearInterval(MoveTimeObj);
if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0 ){
Comp = PageWidth - GetObj('ISL_Cont').scrollLeft % PageWidth + fill;
CompScr();
}else{
MoveLock = false;
}
AutoPlay();
}
function ISL_ScrDown(){ //下翻动作
if(GetObj('ISL_Cont').scrollLeft >= GetObj('List1').scrollWidth){GetObj('ISL_Cont').scrollLeft = GetObj('ISL_Cont').scrollLeft - GetObj('List1').scrollWidth;}
GetObj('ISL_Cont').scrollLeft += Space ;
}
function CompScr(){
var num;
if(Comp == 0){MoveLock = false;return;}
if(Comp < 0){ //上翻
if(Comp < -Space){
Comp += Space;
num = Space;
}else{
num = -Comp;
Comp = 0;
}
GetObj('ISL_Cont').scrollLeft -= num;
setTimeout('CompScr()',Speed);
}else{ //下翻
if(Comp > Space){
Comp -= Space;
num = Space;
}else{
num = Comp;
Comp = 0;
}
GetObj('ISL_Cont').scrollLeft += num;
setTimeout('CompScr()',Speed);
}
}
//--><!]]>
</script>
<uc3:Bottom ID="bottom1" runat="server" />
</div>
</center>
</form>
</body>
</html>