Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Skrypt przesuwania tekstu
tajniak_c
post 12.11.2010, 11:50:59
Post #1





Grupa: Zarejestrowani
Postów: 14
Pomógł: 0
Dołączył: 14.08.2010

Ostrzeżenie: (0%)
-----


Hej! Poszukuje skryptu do przesuwania tekstu. Coś na styl animacji w HTML ale coś precyzyjniejszego. Dobrze byłoby jakby po najechaniu na tą ramkę/diva czy cokolwiek tekst zatrzymywał się.
Go to the top of the page
+Quote Post
flashdev
post 12.11.2010, 12:12:51
Post #2





Grupa: Zarejestrowani
Postów: 812
Pomógł: 117
Dołączył: 2.12.2008

Ostrzeżenie: (10%)
X----


Myślę, że tutaj coś znajdziesz.


--------------------
Go to the top of the page
+Quote Post
f(x)
post 12.11.2010, 13:50:47
Post #3





Grupa: Zarejestrowani
Postów: 40
Pomógł: 1
Dołączył: 29.10.2010

Ostrzeżenie: (10%)
X----


Ajax
Go to the top of the page
+Quote Post
wookieb
post 12.11.2010, 13:55:20
Post #4





Grupa: Moderatorzy
Postów: 8 989
Pomógł: 1550
Dołączył: 8.08.2008
Skąd: Słupsk/Gdańsk




A co z tym wspólnego ma ajax? Nic. Więc zamiast nabijać posty zachowaj takie bezmyślne teksty dla Siebie.

Ten post edytował wookieb 12.11.2010, 13:55:52


--------------------
Go to the top of the page
+Quote Post
nekomata
post 16.11.2010, 05:30:03
Post #5





Grupa: Zarejestrowani
Postów: 314
Pomógł: 44
Dołączył: 12.11.2010
Skąd: UK

Ostrzeżenie: (0%)
-----


Kurde drugi post dzisiaj a te same linki pasuja...
Marqee wspomagane jqery
Albo
jScroller
Go to the top of the page
+Quote Post
tajniak_c
post 20.11.2010, 23:17:34
Post #6





Grupa: Zarejestrowani
Postów: 14
Pomógł: 0
Dołączył: 14.08.2010

Ostrzeżenie: (0%)
-----


Pobrałem ten jQuery Marquee i wystąpił mi konflikt z LightBoxem. Próbowałem to jakoś załagodzić i przesuwanie tekstu działa ale lightbox nie:
  1. <script type="text/javascript">
  2. <!--
  3. var funkcja1 = {};
  4. funkcja1.query = jQuery.noConflict(true);
  5. funkcja1.query(function ()
  6. {
  7. funkcja1.query('div.pasek_sponsorzy marquee').marquee('pointer').mouseover(function () {
  8. funkcja1.query(this).trigger('stop');
  9. }).mouseout(function () {
  10. funkcja1.query(this).trigger('start');
  11. }).mousemove(function (event) {
  12. if (funkcja1.query(this).data('drag') == true) {
  13. this.scrollLeft = $(this).data('scrollX') + (funkcja1.query(this).data('x') - event.clientX);
  14. }
  15. }).mousedown(function (event) {
  16. funkcja1.query(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
  17. }).mouseup(function () {
  18. funkcja1.query(this).data('drag', false);
  19. });
  20. });
  21. //-->
  22. </script>


Cała deklaracja skryptów w HEAD:
  1. <script src="skrypt/jquery-1.2.6.js" type="text/javascript"></script>
  2.  
  3. <script type="text/javascript" src="skrypt/prototype.js"></script>
  4.  
  5. <script type="text/javascript" src="skrypt/scriptaculous.js?load=effects,builder"></script>
  6.  
  7. <script type="text/javascript" src="skrypt/lightbox.js"></script>
  8.  
  9. <script src="skrypt/jquery.marquee.js" type="text/javascript"></script>
  10.  
  11. <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
  12.  
  13. <script type="text/javascript">
  14. <!--
  15. var funkcja1 = {};
  16. funkcja1.query = jQuery.noConflict(true);
  17. funkcja1.query(function ()
  18. {
  19. funkcja1.query('div.pasek_sponsorzy marquee').marquee('pointer').mouseover(function () {
  20. funkcja1.query(this).trigger('stop');
  21. }).mouseout(function () {
  22. funkcja1.query(this).trigger('start');
  23. }).mousemove(function (event) {
  24. if (funkcja1.query(this).data('drag') == true) {
  25. this.scrollLeft = $(this).data('scrollX') + (funkcja1.query(this).data('x') - event.clientX);
  26. }
  27. }).mousedown(function (event) {
  28. funkcja1.query(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
  29. }).mouseup(function () {
  30. funkcja1.query(this).data('drag', false);
  31. });
  32. });
  33. //-->
  34. </script>
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 6.07.2025 - 20:48