Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Automatyczne otwieranie strony w zależności od slidera
marcinosko
post 18.10.2014, 15:44:57
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 18.10.2014

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


Witam,
potrzebuje waszej pomocy w napisaniu bądź nakierowaniu mnie jak znaleźć to co chce. Mam trzy slidery i chce żeby np. po naciśnięciu pierwszego slidera, przesunięciu go i puszczenia myszką pobrała mi się w tle konkretna strony www do zmiennej (nie zmieniając treści aktualnego widoku) . Czyli mam slider i np gdy puszczę przycisk na wartości 1 to otwiera mi się strona http://1234/1 , gdy puszcze go na wartości 2 to otwiera mi się strona http://1234/2 itd.
Na razie mam taki kod i nie wiem jak go dalej pisać żeby to spełniało taką funkcję jak chce.

  1. <script type="text/javascript">
  2. jQuery( document ).ready(function($) {
  3. $(function() {
  4. $( "#slider-range-maxr-'.$element['id'].'").slider({
  5. range: "max",
  6. min: 1,
  7. max: 100,
  8. value:'.$element['value'].',
  9. slide: function( event, ui ) {
  10. $( "#amount-'.$element['id'].'").val( ui.value );
  11. }
  12. });
  13. $( "#slider-range-maxg-'.$element['id'].'").slider({
  14. range: "max",
  15. min: 1,
  16. max: 100,
  17. value:'.$element['value'].',
  18. slide: function( event, ui ) {
  19. $( "#amount-'.$element['id'].'").val( ui.value );
  20. }
  21. });
  22. $( "#slider-range-maxb-'.$element['id'].'").slider({
  23. range: "max",
  24. min: 1,
  25. max: 100,
  26. value:'.$element['value'].',
  27. slide: function( event, ui ) {
  28. $( "#amount-'.$element['id'].'").val( ui.value );
  29. }
  30. });
  31. $( "#amount-'.$element['id'].'" ).val( $( "#slider-range-maxr-'.$element['id'].'" ).slider( "value" ) );
  32. $( "#amount-'.$element['id'].'" ).val( $( "#slider-range-maxg-'.$element['id'].'" ).slider( "value" ) );
  33. $( "#amount-'.$element['id'].'" ).val( $( "#slider-range-maxb-'.$element['id'].'" ).slider( "value" ) );
  34.  
  35.  
  36. });
  37. });
  38. </script>
  39.  
  40. <div class="progress" style="margin-top:2%;" id="slider-range-maxr-'.$element['id'].'"></div>
  41. <div class="progress" style="margin-top:1%;" id="slider-range-maxg-'.$element['id'].'"></div>
  42. <div class="progress" style="margin-top:1%;" id="slider-range-maxb-'.$element['id'].'"></div>
  43.  


Z góry dzięki za pomoc bądź jakieś wskazówki w którą stronę szukać.
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: 24.07.2025 - 19:57