Author Topic: Change images Weather Blues1 main page  (Read 2570 times)

Offline weathernut

  • Jr. Member
  • **
  • Posts: 10
    • Surrey, BC Weather
Change images Weather Blues1 main page
« on: February 02, 2014, 02:20:00 AM »
Is there any way to put your own image(s) onto the weather blues 1 main page to replace the originals?

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Change images Weather Blues1 main page
« Reply #1 on: February 02, 2014, 07:03:49 AM »
Hi,
Sure you can put your own image! And I hope so!  :D

You have 2 ways to do it. They're actually 3 picture rotating
in your header (in your images folder):

- header1.jpg
- header2.jpg
- header3.jpg

Easiest way to put your own is to replace these files with your pics
(with same name). That way, no pages to edit, only replace these
images with yours. The size to use is 954px X 200px.

If you want to have different images or other than 3 images,
you have to edit page and find these lines:

<div id="slider" class="nivoSlider">
   <img src="images/header.jpg" alt="" />
   <img src="images/header2.jpg" alt=""/>
   <img src="images/header3.jpg" alt="" />
</div>

Only one thing to remember: header.jpg is always 1st image!
Because loading images take some time, I've placed a "background"
image (header.jpg) to "fill the hole" during that time.
Then, please put your own images, so we can visit your place "virtually"!  8)

To help you, I include in that post a "empty frame" of the right size
As a photo frame, you just have to put your picture in it and save it
as a .JPG file.

Regards,
Jacques
Please, consider supporting this site 

Offline weathernut

  • Jr. Member
  • **
  • Posts: 10
    • Surrey, BC Weather
Re: Change images Weather Blues1 main page
« Reply #2 on: February 02, 2014, 01:23:54 PM »
Thanks for your prompt response!

Offline weathernut

  • Jr. Member
  • **
  • Posts: 10
    • Surrey, BC Weather
Re: Change images Weather Blues1 main page
« Reply #3 on: February 04, 2014, 09:41:29 PM »
Hi Jacques,
I have my own headers (jpgs) up and running on the 954x200 screens but I was wondering if there was a file I could go into to increase the time that each image displays for, like 5 seconds or so. 
Thanks, Rob
« Last Edit: February 05, 2014, 01:27:01 AM by weathernut »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Change images Weather Blues1 main page
« Reply #4 on: February 05, 2014, 04:52:26 PM »
Hi Rob,

For sure this Library has a lot of options that could be set
if you want it your way. The "twist" is done by these lines
at bottom of each pages:

$(window).load(function() {
$('#slider').nivoSlider();
});

Actually it use default settings I've made in the source file
but you can specify any settings, by using parameters
in (the red) parenthèses, like this:

$('#slider').nivoSlider({
    animSpeed: 500,                 // Slide transition speed
    pauseTime: 3000                 // How long each slide will show
}
);

These are a few settings you can use, I've choose this
Library because it is easy and well documented. You could
see the Nivo Slider Library documentation for more options.

Regards,
Jacques
Please, consider supporting this site 

Offline weathernut

  • Jr. Member
  • **
  • Posts: 10
    • Surrey, BC Weather
Re: Change images Weather Blues1 main page
« Reply #5 on: February 05, 2014, 11:11:03 PM »
Hi Rob,

For sure this Library has a lot of options that could be set
if you want it your way. The "twist" is done by these lines
at bottom of each pages:

$(window).load(function() {
$('#slider').nivoSlider();
});

Actually it use default settings I've made in the source file
but you can specify any settings, by using parameters
in (the red) parenthèses, like this:

$('#slider').nivoSlider({
    animSpeed: 500,                 // Slide transition speed
    pauseTime: 3000                 // How long each slide will show
}
);

These are a few settings you can use, I've choose this
Library because it is easy and well documented. You could
see the Nivo Slider Library documentation for more options.

Regards,
Jacques

Hi Jacques,
Here is what I tried to do (I tried it with and without the bottom line {);) but when I access the webpage only the header image shows ie. there are no longer any transitions...

   $('#slider').nivoSlider({
      animSpeed: 500
      pauseTime: 5000
      }
      );
   });

Have I entered something wrong here? Thanks for your help in this matter.
Rob
« Last Edit: February 06, 2014, 10:20:38 AM by weathernut »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Change images Weather Blues1 main page
« Reply #6 on: February 06, 2014, 11:23:15 AM »
Hi Rob,

With computers, there is a lot of troubles due to
syntax problem, as this one! With javascript, when
we enumerate parameters, a simple reminder is useful:

All parameters are separated with Comma (,)
up to the last one (not including the last one).

If you look a bit more on sample I've sent, you'll see
that parameter line "animSpeed" is ending with a comma
(but not the last parameter - "pauseTime"!)

$('#slider').nivoSlider({
    animSpeed: 500,
    pauseTime: 3000
}
);

Regards,
Jacques
Please, consider supporting this site 

Offline weathernut

  • Jr. Member
  • **
  • Posts: 10
    • Surrey, BC Weather
Re: Change images Weather Blues1 main page
« Reply #7 on: February 06, 2014, 12:12:14 PM »
Thanks Jacques!
The transitions are working fine now! ;)
Rob