Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] Add Javascript image changer to my gallery page. (http://forum.bytesforall.com/showthread.php?t=6917)

McDz Apr 29, 2010 12:21 AM

[SOLVED] Add Javascript image changer to my gallery page.
 
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.. :(

McDz Apr 29, 2010 01:38 AM

Found a solution.

Added the script here...

"HTML Inserts: Header"

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

And it works! :)


All times are GMT -6. The time now is 01:17 PM.

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