Просмотр полной версии : Slideshow!
volkovalexander
28.03.2003, 16:19
Привет всем!
Есть ли способ устроит подручними средствами слидешоw в wебсайте? Нужно что-то простое - я сам технарь, но босс решил что я и за wеб мастера проканаю:роw:
Буду очень благодарен если кто обяснить как устроит такое чудо с помошю фронтпаге или дреамwеавер!!!!
Заранее спасибо!!!!!!!!
самоте простое делать несколько страниц.. и автоматический переход....
или всё делать в JS... предварительно пригрузив картинки...
или во флеше.. это лучше всего и проще
volkovalexander
28.03.2003, 16:49
самоте простое делать несколько страниц.. и автоматический переход.
Стасик, спасибо!!! А как автоматический переход сделать?
volkovalexander
28.03.2003, 18:28
Я спросил ешйе на одном форуме и мне подарили скрипт - он работает. Так что если кому интересно, тогда пожалуйста:
Try this javascript. It is easy to modify for your own needs. Basic instructions are included in the code.
<!-- Start of Image Slideshow 2000 Script -->
<!-- Display your images on your site in a new window in a slideshow fasion. -->
<!-- Instructions:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var n = 0;
timedelay = 3; // 3 secs between pics
timedelay *= 1000;
windowprops = "top=250,left=15,width=200,height=200"; // customize the popup window here
var imgs = new Array();
imgs[0] = "http://www.your-site.com/images/image1.gif";
imgs[1] = "http://www.your-site.com/images/image2.gif";
imgs[2] = "http://www.your-site.com/images/image3.gif";
imgs[3] = "http://www.your-site.com/images/image4.gif";
var page = new Array();
page[0] = "http://www.your-site.com/page1.html";
page[1] = "http://www.your-site.com/page2.html";
page[2] = "http://www.your-site.com/page3.html";
page[3] = "http://www.your-site.com/page4.html";
function hook() {
var p = (n == 0) ? page[page.length-1] : page[n-1];
window.open(p,"",windowprops);
// or, instead of opening a new window,
// send them to the new page instead with:
// document.location.href = p;
}
function rotate() {
document.picform.slideshow.src = imgs[n];
(n == (imgs.length - 1)) ? n = 0 : n++;
window.setTimeout("rotate()", timedelay);
}
window.onload = rotate;
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<center>
<form name=picform>
<a href="javascript:hook();"><img name=slideshow src="pic.gif"></a>
</form>
</center>
прикол в том, что они не подгружаются сразу
Такая фишка есть в фотошопе. File-> Automate->WebPhotoGallery и выбираешь директорию из которой черпать фотки и style "Vertical Slide Show1 или 2".
vBulletin® v3.8.5, Copyright ©2000-2024, Jelsoft Enterprises Ltd.