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 » Center area post/pages »

[SOLVED] Add Javascript image changer to my gallery page.


  #1  
Old Apr 29, 2010, 12:21 AM
McDz's Avatar
McDz
 
32 posts · Jan 2010
Sweden
Hi,

Is there some easy way to add this script to my "gallerypage" and in the end on a "static startpage"?

I dont know where to put the code?


The javascirpt

Code:
<!--        Script by hscripts.com          -->
<!--        copyright of HIOX INDIA         -->
<!-- more scripts @ http://www.hscripts.com -->

<script type="text/javascript">
var slideimages=new Array()
function slideshowimages()
{
     for (i=0;i<slideshowimages.arguments.length;i++){
         slideimages[i]=new Image()
         slideimages[i].src=slideshowimages.arguments[i]
    }
}
</script>
And the code to se the images...

Code:
<img src="hslide-show-image/1.jpg" alt="Slideshow Image Script" title="Slideshow Image Script" name="slide" border=0 width=200 height=200><a href="http://hscripts.com" style="text-decoration:none;cursor:pointer;font-size:12px;color:green;">H</a>
<script type="text/javascript">
slideshowimages("hslide-show-image/1.jpg","hslide-show-image/2.jpg","hslide-show-image/3.jpg")
var slideshowspeed=2000
var whichimage=0
function slideit()
{
     if (!document.images)
           return
     document.images.slide.src=slideimages[whichimage].src
     if (whichimage<slideimages.length-1)
              whichimage++
     else
              whichimage=0
      setTimeout("slideit()",slideshowspeed)
}
 slideit()
</script>

<!-- Script by hscripts.com -->
Thnx..


I found this tread http://forum.bytesforall.com/showthread.php?t=3164

But I still dont know what the code shoult look like..

Last edited by McDz; Apr 29, 2010 at 12:28 AM.
  #2  
Old Apr 29, 2010, 01:38 AM
McDz's Avatar
McDz
 
32 posts · Jan 2010
Sweden
Found a solution.

Added the script here...

"HTML Inserts: Header"

And the reset in the html/edit on the page.

And it works!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add custom upper menu using javascript bkaushik Forum How-To 0 Feb 4, 2010 09:17 PM
Where to put code to add background image to Page menu? 3busydogs Page & Category Menu Bars 1 Dec 29, 2009 01:45 PM
Background Changer and Menubar Ddabrai Plugins & Atahualpa 0 Aug 7, 2009 05:02 AM
help: add javascript banner in header irynas Header configuration & styling 0 Mar 8, 2009 03:06 AM
nextGen gallery with image rotator as header image shatchp Header configuration & styling 1 Feb 13, 2009 07:40 PM


All times are GMT -6. The time now is 02:21 AM.


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