opracowałam stronę opartą o Państwa system Quick.CMS, kazda strona ma przypisany inny nagłowek. Łącznie ok 10 nagłówków. Chciałabym aby kazda strona - miała rotujący co kilka sekund w losowej kolejności nagłowek z 10 ustalonych: www.aktywna-ksiegowa.pl Proszę o pomoc w tej kwestii, najlepiej kod html. Jaki plik i jaki blok kodu mam zmienić. Pozdrawiam i czekam na pomoc.
prosta sprawa, moze nie bedzie rotacji losowej ale statyczna - chyba wystarczy http://www.bretteleben.de/lang-en/javascript/slideshow/-slideshow-beispiel-02.html tu jest wszystko
samą funkcje dodawałem do pliku /core/common.js - na końcu
a to <div id="slideshow"> </div> w templates/container.tpl w sekcji zaraz po <div id="head2"> usuwając reszte
wazne zeby podać taką samą nazwe z konca pliku /core/common.js
ponizej trzeba wpisac wszystkie pliki rotacyjne WAZNE !!! var pics2=new Array ('galeria/pic01.jpg', 'galeria/pic02.jpg','galeria/pic03.jpg'); oraz var be_1= new be_slideshow("1",pics2,"slideshow2",950,198,"#323637",2,1,15,"y","n",& quot;n");
/|\ | tutaj jest nazwa - slideshow2 jako nazwa div w templates/container.tpl w sekcji zaraz po <div id="head2"> inaczej nie zadziała <div id="slideshow2"> </div> zamiast loga
nie działa cos u mnie, albo ja nie wpisałam wszystkiego, jestem poczatkująca w tym temacie.
Co zrobiłam: 0) umiesciłam nagłówki w katalogu: templates/img/header.jpg.... do header9.jpg 1) dodałam na samym końcu pliku core/common.js funkcję zgodnie z ponizszym kodem: ".... } } (****koniec teskstu pliku)
<script type="text/javascript"> var pics1=new Array ('img/header.jpg', 'img/header1.jpg', 'img/header2.jpg', 'img/header3.jpg', 'img/header4.jpg', 'img/header5.jpg', 'img/header6.jpg', 'img/header7.jpg', 'img/header8.jpg', 'img/header9.jpg'); var buttons1=new Array ('bwd.png', 'start.png', 'stop.png', 'fwd.png'); var be_0= new be_slideshow("0",pics1,"slideshow2",750,220,"#ccc",2,1,15,"n","n",&quo t;y",buttons1); </script>
2. dopisałam w pliku templates/container.tpl w pozycji: <div id="head2"> <div id="slideshow2"> </div> 3. Utworzyłam plik be_slide.js i umiesciłam go w katalogu core
<script type="text/javascript" src="be_slide.js"> //*****parameters to set*****
var def_imges=new Array ('files/header.jpg', 'files/header1.jpg', 'files/header2.jpg', 'files/header3.jpg', 'files/header4.jpg', 'files/header5.jpg', 'files/header6.jpg', 'files/header7.jpg', 'files/header8.jpg', 'files/header9.jpg'); //In this array, set the pictures you want the slideshow to display.
var def_divid="slideshow"; //The IDENTITY of the DIV-Containers, //we created to hold the slideshow
var def_picwid=750; //The width of the widest picture in pixel. //Notice: The script does not scale your pictures!
var def_pichei=220; //The height of the highest picture in pixel. //Notice: The script does not scale your pictures!
var def_backgr="#eeeeee"; //The background-color of the slideshow. It is of importance //if you have pictures in your set, that do not fit the values //set above for width and height.
var def_sdur=3; //The time, a picture is shown between two transitions in seconds.
var def_fdur=3; //The time the transition should take
var def_steps=20; //The number of steps to blend from 0-100. //A value between 1-100, the higher the value // the smoother the transition.
var def_startwhen="y"; //Should the slideshow start automatically? //"y" for Yes, "n" for No
var def_shuffle="y"; //Should we start with a random picture? //"y" for Yes, "n" for No
var def_showcontr="y"; //Should we show control-elements? //"y" for Yes, "n" for No
var def_contr=new Array('bwd.png','start.png','stop.png','fwd.png'); //if you show control elements, you may choose between textlinks //and buttons. Into this array therefor insert either the text //you want to be displayed or the path to the image you want to //be used. If the script finds either .jpg or .gif or .png as the //ending of your input, it will display the image automatically. //The sort order of the elements displayed and therefor within this //array is: BACK - START - STOP - FWD </script>
Nie wiem dlaczego nie działa, ani z nowym przedrostkiem do zdjec tempates/img.... ani tez gdy stwarzam na dysku głównym katalog img oddzielny i tam te zdjecia banerowe..... ach :-( próbowałam tez z dopisanie delegacji w container.tpl dla pliku be_slide.js również nic ...... moze ulatwiłby nam bezposredni kontak? biuro@aktywna-ksiegowa.pl
Dziekuje i czekam na pomoc, byłabym wdzieczna.
Ps. A moze ten nagłówek w plikach swf? moze bedzie łatwiej?
flash jest stosunkowo prosty ale pozostałbym przy tym rozwiązaniu z java dlatego ze łatwiej bedzie zmieniać obrazki - wystarczy tylko zamienic pliki jpg i juz
a flasha bedzie trzeba całego przebudowywać do tego flash przysłania lightboxa - dla galerii