Вход Регистрация
Файл: wapxl.ru/top/amcharts/plugins/responsive/examples/index.html
Строк: 120
<?php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<
html>

  <
head>
    <
meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <
title>amCharts Responsive Example</title>
    <
link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/start/jquery-ui.css"rel="stylesheet" />
    <
script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
    <
script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
    <
style>
    .
ui-resizable-helper {
        
border1px dotted gray;
    }
    .
resizable {
        
displayblock;
        
width800px;
        
height500px;
        
padding0;
        
border2px solid #ddd;
        
overflowhidden;
        
positionrelative;
    }
    
iframe {
        
width100%;
        
height100%;
    }
    
#controls {
        
background#ccc;
        
opacity0.5;
        
padding5px 8px;
        
font-size14px;
        
font-weightbold;
        
font-familyVerdana;
        
margin-bottom10px;
    }
    
#dims {
        
background#ddd;
        
color#555;
        
padding5px 8px;
        
font-size14px;
        
font-familyVerdana;
        
width100px;
        
text-aligncenter;
    }
    .
ui-resizable-se {
        
displaynone!important;
    }
    </
style>

    <
script>
    $(function () {
        $(
".resizable").resizable({
            
animatetrue,
            
animateEasing'swing',
            
animateDuration250,
            
resize: function( eventui ) {
                $(
'#dims').html(ui.size.width+'x'+ui.size.height+'px');
            }
        });
    });

    function 
setType (type) {
        $(
'#iframe').attr('src'type);
    }

    function 
reload() {
        
setType($('#type').val());
    }

    function 
resizedimdir) {
        var 
container = $('.resizable');
        if ( 
'w' == dim )
            
container.css({ 'width'container.width() + dir});
        else
            
container.css({ 'height'container.height() + dir});
        $(
'#dims').html(container.width()+'x'+container.height()+'px');
    }
    </
script>

  </
head>

  <
body>
    <
div id="controls">
      <
input type="button" value="w-" onclick="resize('w', -50);" />
      <
input type="button" value="w+" onclick="resize('w', 50);" />
      <
input type="button" value="h-" onclick="resize('h', -50);" />
      <
input type="button" value="h+" onclick="resize('h', 50);" />
      <
select id="type" onchange="setType(this.options[this.selectedIndex].value);">
        <
option value="pie1.html" selected="selected">Pie #1 (Simple w/ legend)</option>
        
<option value="pie2.html"/>Pie #2 (3D w/ legend)</option>
        
<option value="pie3.html"/>Pie #3 (several instances)</option>
        
<option value="serial1.html">Serial #1 (Area)</option>
        
<option value="serial2.html">Serial #2 (Bar &amp; Line)</option>
        
<option value="serial3.html">Serial #3 (Line w/ zoom)</option>
        
<option value="xy.html">XY</option>
        <
option value="radar.html">Radar</option>
        <
option value="gauge.html">Gauge</option>
        <
option value="funnel.html">Funnel</option>
        <
option value="gantt.html">GANTT</option>
        <
option value="stock.html">Stock</option>
        <
option value="map.html">Map</option>
      </
select>
      <
input type="button" value="reload" onclick="reload();" />
    </
div>

    <
div id="dims">800x500px</div>
    <
div class="resizable">
      <
iframe id="iframe" src="pie1.html" sytle="border: none; width: 100%; height: 100%;" frameborder="0"></iframe>
    </
div>
  </
body>

</
html>
?>
Онлайн: 3
Реклама