Warning: include(.../cache/template/template63867.php): failed to open stream: No such file or directory in /home/codingta/public_html/includes/vb5/template.php on line 328 Warning: include(): Failed opening '.../cache/template/template63867.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/codingta/public_html/includes/vb5/template.php on line 328 Quick page navigation with html5 slider and jquery + php - Coding-Talk

Quick page navigation with html5 slider and jquery + php

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • script Quick page navigation with html5 slider and jquery + php

    Code:
    <html>
        <head>
            <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
        </head>
        <body>
            <?php
                $maxPageNumber = 10;
                $currentPageNumber = 5;
                echo '1 <input type="range" min="1" max="'.$maxPageNumber.'" id="pagerange" value="'.$currentPageNumber.'"/> ' + $maxPageNumber;
            ?>
            <script type="text/javascript">    
                $("#pagerange").change(function(){
                      window.location.replace("https://sitename.con/page/" + $(this).val());
                });
            </script>
        </body>
    </html>
Working...
X