Fading Banner Slideshow
hi, im trying find simple way implament ad banner on website. have code 1 works , simple use (see code below). problem is not dynamic, when resize page doesn't change size. i'm using fluid grid layout , want whole banner resize device. there simple way change code or there simple way implament way?
if havn't guessed need simple.
thanks
<script type="text/javascript">
var mygallery=new fadeslideshow({
wrapperid: "fadeshow1", //id of blank div on page house slideshow
dimensions: [1225, 54], //width/height of gallery in pixels. should reflect dimensions of largest image
imagearray: [
["http://www.nostalgiamerchant.biz/images2013/banner/banner1.png", "http://www.nostalgiamerchant.biz", "_new"],
["http://www.nostalgiamerchant.biz/images2013/banner/banner2.png", "http://www.nostalgiamerchant.biz", "_new"],
["http://www.nostalgiamerchant.biz/images2013/banner/banner3.png", "http://www.nostalgiamerchant.biz", "_new"],
["http://www.nostalgiamerchant.biz/images2013/banner/banner4.png", "http://www.nostalgiamerchant.biz", "_new"],
["http://www.nostalgiamerchant.biz/images2013/banner/banner5.png", "http://www.nostalgiamerchant.biz", "_new"]// <-- no trailing comma after last image element!
],
displaymode: {type:'auto', pause:3000, cycles:0, wraparound:false},
persist: false, //remember last viewed slide , recall within same session?
fadeduration: 2000, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
use jquery cycle2 instead of have now. it's modern, customizable , simple use.
http://www.malsup.com/jquery/cycle2/
nancy o.
More discussions in Dreamweaver support forum
adobe
Comments
Post a Comment