imho.ws |
![]() |
![]() |
![]() |
# 1 |
Guest
Сообщения: n/a
|
![]()
Привет всем!
Есть ли способ устроит подручними средствами слидешоw в wебсайте? Нужно что-то простое - я сам технарь, но босс решил что я и за wеб мастера проканаю:роw: Буду очень благодарен если кто обяснить как устроит такое чудо с помошю фронтпаге или дреамwеавер!!!! Заранее спасибо!!!!!!!! |
![]() |
# 4 |
Guest
Сообщения: n/a
|
Я спросил ешйе на одном форуме и мне подарили скрипт - он работает. Так что если кому интересно, тогда пожалуйста:
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> |