Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

code for slideshow

3 posters

Go down  Message [Page 1 of 1]

1code for slideshow Empty code for slideshow Sat Jul 27, 2013 11:11 am

Lovely King

Lovely King
User


how can i do slideshow like here

http://playbox.rpgboard.net/

Heart 

http://topyouth.gamerzfun.com

2code for slideshow Empty Re: code for slideshow Sat Jul 27, 2013 11:19 am

Sasori

Sasori
Administrator


Hello , try this :

Code:
<style type="text/css">
.picshow { z-index:444; position:relative; background-color:#ffffff; width: 100%; height: 135px}
.picshow_main { position: relative; width: 180px; height: 135px}
.picshow_main .imgbig { filter: progid:dximagetransform.microsoft.wipe(gradientsize=1.0,wipestyle=4, motion=forward); width: 180px; height: 135px}
.picshow_change {position: absolute; text-align: left; bottom: 0px; height: 30px; right: 0px; left: 100px;}
.picshow_change img {width:15px; height: 15px}
.picshow_change a { border: 1px solid; display: block; float: left; margin-right: 5px;  -display: inline}
a.axx { border-color: #555}
a.axx:hover {border-color: #000}
a.axx img { filter: alpha(opacity=40); opacity: 0.4; -moz-opacity: 0.4}
a.axx:hover img {filter: alpha(opacity=100); opacity: 1.0; -moz-opacity: 1.0}
a.bxx { border-color: #000}
a.bxx:hover {border-color: #000}
img{border:0px}
</style>

<script language="javascript">

 var counts = 3;
 
 img1 = new Image(); img1.src = 'http://hitskin.com/themes/13/27/62/thumb.png';
 img2 = new Image(); img2.src = 'http://hitskin.com/themes/12/62/62/thumb.jpg';
 img3 = new Image(); img3.src = 'http://hitskin.com/themes/13/82/61/thumb.png';

 var smallImg = new Array();

 smallImg[0] = 'http://i60.servimg.com/u/f60/12/10/25/45/index_10.gif';
 smallImg[1] = 'http://i60.servimg.com/u/f60/12/10/25/45/index_11.gif';
 smallImg[2] = 'http://i60.servimg.com/u/f60/12/10/25/45/index_12.gif';

 url1 = 'http://en.hitskin.com/search-a-skin/black-gold-132762.htm';
 url2 = 'http://en.hitskin.com/search-a-skin/360-elite-126262.htm';
 url3 = 'http://en.hitskin.com/search-a-skin/ipvista-138261.htm';

 alt1 = new Image(); alt1.alt = 'Black Gold';
 alt2 = new Image(); alt2.alt = '360 Elite';
 alt3 = new Image(); alt3.alt = 'IP Vista';
 
 var nn = 1;
 
 var key = 0;
 
 function change_img() {
  if (key == 0) {
  key = 1;
  } else if (document.all) {
  document.getElementById("pic").filters[0].Apply();
  document.getElementById("pic").filters[0].Play(duration = 2);
  }
  eval('document.getElementById("pic").src=img' + nn + '.src');
  eval('document.getElementById("url_theme").href=url' + nn);
  eval('document.getElementById("pic").alt=alt' + nn + '.alt');
  if (nn == 1) {
  document.getElementById("url_theme").target = "_blank";
  document.getElementById("url_theme").style.cursor = "pointer";}
  else {
  document.getElementById("url_theme").target = "_blank"
  document.getElementById("url_theme").style.cursor = "pointer"
  }
  for ( var i = 1; i <= counts; i++) {
  document.getElementById("xxjdjj" + i).className = 'axx';
  }
  document.getElementById("xxjdjj" + nn).className = 'bxx';
  nn++;
  if (nn > counts) {
  nn = 1;
  }
  tt = setTimeout('change_img()', 7000);
 }
 
 function changeimg(n) {
  nn = n;
  window.clearInterval(tt);
  change_img();
 }

 function ImageShow() {
  document.write('<div class="picshow_main">');
  document.write('<div><a id="url_theme"><img id="pic" class="imgbig" /></a></div>');
  document.write('<div class="picshow_change">');
  for ( var i = 0; i < counts; i++) {
  document.write('<a href="javascript:changeimg(' + (i + 1)
    + ');" id="xxjdjj' + (i + 1)
    + '" class="axx" target="_self"><img src="' + smallImg[i]
    + '"></a>');
  }
  document.write('</div></div>');
  change_img();
 }
</script>

<script language="javascript" type="text/javascript">
 ImageShow();
</script>

Source : http://help.forumotion.com/t78823-slideshow-code?highlight=%2Bslideshow

3code for slideshow Empty Re: code for slideshow Sat Jul 27, 2013 11:34 am

Lovely King

Lovely King
User


It is too small is there any code for another slideshow

http://topyouth.gamerzfun.com

4code for slideshow Empty Re: code for slideshow Sat Jul 27, 2013 3:35 pm

Gamrpro

Gamrpro
User


I agree. It is a bit small.

But, is there an way to edit the pixels for this HTML?

I've used slideshows before but I used the code in Dreamweaver, which I can't use anymore.

5code for slideshow Empty Re: code for slideshow Sat Jul 27, 2013 3:53 pm

Sasori

Sasori
Administrator


6code for slideshow Empty Re: code for slideshow Sun Jul 28, 2013 2:31 am

Lovely King

Lovely King
User


thanks this one works but can i add link on the pictures ?


Code:
<link rel="stylesheet" href="http://static.tumblr.com/hhedat8/8cbmksz3o/nivo-slider.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="http://static.tumblr.com/hhedat8/NnQmksygd/bar.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="http://static.tumblr.com/hhedat8/J4Bmksyye/default.css" type="text/css" media="screen" />

    <center><div id="wrapper"><div class="slider-wrapper theme-default"><div id="slider" class="nivoSlider">

    <img src="http://img526.imageshack.us/img526/6725/moonm.png" title="This displays the caption 1." />
    <img src="http://img803.imageshack.us/img803/1818/villageq.png" title="This displays the caption 2." />
    <img src="http://img208.imageshack.us/img208/444/kcibrfilms.png" title="This displays the caption 3." />
    <img src="http://img267.imageshack.us/img267/5899/dfghje.png" title="This displays the caption 4." />
    <img src="http://img22.imageshack.us/img22/6408/cartere.png" title="This displays the caption 5." />
    <img src="http://img855.imageshack.us/img855/1989/spawnh.png" title="This displays the caption 6." />
    <img src="http://img268.imageshack.us/img268/4659/meowys.png" title="This displays the caption 7." /><img src="http://img811.imageshack.us/img811/9466/cathedral.png" title="This displays the caption 8." /><img src="http://img51.imageshack.us/img51/4452/gatob.png" title="This displays the caption 9." />
    <img src="http://img845.imageshack.us/img845/5937/kittyr.png" title="This displays the caption 10." />
    <img src="http://imageshack.us/a/img109/2121/hubz.png" title="This displays the caption 11." />
    <img src="http://img32.imageshack.us/img32/631/thanksp.png" title="This displays the caption 12." />
        </div>
        </div>
        </div>
        </center>

    <script src="http://static.tumblr.com/hhedat8/NqOmksx73/jquery.nivo.slider.js" type="text/javascript"></script>
        <script type="text/javascript">
        jQuery(window).load(function() {
            jQuery('#slider').nivoSlider();
        });
    </script>

http://topyouth.gamerzfun.com

7code for slideshow Empty Re: code for slideshow Sun Jul 28, 2013 3:18 am

Sasori

Sasori
Administrator


You have that on the script :
Code:
 <img src="http://img526.imageshack.us/img526/6725/moonm.png" title="This displays the caption 1." />


Just replace with:

Code:
<a href="LINK">  <img src="http://img526.imageshack.us/img526/6725/moonm.png" title="This displays the caption 1." /></a>

8code for slideshow Empty Re: code for slideshow Sun Jul 28, 2013 3:21 am

Lovely King

Lovely King
User


thanks can i manage the height and the width

http://topyouth.gamerzfun.com

9code for slideshow Empty Re: code for slideshow Sun Jul 28, 2013 3:40 am

Sasori

Sasori
Administrator


This script wasn't made by me and don't know all about him , and you aren't very explicit .

10code for slideshow Empty Re: code for slideshow Sun Jul 28, 2013 3:47 am

Lovely King

Lovely King
User


ok solved

http://topyouth.gamerzfun.com

11code for slideshow Empty Re: code for slideshow Sun Jul 28, 2013 4:05 am

Sasori

Sasori
Administrator


This topic is solved , I will move now at Solved Database , if you have more problems , we are here to help you !

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum