prjerem


stáhnout snippet
zobrazení: SyntaxHighlighter | GeSHi | Holý text
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="EN">                           
    <head>                                                                      
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />   
        <title>MOre SIgnal LEss NOise</title>                                   
        <style type="text/css">                                                 
            html {overflow: auto;}                                              
            html, body, div, iframe {margin: 0px; padding: 0px; height: 100%; border: none;}
            iframe {display: block; width: 100%; border: none; overflow-y: auto; overflow-x: hidden;}
        </style>                                                                
    </head>                                                                     
    <body>                                                                      
        <script src="jquery-1.7.min.js"></script>                               
        <iframe id="tree" name="tree" src="http://news.ycombinator.com" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" scrolling="auto"
            beforeunload="alert('lalal')"                                       
            ></iframe>                                                          
                                                                                
        <script>                                                                
            /*$('#tree').load(function(){                                       
                $('#tree').contents().find('body').html('Hey, i`ve changed content of <body>! Yay!!!');
            });                                                                 
            /*$(document).ready(function() {                                    
                $("#tree").contents().find("a").click(function(event) {         
                                                                                
                    alert("Thanks for visiting!");                              
                });                                                             
            });*/                                                               
        </script>                                                               
    </body>                                                                     
</html>


javascript 30 řádků | 2011-11-05 15:07:31