Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <style>
- p {
- color: grey;
- font-style: italic;
- }
- </style>
- <script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
- <script>
- <?php $texto = "Fim"; $max = 2; ?>
- $(document).ready(function(e) {
- for(var j=0; j!=<?php echo $max;?>; j++) {
- $("body").append("<?php echo $texto.'<br>'; ?>");
- }
- });
- </script>
- </head>
- <body>
- <?php for($v = 0; $v != 10; $v ++): ?>
- <p>Olá <?php echo $v; ?></p>
- <?php endfor; ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement