Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

Stop/pause header image animation after 1 full sequence?


  #1  
Old Aug 17, 2010, 08:59 PM
evster
 
5 posts · Aug 2010
Stop/pause header image animation after 1 full sequence?

Hi everyone.

Is it possible to get the header animation in the Atahualpa theme to pause it's animation on the final image available?

So, for example, if I have 5 images uploaded in the "header" folder, it will display images 1 through 5 and pause on #5 instead of repeating the cycle over and over?

I believe it's probably just a simple tweak to the script in js.php, but I am not a javascript wiz so I can't seem to figure it out.

Any help in this area would me most appreciated.

Thanks!
  #2  
Old Aug 19, 2010, 06:49 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Your idea is correct, go into the code and change the loop so it only runs once.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Aug 19, 2010, 09:30 PM
evster
 
5 posts · Aug 2010
Thanks for the tip. I've spent a lot of time working with the code in js.php, but I still can't seem to get it to work.

I assume I need to modify the code within the RotateHeaderImages() function?

I kept making changes to that function with no results, and eventually decided to delete the entire function to see what would happen and guess what - nothing changed! The images still loaded and cycled through repeatedly.

Could there be some setting within the Atahualpa theme options that is overriding my work to js.php?
  #4  
Old Aug 22, 2010, 06:20 PM
MickR
 
22 posts · May 2010
Hi evster,

Did you find a solution? Been trying the same myself and can't see where the loop is being actioned.
Would be great if you found a way round it.

Mick.
(Also wondering if it would be a useful option in ATA Header Image configuration settings in some future release).
  #5  
Old Aug 22, 2010, 06:41 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
in version 3.5.3 edit js.php and change lines 56 and 57 from
HTML Code:
			if (j > (p-1)) j=0
			t = setTimeout('RotateHeaderImages()', <?php echo $bfa_ata['header_image_javascript']; ?>000)
to
HTML Code:
			if (j < (p)) {
			t = setTimeout('RotateHeaderImages()', <?php echo $bfa_ata['header_image_javascript']; ?>000) }
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Aug 22, 2010, 07:58 PM
MickR
 
22 posts · May 2010
Hi Juggledad,

Thanks for the reply...

I tried the change you suggested, and although it looked like it made sense it didn't actually work as expected (i.e, loop was still running). I then went in search of info relating to cross-slide and found this:

http://codingforums.com/showthread.php?t=192809

That prompted me to make a change in js.php further down (line 67?) as follows:

FROM:
.crossSlide({sleep: <?php echo $bfa_ata['header_image_javascript']; ?>,fade: <?php echo

TO:
.crossSlide({loop:1,sleep: <?php echo $bfa_ata['header_image_javascript']; ?>,fade: <?php echo

Not sure if that's a recommended way, or if there is better, but at least it worked!

Thanks,

Mick.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Mosaic, full page, linkable manuhoz Center area post/pages 3 Jul 30, 2010 09:50 AM
3.5.1: Header images always rotate in the same sequence... not great! cfibanez Header configuration & styling 4 Jul 26, 2010 07:34 AM
background image over-sized - Full Page Background Image prokopino Atahualpa 3 Wordpress theme 2 Mar 30, 2010 04:42 AM
page sequence wereldbol Page & Category Menu Bars 4 Jan 17, 2010 09:21 AM
[SOLVED] Page menu bar gif image full width rcarbaugh Page & Category Menu Bars 4 Jan 13, 2010 12:43 PM


All times are GMT -6. The time now is 04:24 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.