View Full Version : Help me with this coding please!!?

02-23-2011, 10:38 AM
Help me with this coding please!!?

I've added a web widget in dreamweaver and I can edit the caption in the code but cant add my own pictures.. When I change the 1.jpg to a jpg file in my root directory it does nothing but delete the 1.jpg file. Help please.


window.addEvent('domready', function(){
var data = {
'1.jpg': { caption: 'ccc' },
'2.jpg': { caption: 'A Ceibu tree.' },
'3.jpg': { caption: 'The view from Volcano Maderas.' },
'4.jpg': { caption: 'Beer and ice cream.' },

var myShow = new Slideshow.KenBurns('show1', data, { captions: true, controller: true, delay: 4000, duration: 1000, height: 300, hu: 'images/', thumbnails: true, width: 400 });


I read thisin a forum.. but I dont know what it means update the paths??

The web widget extensions generally require that you go into the code and make any modifications necessary. If there are images that are displayed, then in the code that the extension applies to your page should be paths to the images. Update the paths to point to your images and you should be good to go, and if you need to add more, then you'll need to follow the code to see how to do that.

02-23-2011, 04:53 PM
I'm guessing that the hu: 'images/' bit means it's looking in your "images" folder for those jpgs - try putting one in there.