People are allowed to charge you for Dynamic Drive code - well not for the code, but for setting it up for you. They are, however, supposed to keep the script credit visible in the source code of the page.
Since you don't know what script you have, I would need a link to your page to tell you the answer for sure. It looks exactly to me like the DD script I linked to, but I cannot be 100% certain. To answer your question about where the credit would go (assuming this is the DD script I think it is), where you have:
Code:
<script type="text/javascript" src="fadeslideshow.js">
</script>
It should be:
Code:
<script type="text/javascript" src="fadeslideshow.js">
//***********************************************
//* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
//* Please keep this notice intact
//* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
//***********************************************/
</script>
And, if it is the DD script I think it is, to get alts and titles, change this:
Code:
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [900, 170], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["images/p1.jpg", "http://www.mywebsite.com/Page1.php", "", ""],
["images/p2.jpg", "http://www.mywebsite.com/Page2.php", "", ""],
["images/p3.jpg", "http://www.mywebsite.com/Page3.php", "", ""],
["images/p4.jpg", "http://www.mywebsite.com/Page4.php", "", ""],
["images/p5.jpg", "http://www.mywebsite.com/Page5.php", "", ""]
//<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:5000, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
to:
Code:
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [900, 170], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["images/p1.jpg", "http://www.mywebsite.com/Page1.php", "", "", ["alt for 1st image", "title for 1st image"]],
["images/p2.jpg", "http://www.mywebsite.com/Page2.php", "", "", ["alt for 2nd image", "title for 2nd image"]],
["images/p3.jpg", "http://www.mywebsite.com/Page3.php", "", "", ["alt for 3rd image", "title for 3rd image"]],
["images/p4.jpg", "http://www.mywebsite.com/Page4.php", "", "", ["alt for 4th image", "title for 4th image"]],
["images/p5.jpg", "http://www.mywebsite.com/Page5.php", "", "", ["alt for 5th image", "title for 5th image"]]
//<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:5000, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
oninit: function(){
var s = this.setting, ir = s.imagearray, l = ir.length;
s.$gallerylayers.find('img').each(function(i, im){
jQuery(im).attr({alt: ir[i % l][4][0], title: ir[i % l][4][1]});
});
},
togglerid: ""
})
</script>
If you want more help, please provide a link to the page on your site that contains the problematic code.
Bookmarks