TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,976
  • Latest: aicrazy
Stats
  • Total Posts: 196,164
  • Total Topics: 21,352
  • Online today: 625
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 284
  • Total: 285
  • @rjen

Slideshow help

Started by RaXavier, February 14, 2011, 11:11:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RaXavier

Quote from: Ã,©Lesmond on February 15, 2011, 10:01:55 PM
Ok I have got this to work in a html/javascript frontpage block.

You will need to un-zip the attached file, and place the folder and it content to your forum root.

heres the code you need, place this in a html/javascript block, preferably a frontpage block.

<style>
#slideshow {list-style:none; color:#fff}
#slideshow span {display:none}
#wrapper {width:506px; margin:50px auto; display:none}
#wrapper * {margin:0; padding:0}
#fullsize {position:relative; width:500px; height:300px; padding:2px; border:1px solid #ccc; background:#000}
#information {position:absolute; bottom:0; width:500px; height:0; background:#000; color:#fff; overflow:hidden; z-index:200; opacity:.7; filter:alpha(opacity=70)}
#information h3 {padding:4px 8px 3px; font-size:14px; color:#fff}
#information p {padding:0 8px 8px}
#image {width:500px}
#image img {position:absolute; z-index:25; width:auto}
.imgnav {position:absolute; width:25%; height:306px; cursor:pointer; z-index:150}
#imgprev {left:0; background:url(files/left.gif) left center no-repeat}
#imgnext {right:0; background:url(files/right.gif) right center no-repeat}
#imglink {position:absolute; height:306px; width:100%; z-index:100; opacity:.4; filter:alpha(opacity=40)}
.linkhover {background:url(files/link.gif) center center no-repeat}
#thumbnails {margin-top:15px}
#slideleft {float:left; width:20px; height:81px; background:url(files/scroll-left.gif) center center no-repeat; background-color:#222}
#slideleft:hover {background-color:#333}
#slideright {float:right; width:20px; height:81px; background:#222 url(files/scroll-right.gif) center center no-repeat}
#slideright:hover {background-color:#333}
#slidearea {float:left; position:relative; width:456px; margin-left:5px; height:81px; overflow:hidden}
#slider {position:absolute; left:0; height:81px}
#slider img {cursor:pointer; border:1px solid #666; padding:2px}</style>

<ul id="slideshow">
<li>
<h3>TinySlideshow v1</h3>
<span>files/orange-fish.jpg</span>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ut urna. Mauris nulla. Donec nec mauris. Proin nulla dolor, bibendum et, dapibus in, euismod ut, felis.</p>
<a href="#"><img src="files/orange-fish-thumb.jpg" alt="Orange Fish" /></a>
</li>
<li>
<h3>Sea Turtle</h3>
<span>files/sea-turtle.jpg</span>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ut urna. Mauris nulla. Donec nec mauris. Proin nulla dolor, bibendum et, dapibus in, euismod ut, felis.</p>
<img src="files/sea-turtle-thumb.jpg" alt="Sea Turtle" />
</li>
<li>
<h3>Red Coral</h3>
<span>files/red-coral.jpg</span>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ut urna. Mauris nulla. Donec nec mauris. Proin nulla dolor, bibendum et, dapibus in, euismod ut, felis.</p>
<a href="#"><img src="files/red-coral-thumb.jpg" alt="Red Coral" /></a>
</li>
<li>
<h3>Coral Reef</h3>
<span>files/coral-reef.jpg</span>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ut urna. Mauris nulla. Donec nec mauris. Proin nulla dolor, bibendum et, dapibus in, euismod ut, felis.</p>
<a href="#"><img src="files/coral-reef-thumb.jpg" alt="Coral Reef" /></a>
</li>
<li>
<h3>Blue Fish</h3>
<span>files/blue-fish.jpg</span>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ut urna. Mauris nulla. Donec nec mauris. Proin nulla dolor, bibendum et, dapibus in, euismod ut, felis.</p>
<img src="files/blue-fish-thumb.jpg" alt="Blue Fish" />
</li>
<li>
<h3>TinySlideshow v.2</h3>
<span>files/yellow-fish.jpg</span>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ut urna. Mauris nulla. Donec nec mauris. Proin nulla dolor, bibendum et, dapibus in, euismod ut, felis.</p>
<a href="#"><img src="files/yellow-fish-thumb.jpg" alt="Yellow Fish" /></a>
</li>
<li>
<h3>Squid</h3>
<span>files/squid.jpg</span>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ut urna. Mauris nulla. Donec nec mauris. Proin nulla dolor, bibendum et, dapibus in, euismod ut, felis.</p>
<a href="#"><img src="files/squid-thumb.jpg" alt="Squid" /></a>
</li>
<li>
<h3>Small Fish</h3>
<span>files/small-fish.jpg</span>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ut urna. Mauris nulla. Donec nec mauris. Proin nulla dolor, bibendum et, dapibus in, euismod ut, felis.</p>
<a href="#"><img src="files/small-fish-thumb.jpg" alt="Small Fish" /></a>
</li>
</ul>
<div id="wrapper">
<div id="fullsize">
<div id="imgprev" class="imgnav" title="Previous Image"></div>
<div id="imglink"></div>
<div id="imgnext" class="imgnav" title="Next Image"></div>
<div id="image"></div>
<div id="information">
<h3></h3>
<p></p>
</div>
</div>
<div id="files">
<div id="slideleft" title="Slide Left"></div>
<div id="slidearea">
<div id="slider"></div>
</div>
<div id="slideright" title="Slide Right"></div>
</div>
</div>
<script type="text/javascript" src="files/compressed.js"></script>
<script type="text/javascript">
$('slideshow').style.display='none';
$('wrapper').style.display='block';
var slideshow=new TINY.slideshow("slideshow");
window.onload=function(){
slideshow.auto=true;
slideshow.speed=5;
slideshow.link="linkhover";
slideshow.info="information";
slideshow.thumbs="slider";
slideshow.left="slideleft";
slideshow.right="slideright";
slideshow.scrollSpeed=4;
slideshow.spacing=5;
slideshow.active="#fff";
slideshow.init("slideshow","image","imgprev","imgnext","imglink");
}
</script>


still getting the prob of the image moving to the right when clicked on the arrow?

RaXavier

This one seems weird on the site, images load funny and off center....
I found a Jquery one, which is said to work better. but im totally lost here since the tutorial seems for those who know how to code :) any chance u can take a look?
http://spaceforaname.com/galleryview

Lesmond

Ok I took a look at this one, was hard to implement though, but got it going,  I had to remove the .css it messed with the theme.
http://forums-4-free.info/index.php

RaXavier

Quote from: Ã,©Lesmond on February 19, 2011, 03:02:01 AM
Ok I took a look at this one, was hard to implement though, but got it going,  I had to remove the .css it messed with the theme.
http://forums-4-free.info/index.php
all i see is a blank scrolling bloc? thanks for helping ^^

RaXavier

Quote from: Ã,©Lesmond on February 19, 2011, 03:02:01 AM
Ok I took a look at this one, was hard to implement though, but got it going,  I had to remove the .css it messed with the theme.
http://forums-4-free.info/index.php

checking daily but still a blank scrolling bloc :(

Lesmond

Shows up fine for me even logged out!



RaXavier

Quote from: RaXavier on February 20, 2011, 12:13:33 AM
Quote from: Ã,©Lesmond on February 20, 2011, 12:09:46 AM
Shows up fine for me even logged out!




shows up in ff and explorer but not in chrome... can i have the script u used plz

Lesmond

Here you go, plus you will need to extract the 2 folders to your forum root

<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="js/jquery.galleryview-1.1.js"></script>
<script type="text/javascript" src="js/jquery.timers-1.1.2.js"></script>


<!-- InstanceBeginEditable name="head" -->
<script type="text/javascript">
$(document).ready(function(){
$('#photos').galleryView({
panel_width: 800,
panel_height: 300,
frame_width: 100,
frame_height: 100
});
});
</script>
<!-- InstanceEndEditable -->

<!-- InstanceBeginEditable name="ContentRegion" -->
<center>
<h2>Photo Gallery </h2>

<div id="photos" class="galleryview">
  <div class="panel">

     <img src="img/01.jpg" />
    <div class="panel-overlay">
      <h2 align="left"><font color="#FFFFFF" size="4">Effet du soleil sur le paysage</h2>
     
    </div>
  </div>

  <div class="panel">
     <img src="img/02.jpg" />
    <div class="panel-overlay">
      <h2 align="left"><font color="#FFFFFF" size="4">Eden</h2>
     
    </div>

  </div>
  <div class="panel">
     <img src="img/03.jpg" />
    <div class="panel-overlay">
      <h2 align="left"><font color="#FFFFFF" size="4">Snail on the Corn</h2>
     

    </div>
  </div>
  <div class="panel">
     <img src="img/04.jpg" />
    <div class="panel-overlay">
      <h2 align="left"><font color="#FFFFFF" size="4">Flowers</h2>
     

    </div>
  </div>
  <div class="panel">
     <img src="img/06.jpg" />
    <div class="panel-overlay">
      <h2 align="left"><font color="#FFFFFF" size="4">Alone Beach</h2>
     

    </div>
  </div>
  <div class="panel">
     <img src="img/05.jpg" />
    <div class="panel-overlay">
      <h2 align="left"><font color="#FFFFFF" size="4">Sunrise Trees</h2>
     

    </div>
  </div>
  <div class="panel">
     <img src="img/07.jpg" />
    <div class="panel-overlay">
      <h2 align="left"><font color="#FFFFFF" size="4">Waterfall</h2>
     

    </div>
  </div>
  <div class="panel">
     <img src="img/08.jpg" />
    <div class="panel-overlay">
      <h2 align="left"><font color="#FFFFFF" size="4">Death Valley</h2>
     

    </div>
  </div>
  <ul class="filmstrip">
    <li><img src="img/frame-01.jpg" alt="Effet du soleil" title="Effet du soleil" /></li>
    <li><img src="img/frame-02.jpg" alt="Eden" title="Eden" /></li>
    <li><img src="img/frame-03.jpg" alt="Snail on the Corn" title="Snail on the Corn" /></li>
    <li><img src="img/frame-04.jpg" alt="Flowers" title="Flowers" /></li>
    <li><img src="img/frame-06.jpg" alt="Alone Beach" title="Alone Beach" /></li>
    <li><img src="img/frame-05.jpg" alt="Sunrise Trees" title="Sunrise Trees" /></li>

    <li><img src="img/frame-07.jpg" alt="Waterfall" title="Waterfall" /></li>
    <li><img src="img/frame-08.jpg" alt="Death Valley" title="Death Valley" /></li>
  </ul>
</div>
<div style="position: absolute; z-index: 1000; cursor: pointer; top: 304px; left: 74px; height: 98px; width: 98px; border: 2px solid white;" id="pointer">
<img style="position: absolute; z-index: 1001; top: -12px; left: 40px;" src="img/pointer.png"></div>
<img style="position: absolute; cursor: pointer; top: 344px; right: 43px;" src="img/next.png" class="nav-next">
<img style="position: absolute; cursor: pointer; top: 344px; left: 43px;" src="img/prev.png" class="nav-prev"></div>

</center>

RaXavier

#19
TYVM for the help but it doesnt work :P so im giving up on it. I REALLY appreciate your help

This website is proudly hosted on Crocweb Cloud Website Hosting.