Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>Untitled Document</title>
- </head>
- <body>
- <!-- Comandos JavaScript
- \n \r - Mudança de linha universal
- \t - Tab
- \f - Form fid Impressão
- \b - apagar para tráz
- -->
- <!--
- <script type="text/javascript">
- document.write("<span style='color:red;background-color:yellow';>"+prompt("Qual o \"Numero\"\?")+"</span>");
- </script>
- -->
- <div><h1 id="ssss" class="ss" style="color:blue;">TRETRE</h1><h1 id="ssss" class="ss" style="color:blue;">XPTO</h1></div>
- <script type="text/javascript">
- m=document.getElementsByTagName("div")[0].childNodes;
- for(c=0;c<m.length;c++){
- document.write(m[c].nodeName+"<br/>");
- }
- alert(document.getElementById("ssss").className+"\n"+document.getElementById("ssss").innerHTML+"\n"+document.getElementById("ssss").style.color);
- alert(document.getElementsByTagName("div")[0].innerHTML);
- document.getElementsByTagName("div")[0].innerHTML+="<img src='Flag1280x1024.jpg' width='300'/>";
- zz=document.getElementsByTagName("div")[0].getElementsByTagName("h1");
- for(a=0;a<zz.length;a++){
- zz[a].style.color="red";
- zz[a].style.backgroundColor="yellow";
- zz[a].style.borderRadius=50+"%"
- }
- //r=prompt("Qual a percentagem?");
- r=0;
- var int=self.setInterval("radius()",prompt("qual a velocidade"));
- function radius(){
- if (r<100){
- r++;
- document.getElementsByTagName("img")[0].style.borderRadius=r+"%";
- }else{
- window.clearInterval(int);
- }
- }
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment