|
正式会员

- 帖子
- 68
- 体力
- 14 点
|
21楼
大 中
小 发表于 2007-11-24 11:10 只看该作者
干脆来一个完整版吧,,,,下面我吧index.dwt和style.css所有代码都放出来。。。
index.dwt
<title>{$page_title}</title>
<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="RSS|{$page_title}" href="{$feed_url}" />
{* 包含脚本文件 *}{insert_scripts files="common.js"}
</head>
<body>
<!-- #BeginLibraryItem "/library/page_header.lbi" --><!-- #EndLibraryItem -->
<div id="globalWrapper">
<!-- TemplateBeginEditable name="搜索条上方通栏广告位" -->
<!-- TemplateEndEditable --> <!-- #BeginLibraryItem "/library/search_form.lbi" --><!-- #EndLibraryItem -->
<div id="login-flash"> <!-- #BeginLibraryItem "/library/member.lbi" --><!-- #EndLibraryItem -->
<div id="flash">
<script type="text/javascript">
//<![CDATA[
var swf_width=599;
var swf_height=193;
// 0xffffff:文字颜色|1:文字位置|0x0066ff:文字背景颜色|60:文字背景透明度|0xffffff:按键文字颜色|0x0066ff:按键默认颜色|0x000033:按键当前颜色|8:自动播放时间(秒)|2:图片过渡效果|1:是否显示按钮|_blank:打开窗口
var swf_c
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+ swf_height +'">');
document.write('<param name="movie" value="data/images/bcastr.swf?bcastr_xml_url=cycle_image.php"><param name="quality" value="high">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="bcastr_config='+swf_config+'">');
document.write('<embed src="data/images/bcastr.swf?bcastr_xml_url=cycle_image.php" wmode="opaque" FlashVars="bcastr_config='+swf_config+'" menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('<\/object>');
//]]>
</script>
</div><!-- /flash -->
</div><!-- /login-news -->
<div id="container">
<div id="page-left">
<!-- TemplateBeginEditable name="主区域左侧" --><!-- #BeginLibraryItem "/library/cart.lbi" -->
{insert_scripts files="transport.js"}
<div class="col-box2">
这个是style.css的
/*===========================================
页面综合部分
===========================================*/
body {
font: 12px Arial, Helvetica, sans-serif;
background: #391808;}
body,form,ul,dl,dt,dd,p,h1,h2,h3,h4,h5,h6 {
margin: 0px;
padding: 0px;}
input,select,textarea {
font-size: 12px;}
ul,ol {
list-style: none;
}
img {border: 0;}
a,
a:visited {
font: 12px Arial, Helvetica, sans-serif;
color: #7B3900;
padding: 0px;
margin: 0px;
text-decoration: none;
margin: 0px;
padding: 0px;}
a:hover {color: #333;}
.hack {
clear: both;}
.mark-price {
background: #5D3411;
color: #FFF;
font-weight: bold;}
.goods-price { color: #5D3411;}
.market-price {
color: #5D3411;
background: url(images/line_through.gif) repeat-x center 8px;
}
.textStrong {
font: bold 12px Arial;
color: red;
}
.textDesc {
color: #999;
}
.group-goods-list {
border-bottom: 1px dashed #CCC;
}
.content-div {
padding: 10px 20px;
}
a.btn-list,
a:visited.btn-list {
background: url(images/arrow_catalog.gif) no-repeat right top;
padding-right: 8px;
}
a:hover.btn-list {
background: url(images/arrow_catalog.gif) no-repeat right -12px;
padding-right: 8px;
}
#pager {
padding: 10px;
}
#loader {
background-color: #FFFFCC;
border: 1px solid #CC0000;
position: fixed;
color: #CC0000;
z-index: 1000;
left: 0px;
bottom: 0px;
padding: 5px 15px;
/*
display: none;*/
filter: progid XImageTransform.Microsoft.BasicImage(opacity=.65);
opacity: 0.65;
}
* html #loader {
position: absolute;
}
/*===========================================
页面布局部分
===========================================*/
#globalWrapper {
width: 970px;
margin: 0px auto;
padding: 0px;
background: #FFF;
}
#container {
background: url(images/container-bg.gif) repeat-y;
float: left;
/*
三栏式*/
}
#container2 {
float: left;
background: url(images/container-bg2.gif) repeat-y;
/*
两栏式*/
}
#page-left {
float: left;
width: 185px;
overflow: hidden;
}
#page-middle {
float: left;
width: 599px;
padding: 0 0 0 1px;
overflow: hidden;
}
#page-right {
float: left;
width: 185px;
overflow: hidden;
}
/*===========================================
所以分类菜单
===========================================*/
.catalog-div {
border: 1px solid #808080;
background: #FFF;
display: none;
position: absolute;
padding: 5px 20px;
margin: 0;
}
.catalog-div ul {
padding: 0px;
margin: 0px;
list-style: none;
}
.catalog-div li {
white-space: nowrap;
}
.catalog-div .top-cate {
border-bottom: 1px solid #DADADA;
font-weight: bold;
margin: 3px auto;
}
.catalog-div .snd-cate {
padding-left: 1em;
}
/*===========================================
登录和Flash轮循广告
===========================================*/
#flash {
float: right;
background: #7B3900;
/*
Flash轮循广告*/
/* ==================== 网格方式显示 ==================== */
.itemGrid {
width: 100%;
overflow: hidden;
}
.itemGrid .item {
text-align: center;
width: 160px; height: 240px;
float: left;
padding: 18px 18px 10px;
position: relative;
}
.itemGrid .item .pic {
margin-bottom: 14px;
}
.itemGrid .item .name,
.itemGrid .item .price {
margin-bottom: 8px;
}
.itemGrid .item .name a,
.itemGrid .item .name img {
font-weight: bold;
color: #0b54ab;
vertical-align: middle;
}
.itemGrid .item .price {
color: #666;
}
.itemGrid .item .price .goodsPrice {
color: #F60;
}
.itemGrid .item .price .marketPrice {
color: #0b54ab;
background: url(../images/line_through.gif) repeat-x center 7px;
}
.itemGrid .item .btnList {
color: #5fb0dc;
}
.itemGrid .item .btnList a {
text-decoration: underline;
color: #5fb0dc;
}
.itemGrid .item .btnList a:hover {
color: #666;
}
.itemGrid .item .pic img {
background: #F5FCFE;
padding: 4px;
border: 1px solid #e0e1e2;
}
.itemGrid .item .brief {
color: #999;
}
.table-list {
width: 100%;
border-color: #dadada;
}
.table-list td,
.table-list th {
vertical-align: top;
border-color: #dadada;
}
.form-table {
width: 100%;
border-color: #dadada;
}
.form-table td,
.form-table th {
text-align: left;
vertical-align: top;
border-color: #dadada;
}
.btnBlue {
padding: 1px 8px;
border: 1px solid #999;
}
.vAlign {
vertical-align: middle;
}
#compareBox {
width: 130px;
background: #fff;
padding: 10px 3px 5px;
border: 1px solid #999;
position: absolute;
right:1px; top:200px;
opacity: 0.8; filter: progid XImageTransform.Microsoft.BasicImage(opacity=0.8);
}
#compareBox input {
color: #FFF;
background: #000;
width: 120px;
padding-top: 3px;
margin-bottom: 5px;
border: 1px solid #000;
}
#compareList {
width: 120px;
margin: 0px; padding: 0px;
}
#compareList li {
color: #333;
text-align:left;
width: 110px; height: 20px;
background: #F1F1F1;
margin: 3px 0; padding: 3px 5px;
border: 1px solid #999;
}
#compareList li img {
cursor: pointer;
}
#globalCompare table {
width: 100%;
border-collapse: collapse;
border: 1px solid #DADADA;
table-layout: fixed;
}
#globalCompare th,
#globalCompare td {
vertical-align: top;
padding: 3px 10px;
}
#globalCompare th {
text-align: left;
background: #f1f1f1;
width: 120px;
}
#globalCompare td.btnList img {
margin-bottom: 3px;
}
#globalMessage .btnFile {
text-align: right;
padding: 10px 20px 3px;
}
#globalMessage .topLine {
margin-top: 20px;
border-top: 2px solid #a5d2eb;
}
.watermark_small {
display: block;
text-indent: -9999px;
width: 31px; height: 15px;
margin-right: 3px;
float: left;
}
.watermark_promote_small {
background: url(images/watermark_promote_small.gif) no-repeat;
}
.watermark_new_small {
background: url(images/watermark_new_small.gif) no-repeat;
}
.watermark_best_small {
background: url(images/watermark_best_small.gif) no-repeat;
}
.watermark_hot_small {
background: url(images/watermark_hot_small.gif) no-repeat;
}
#pwd_lower,
#pwd_middle,
#pwd_high {
border-bottom: 2px solid #dadada;
}
快帮忙看看是改那里啊。。。
|