![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 190 Pomógł: 1 Dołączył: 20.05.2005 Skąd: Poznań Ostrzeżenie: (0%) ![]() ![]() |
Witam!
Usiluje napisac sobie obiekt sluzacy do przesuwania tekstu wewnatrz diva. Oto zaczatki kodu:
Potem sobie to uruchamiam:
Problem w tym, ze w linii gdzie jest setInterval() konsola js w Firefoksie wyrzuca blad: Cytat Błąd: useless setInterval call (missing quotes around argument?) Jak zamiast this.nextStep dam nextStep, to pisze ze nie ma takiej funkcji... Co jest zle? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Przyjaciele php.pl Postów: 2 258 Pomógł: 16 Dołączył: 21.09.2004 Skąd: Kielce Ostrzeżenie: (0%) ![]() ![]() |
Zrób taki trik (IMG:http://forum.php.pl/style_emoticons/default/snitch.gif)
Kod this.startScrollNow = function(){
var div = document.getElementById(this.divId); var obj = this; //div.scrollLeft = 0; this.interval = setInterval(function(){ obj.nextStep() }, 25); // tu zglasza blad } |
|
|
![]() ![]() |
![]() |
Aktualny czas: 5.10.2025 - 12:30 |