Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-23-2011, 10:38 AM   PM User | #1
nikeman070
New to the CF scene

 
Join Date: Feb 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
nikeman070 is an unknown quantity at this point
Help me with this coding please!!?

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.


[CODE]

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 });
});

[CODE]


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.
nikeman070 is offline   Reply With Quote
Old 02-23-2011, 04:53 PM   PM User | #2
Spudhead
Senior Coder

 
Spudhead's Avatar
 
Join Date: Jun 2002
Location: London, UK
Posts: 1,856
Thanks: 8
Thanked 110 Times in 109 Posts
Spudhead is on a distinguished road
I'm guessing that the hu: 'images/' bit means it's looking in your "images" folder for those jpgs - try putting one in there.
Spudhead is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:17 PM.


Advertisement
Log in to turn off these ads.