TinyPortal

Development => Block Codes => Topic started by: whoesa on January 25, 2007, 03:21:06 PM

Title: Smooth Slideshow Help
Post by: whoesa on January 25, 2007, 03:21:06 PM
Hi all,

In my search for a slideshow i have found this great script: http://smoothslideshow.jondesign.net/

As you can see there, you have 2 options to choose from: Timed mode and Change by hand mode.

Demo's:
Timed Mode Example (http://smoothslideshow.jondesign.net/timed.html)
Change By Hand Example (http://smoothslideshow.jondesign.net/showcase.html)

Now im not much of a coder and i was wondering if it is possible to get this script working on a SMF - TP site and how? It would be great if i could use this script in a center block and i was hoping someone could point me in the right direction.  :-\

Any help would be much appreciated!   :)
Title: Re: Smooth Slideshow Help
Post by: Lesmond on January 25, 2007, 06:20:17 PM
I have had a play with this and got it working so far,
you will need to download the file from JonDesign's near the bottom of the page you will see "Where can I get it ?"
upload these folders and one file to your forum root..

css
images
scripts
.project

then copy this code to a center or front page script block
<script src="scripts/mootools.release.83.js" type="text/javascript"></script>

<script src="scripts/timed.slideshow.js" type="text/javascript"></script>


<link rel="stylesheet" href="css/jd.slideshow.css" type="text/css" media="screen" />


<center><div class="timedSlideshow jdSlideshow" id="mySlideshow"></div>
                        <script type="text/javascript">
countArticle = 0;
var mySlideData = new Array();
mySlideData[countArticle++] = new Array(
'images/test/1.jpg',
'#',
'Item 1 Title',
'Item 1 Description'
);
mySlideData[countArticle++] = new Array(
'images/test/2.jpg',
'#',
'Item 2 Title',
'Item 2 Description'
);
mySlideData[countArticle++] = new Array(
'images/test/3-cropped.jpg',
'#',
'Item 3 Title',
'Item 3 Description'
);
mySlideData[countArticle++] = new Array(
'images/test/4.jpg',
'#',
'Item 4 Title',
'Item 4 Description'
);
</script>
<script type="text/javascript">
function startSlideshow() {
var slideshow = new timedSlideShow($('mySlideshow'), mySlideData);
}

addLoadEvent(startSlideshow);
</script>
</center>


Title: Re: Smooth Slideshow Help
Post by: knat on January 26, 2007, 06:03:18 AM
Hey thats a nice find.. looks very cool

Thanks  ;)
Title: Re: Smooth Slideshow Help
Post by: whoesa on January 26, 2007, 10:49:34 AM
Thanks a lot Lesmond for taking a look at this!  :up:

Just tried it out and it seem to work just fine...  :)
Title: Re: Smooth Slideshow Help
Post by: houston on January 28, 2007, 02:39:46 AM
What file do you place into the root folder?
Title: Re: Smooth Slideshow Help
Post by: Lesmond on January 28, 2007, 02:53:58 AM
If you look at my post above you will see what files/folders to put in your root :) dont forget you must change the paths in the code if you need to
Title: Re: Smooth Slideshow Help
Post by: SN on September 01, 2009, 02:40:56 PM
thanks for the code

any idea on how to change the size of the sideshow.

i need it to be 480x240
Title: Re: Smooth Slideshow Help
Post by: JPDeni on September 01, 2009, 03:15:51 PM
It looks like the size is determined by the css. A quote from the author's page:

Quote
   1.   The final step, set the slideshow size in your stylesheets like this (the default size is 320x240):

      #mySlideShow
      {
      width: 400px !important;
      height: 200px !important;
      }

Title: Re: Smooth Slideshow Help
Post by: SN on September 02, 2009, 10:48:36 PM
Thanks!!!

everything is working now :)

just one more thing, how do i change the font size? it is so small at the moment
Title: Re: Smooth Slideshow Help
Post by: JPDeni on September 02, 2009, 10:52:55 PM
Add a text size the css class. You'll have to do some experimenting to figure out what works.
Title: Re: Smooth Slideshow Help
Post by: SN on September 03, 2009, 09:46:33 AM
ok thanks, but i am not very good with coding. do you know what code i add and which file i add it to?
Title: Re: Smooth Slideshow Help
Post by: G6Cad on September 03, 2009, 09:47:33 AM
Did you read the topic from the start ?   it's all there..

http://www.tinyportal.net/index.php/topic,12708.msg105736.html#msg105736
Title: Re: Smooth Slideshow Help
Post by: SN on September 03, 2009, 11:47:48 AM
Yes of course i read it all, did you read it all? like isaid i have got the slide show working i just want different font size

There are 4 Css files - html.css, jd.slideshow.css, layout.css & Print.css.

I don't know which file i need to edit to change the font size and even if i picked the right file, i don't know which part of the code changes the font size. like i said before im not very good with coding.

i just need someone to point out to me what i would be looking for in the css
Title: Re: Smooth Slideshow Help
Post by: ZarPrime on September 03, 2009, 12:42:39 PM
SN,

If you want to post a link to your site showing the slideshow, and point out which font you are trying to change, I'll take a look at it for you.

ZarPrime
Title: Re: Smooth Slideshow Help
Post by: SN on September 03, 2009, 02:48:46 PM
Its ok Now thank you, i went through all the css files and found it.

it was in jd.slideshow.css and this is where i edited

.jdSlideshow .slideInfoZone
{
position: absolute;
z-index: 10;
width: 100%;
margin: 0px;
left: 0;
bottom: 0;
height: 55px; // [b]changed the height of the title bar here because of the bigger font now[/b]
background: #333;
color: #fff;
text-indent: 0;
}

.jdSlideshow .slideInfoZone h2
{
padding: 0;
font-size: 100%; // [b]This was the title Font, i changed it to 100% before it was lower[/b]
margin: 0;
margin: 2px 5px;
font-weight: bold;
color: inherit;
}

.jdSlideshow .slideInfoZone p
{
padding: 0;
font-size: 80%; // [b]This was the Font Underneath the title[/b]
margin: 2px 5px;
color: #eee;


i just mess around with the percentages with the ones i marked and iits ok now... Thanks for the help with it :) looks great now

my site is not finished yet i will post i when its complete
Title: Re: Smooth Slideshow Help
Post by: ZarPrime on September 03, 2009, 03:01:20 PM
Great.  I'm glad you got it worked out. :up:

ZarPrime
Title: Re: Smooth Slideshow Help
Post by: G6Cad on September 03, 2009, 03:01:38 PM
Quote from: SN on September 03, 2009, 11:47:48 AM
Yes of course i read it all, did you read it all? like isaid i have got the slide show working i just want different font size

There are 4 Css files - html.css, jd.slideshow.css, layout.css & Print.css.

I don't know which file i need to edit to change the font size and even if i picked the right file, i don't know which part of the code changes the font size. like i said before im not very good with coding.

i just need someone to point out to me what i would be looking for in the css

The very reason i asked you to read and add in the info from the posting guide we ask for is a link to your site, With a link we can check it right away on your site instead of guessing our way forward.
Title: Re: Smooth Slideshow Help
Post by: Reko on April 09, 2010, 05:41:16 AM
is there a updated version of the code for this?
Title: Re: Smooth Slideshow Help
Post by: gezdirici on August 15, 2011, 12:20:39 PM
Demos page doesn't working

/scripts/mootools.release.83.js   ,

/scripts/timed.slideshow.js

/css/jd.slideshow.css

where is this page. 






Title: Re: Smooth Slideshow Help
Post by: ZarPrime on August 15, 2011, 05:44:59 PM
It appears that the site that had this code available and was posted in the OP of this topic has been closed down, along with it's associated demos.  Since the code is no longer available, this topic will now be locked.

gezdirici, if you want some sort of slideshow on your site, you will have to use one of the other block code snippets that still work, or post a topic in our Requests board (http://www.tinyportal.net/index.php?board=133.0) stating exactly what you are looking for.

Sorry for the inconvenience.

ZarPrime