xuanyinwen
07-29-2010, 12:39 AM
Hi everyone can Help me please
I try to set up a slide show which require photos details script in the head tag. eg.
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="fadeslideshow.js">
</script>
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [653, 490], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["images/slideshow/ning/01.JPG"],
["images/slideshow/ning/02.JPG"],
["images/slideshow/ning/03.JPG"],
["images/slideshow/ning/04.JPG"],
["images/slideshow/ning/05.JPG"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 5000, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</head>
For some reason with my webpage, I can't put this script in the head tag, so any idea how can I use some Javascript to make this part in to the body tag.
Many thanks
Wayne
I try to set up a slide show which require photos details script in the head tag. eg.
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="fadeslideshow.js">
</script>
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [653, 490], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["images/slideshow/ning/01.JPG"],
["images/slideshow/ning/02.JPG"],
["images/slideshow/ning/03.JPG"],
["images/slideshow/ning/04.JPG"],
["images/slideshow/ning/05.JPG"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 5000, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</head>
For some reason with my webpage, I can't put this script in the head tag, so any idea how can I use some Javascript to make this part in to the body tag.
Many thanks
Wayne