Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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, 01: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 01:28 AM.
  #2  
Old Apr 29, 2010, 02: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 10:17 PM
Where to put code to add background image to Page menu? 3busydogs Page & Category Menu Bars 1 Dec 29, 2009 02:45 PM
Background Changer and Menubar Ddabrai Plugins & Atahualpa 0 Aug 7, 2009 06:02 AM
help: add javascript banner in header irynas Header configuration & styling 0 Mar 8, 2009 04:06 AM
nextGen gallery with image rotator as header image shatchp Header configuration & styling 1 Feb 13, 2009 08:40 PM


All times are GMT -6. The time now is 07:50 PM.


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