$query_string = "";
if ($_POST) { $kv = array();
foreach ($_POST as $key => $value) { $kv[] = "$key=$value"; }
$query_string = join("&", $kv);}
else { $query_string = $_SERVER['QUERY_STRING'];}
echo $query_string;
$(document).ready(function() { $('#btn1666').hover(function(){ $(this).remove();
$.getJSON('json/test.json', function(data) {for(var i=0;i<data.users.length;i++){
$('.canal').append('<input type=\"image\" name=\"message\" value=\"'+data.users[i].id+ '\" src=\"'+data.users[i].num+'\"> ' + data.users[i].text + ' <br><br><br>' );
}
if( i>1){ $('.canal2').html('<br>'+i+ ' - Ролики. Больше... Жми!<br><hr>' ); }
} )} );return false;});
$(document).ready(function() { $('#btn1666').hover(function(){ $(this).remove();
$.getJSON('json/test.json', function(data) {for(var i=0;i<data.users.length;i++){
$('.canal').append('<input type=\"image\" name=\"message\" value=\"'+data.users[i].id+ '\" src=\"'+data.users[i].num+'\"> ' + data.users[i].text + '<br><br><br>' );
}
if( i>1){ $('.canal2').html('<br>'+i+ ' - Ролики. Больше... Жми!<br><hr>' ); }
} )} );return false;});
<?php
$feedURL = "http://ax.itunes.apple.com/WebObjects/MZStore.woa/wpa/MRSS/newreleases/limit=25/rss.xml";
$xml = simplexml_load_file($feedURL);
$i = 1;
foreach ($xml->channel->item as $item) {
$title = $item->title;
echo '<option value="http://gdata.youtube.com/feeds/base/videos/-/Music?q=',$title,'&orderby=published">',$title,'</option>';
$i++;
if ($i >25) break;
} ;
?>
<script type="text/javascript">
$(document).ready(function() { $('#btn1666').hover(function(){
$.ajax({ url: "canal22.php",cache: false,success: function(html){ $("#con").html(html); }
}); }); }); </script><div id="con"><a href="#коллекция" id="btn1666">коллекция каналов и роликов</a></div>
<!DOCTYPE html>
<html>
<body>
<p id="demo"></p>
<script>
var w = window.innerWidth
|| document.documentElement.clientWidth
|| document.body.clientWidth;
var h = window.innerHeight
|| document.documentElement.clientHeight
|| document.body.clientHeight;
var x = document.getElementById("demo");
x.innerHTML = "Browser inner window width: " + w + ", height: " + h + ".";
</script>
</body>
</html>