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

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 08-27-2010, 02:14 AM   PM User | #1
turpentyne
Regular Coder

 
Join Date: Aug 2010
Posts: 309
Thanks: 10
Thanked 1 Time in 1 Post
turpentyne is an unknown quantity at this point
in search of better slideshow, or tutorial

A while back I downloaded a prepackaged script for a slideshow. Now that I've learned a bit more about javascript, maybe somebody can direct me to a better free alternative that I can work on that is similar. This one has a link on the bottom to its creator, and seems to load quite slow.

Here's a page with the script: http://www.mergecreate.com/paintings.html
turpentyne is offline   Reply With Quote
Old 08-27-2010, 03:40 PM   PM User | #2
vwphillips
Senior Coder

 
Join Date: Mar 2005
Location: Portsmouth UK
Posts: 4,353
Thanks: 3
Thanked 456 Times in 443 Posts
vwphillips is a jewel in the roughvwphillips is a jewel in the roughvwphillips is a jewel in the rough
you have not chosen the easiest example to learn from

however I have written a script with similar attibutes using standard JavaScript

see the attachment
Attached Files
File Type: txt 100827A.txt (11.9 KB, 40 views)
__________________
Vic

God Loves You and will never love you less.

http://www.vicsjavascripts.org.uk/

If my post has been useful please donate to http://www.operationsmile.org.uk/
vwphillips is offline   Reply With Quote
Old 08-29-2010, 12:47 AM   PM User | #3
turpentyne
Regular Coder

 
Join Date: Aug 2010
Posts: 309
Thanks: 10
Thanked 1 Time in 1 Post
turpentyne is an unknown quantity at this point
cool! thanks! Seems to run quicker too. Still looks a little complicated for my level. haha!

Quick question? Will this work if I put more than one slider on a page? If so, can you direct me to the right spot to edit for that? I've already created a unique div tag and applied a css style to it. The first instance works, but the new one doesn't. ( I had a hunch that'd happen anyway)
turpentyne is offline   Reply With Quote
Old 08-29-2010, 09:55 AM   PM User | #4
vwphillips
Senior Coder

 
Join Date: Mar 2005
Location: Portsmouth UK
Posts: 4,353
Thanks: 3
Thanked 456 Times in 443 Posts
vwphillips is a jewel in the roughvwphillips is a jewel in the roughvwphillips is a jewel in the rough
see attachment
Attached Files
File Type: txt 100829A.txt (13.6 KB, 37 views)
__________________
Vic

God Loves You and will never love you less.

http://www.vicsjavascripts.org.uk/

If my post has been useful please donate to http://www.operationsmile.org.uk/
vwphillips is offline   Reply With Quote
Old 09-02-2010, 06:50 AM   PM User | #5
turpentyne
Regular Coder

 
Join Date: Aug 2010
Posts: 309
Thanks: 10
Thanked 1 Time in 1 Post
turpentyne is an unknown quantity at this point
ok. I broke it.

hmmm. I have no idea where I went wrong. I've worked three slideshows tied to Vic's above script into my project. I think the only thing I added in relation to the slideshow was to put them into <div> tags that are visible only when clicking on the relevant link (Otherwise they appeared while the page was loading) Somewhere along the way of working on this page, the thumbnail scrolling stopped working.

here's how everything looks. There's a bunch of other scripting on there to slide the page. I don't think it's causing any trouble. I've gone line by line to see if I can find an error or tweak something to fix it.

the source code can be seen here: http://www.mergecreate.com The three slideshows can be reached by clicking on design, paintings or illustration (it's all one file)

Last edited by turpentyne; 09-02-2010 at 06:54 AM..
turpentyne is offline   Reply With Quote
Old 09-02-2010, 02:17 PM   PM User | #6
codebyter
New Coder

 
Join Date: Aug 2010
Location: FL
Posts: 35
Thanks: 0
Thanked 1 Time in 1 Post
codebyter is an unknown quantity at this point
For whats its worth,

http://codebyter.com/post.php?code&id=11

I am already working on a newer version so stay tuned
codebyter is offline   Reply With Quote
Old 09-02-2010, 05:31 PM   PM User | #7
vwphillips
Senior Coder

 
Join Date: Mar 2005
Location: Portsmouth UK
Posts: 4,353
Thanks: 3
Thanked 456 Times in 443 Posts
vwphillips is a jewel in the roughvwphillips is a jewel in the roughvwphillips is a jewel in the rough
Code:
<div id="slide3" style="display:none;">
the display:none; can only be set after the script has been initialised

Code:
<script  type="text/javascript">
/*<![CDATA[*/

new zxcMousePan({
 MainID:'main3',
 MainClassName:'main',
 SlideID:'slide3',
 FrameClassName:'thumb',
 FrameActiveClassName:'thumbactive',
 Mode:'Vertical',
 Duration:2000,
 Hold:2000,
 Opacity:50
});

document.getElementById('slide3').style.display='none';
/*]]>*/
</script>
also the images will need to be preloaded
__________________
Vic

God Loves You and will never love you less.

http://www.vicsjavascripts.org.uk/

If my post has been useful please donate to http://www.operationsmile.org.uk/
vwphillips is offline   Reply With Quote
Old 09-02-2010, 09:35 PM   PM User | #8
turpentyne
Regular Coder

 
Join Date: Aug 2010
Posts: 309
Thanks: 10
Thanked 1 Time in 1 Post
turpentyne is an unknown quantity at this point
hmmm.. dang. This is going to take some figuring out. Now I'm back to the slideshows appearing before the page is done loading. I've put in some preloading of images too.
turpentyne is offline   Reply With Quote
Old 09-03-2010, 11:09 AM   PM User | #9
vwphillips
Senior Coder

 
Join Date: Mar 2005
Location: Portsmouth UK
Posts: 4,353
Thanks: 3
Thanked 456 Times in 443 Posts
vwphillips is a jewel in the roughvwphillips is a jewel in the roughvwphillips is a jewel in the rough
you cound use 'visibility' inplace of 'display'
__________________
Vic

God Loves You and will never love you less.

http://www.vicsjavascripts.org.uk/

If my post has been useful please donate to http://www.operationsmile.org.uk/
vwphillips is offline   Reply With Quote
Users who have thanked vwphillips for this post:
turpentyne (09-03-2010)
Old 09-03-2010, 09:13 PM   PM User | #10
turpentyne
Regular Coder

 
Join Date: Aug 2010
Posts: 309
Thanks: 10
Thanked 1 Time in 1 Post
turpentyne is an unknown quantity at this point
Cool! I had looked into that, but I was misunderstanding how visibility worked for some reason. Everything works. Now on to loading issues. thanks!
turpentyne 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 11:00 AM.


Advertisement
Log in to turn off these ads.