日期:2014-05-18  浏览次数:20515 次

求教!现在有一个图片切换的代码,我想把它改成可以再后台添加删除图片的
具体代码如下:
<div id="oTransContainer" style="filter: progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=0, motion='forward'); WIDTH: 390; HEIGHT: 134">
  <img alt="" class="pic" id="oDIV1" src="album/abgastechnik_390x134px.jpg" width="390" height="134"/>
  <img alt="" class="pic" id="oDIV2" src="album/allg_rohrsysteme_390x134px.jpg" width="390" height="134" style="DISPLAY: none;"/>
  <img alt="" class="pic" id="oDIV3" src="album/anwendungsuebersicht_390x134px.jpg" width="390" height="134" style="DISPLAY: none;"/>
  <img alt="" class="pic" id="oDIV4" src="album/hausabfluss_3s_ng_390x134px.jpg" width="390" height="134" style="DISPLAY: none;"/>
  <img alt="" class="pic" id="oDIV5" src="album/hausinstallation_390x134px.jpg" width="390" height="134" style="DISPLAY: none;"/>
  <img alt="" class="pic" id="oDIV6" src="album/haustechnik_tiefbau_390x134px.jpg" width="390" height="134" style="DISPLAY: none;"/>
  <img alt="" class="pic" id="oDIV7" src="album/hot_cold_390x134px.jpg" width="390" height="134" style="DISPLAY: none;"/>
  <img alt="" class="pic" id="oDIV8" src="album/kanalrohrsystem_390x134px.jpg" width="390" height="134" style="DISPLAY: none;"/>
  <img alt="" class="pic" id="oDIV9" src="album/kwl_ewt_390x134px.jpg" width="390" height="134" style="DISPLAY: none;"/>
  <img alt="" class="pic" id="oDIV10" src="album/polo_eco_plus_premium_390x134px.jpg" width="390" height="134" style="DISPLAY: none;"/>
  <img alt="" class="pic" id="oDIV11" src="album/polo_ehp_control_390x134px.jpg" width="390" height="134" style="DISPLAY: none;"/>
  <img alt="" class="pic" id="oDIV12" src="album/polo_tersia_390x134px.jpg" width="390" height="134" style="DISPLAY: none;"/>
  <img alt="" class="pic" id="oDIV13" src="album/rohrdurchfuehrung_390x134px.jpg" width="390" height="134" style="DISPLAY: none;"/>
  <img alt="" class="pic" id="oDIV14" src="album/unterdruckdachentwaesserung_390x134px.jpg" width="390" height="134" style="DISPLAY: none;"/>
  <img alt="" class="pic" id="oDIV15" src="album/zentralstaubsaugeranlage_390x134px.jpg" width="390" height="134" style="DISPLAY: none;"/>
  <script type="text/javascript">
  var NowFrame = 1;
  var MaxFrame = 4;
  var bStart = 0;
  function fnToggle(){
var next = NowFrame + 1;
if(next == MaxFrame+1) {
NowFrame = MaxFrame;next = 1;