Файл: selemege.tk/style/themes/web/head.php
Строк: 241
<?
$set['web']=true;
//header("Content-type: application/xhtml+xml");
header("Content-type: text/html");
echo '<?xml version="1.0" encoding="utf-8"?>';
?><!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" xml:lang="ru">
<head>
<title><?echo $set['title'];?></title>
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" href="/style/themes/<?echo $set['set_them'];?>/style.css" type="text/css" />
<link rel="stylesheet" href="/style/themes/<?echo $set['set_them'];?>/tables.css" type="text/css" />
<!-- Модальное окно -->
<?
echo '<link rel="stylesheet" href="/ajax/style/style.css" type="text/css"/>
<script type="text/javascript" src="/ajax/jquery.js"></script>
<script type="text/javascript" src="/ajax/facebox.js"></script>';
echo "<script type="text/javascript">
jQuery(document).ready(function($) {
$('a[rel*=facebox]').facebox({
loading_image : '/ajax/style/icons/loading.gif',
close_image : '/ajax/style/icons/closelabel.gif'
})
})
</script>";
?>
<link rel="alternate" title="Новости RSS" href="/news/rss.php" type="application/rss+xml" />
<script src="/style/themes/<?echo $set['set_them'];?>/js.js" type="text/javascript" language="JavaScript" charset="utf-8"></script>
<!-- Диалоговое окно -->
<script type="text/javascript" src="/ajax/ajax.js"></script><script type="text/javascript" src="/ajax/form-submit.js"></script>
<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
<script src="/ajax/dialog.js"></script>
<link type="text/css" href="/ajax/style/dialog.css" rel="stylesheet" />
<script>
function showContent2(link) {
var cont = document.getElementById('contentBody');
var loading = document.getElementById('loading');
cont.innerHTML = loading.innerHTML;
var http = createRequestObject();
if( http )
{
http.open('get', link);
http.onreadystatechange = function ()
{
if(http.readyState == 4)
{
cont.innerHTML = http.responseText;
}
}
http.send(null);
}
else
{
document.location = link;
}
}
function createRequestObject()
{
try { return new XMLHttpRequest() }
catch(e)
{
try { return new ActiveXObject('Msxml2.XMLHTTP') }
catch(e)
{
try { return new ActiveXObject('Microsoft.XMLHTTP') }
catch(e) { return null; }
}
}
}
</script>
<?
// Блок для подгрузки смайлов
if (isset($user))
{
echo '<div id="dialog" title="Список смайлов">';
?>
<div id="contentBody">
</div>
<div id="loading" style="display: none">
Идет загрузка...
</div> <?
echo '</div>';
}
if (isset($user) && $webbrowser == true)
{
?><script>
function show()
{
$.ajax({
url: "/ajax/frend.ajax.php",
cache: false,
success: function(html){
$("#frends").html(html);
}
});
}
$(document).ready(function(){
show();
setInterval('show()',10000);
});
</script><div style="position:fixed; left: 10px; bottom:15px;" id="frends"></div><?
}
?>
</head>
<SCRIPT LANGUAGE="JavaScript">
<!-- ;
/*********************************************************************/
/* Rainbow Links or Text */
/* This script and many more are available free online at */
/* Usage: */
/* Insert just above end/close BODY Tag, */
/* For Links */
/* You don't need to add "onMouseover" and "onMouseout" attributes!! */
/* */
/* If you'd like to add effect to other text, then */
/* add 'onmouseover="doRainbow(this);"' and */
/* 'onmouseout="stopRainbow();"' to the target tags. */
/* */
/* This Script works with IE4,Netscape6,Mozilla browser and above, */
/* but no error occurs on other browsers. */
/*********************************************************************/
// Setting
//- SPEED CAN BE CHANGED HERE -
var rate = 25; // Increase-Decrease amount ( Higher=Faster )
// - DO NOT ALTER BELOW -
// Main routine
if (document.getElementById)
window.onerror=new Function("return true")
var objActive;
var act = 0;
var elmH = 0;
var elmS = 128;
var elmV = 255;
var clrOrg;
var TimerID;
if (document.all) {
document.onmouseover = doRainbowAnchor;
document.onmouseout = stopRainbowAnchor;
}
else if (document.getElementById) {
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
document.onmouseover = Mozilla_doRainbowAnchor;
document.onmouseout = Mozilla_stopRainbowAnchor;
}
function doRainbow(obj)
{
if (act == 0) {
act = 1;
if (obj)
objActive = obj;
else
objActive = event.srcElement;
clrOrg = objActive.style.color;
TimerID = setInterval("ChangeColor()",100);
}
}
function stopRainbow()
{
if (act) {
objActive.style.color = clrOrg;
clearInterval(TimerID);
act = 0;
}
}
function doRainbowAnchor()
{
if (act == 0) {
var obj = event.srcElement;
while (obj.tagName != 'A' && obj.tagName != 'BODY') {
obj = obj.parentElement;
if (obj.tagName == 'A' || obj.tagName == 'BODY')
break;
}
if (obj.tagName == 'A' && obj.href != '') {
objActive = obj;
act = 1;
clrOrg = objActive.style.color;
TimerID = setInterval("ChangeColor()",100);
}
}
}
function stopRainbowAnchor()
{
if (act) {
if (objActive.tagName == 'A') {
objActive.style.color = clrOrg;
clearInterval(TimerID);
act = 0;
}
}
}
function Mozilla_doRainbowAnchor(e)
{
if (act == 0) {
obj = e.target;
while (obj.nodeName != 'A' && obj.nodeName != 'BODY') {
obj = obj.parentNode;
if (obj.nodeName == 'A' || obj.nodeName == 'BODY')
break;
}
if (obj.nodeName == 'A' && obj.href != '') {
objActive = obj;
act = 1;
clrOrg = obj.style.color;
TimerID = setInterval("ChangeColor()",100);
}
}
}
function Mozilla_stopRainbowAnchor(e)
{
if (act) {
if (objActive.nodeName == 'A') {
objActive.style.color = clrOrg;
clearInterval(TimerID);
act = 0;
}
}
}
function ChangeColor()
{
objActive.style.color = makeColor();
}
function makeColor()
{
// HSVtoRGB
if (elmS == 0) {
elmR = elmV; elmG = elmV; elmB = elmV;
}
else {
t1 = elmV;
t2 = (255 - elmS) * elmV / 255;
t3 = elmH % 60;
t3 = (t1 - t2) * t3 / 60;
if (elmH < 60) {
elmR = t1; elmB = t2; elmG = t2 + t3;
}
else if (elmH < 120) {
elmG = t1; elmB = t2; elmR = t1 - t3;
}
else if (elmH < 180) {
elmG = t1; elmR = t2; elmB = t2 + t3;
}
else if (elmH < 240) {
elmB = t1; elmR = t2; elmG = t1 - t3;
}
else if (elmH < 300) {
elmB = t1; elmG = t2; elmR = t2 + t3;
}
else if (elmH < 360) {
elmR = t1; elmG = t2; elmB = t1 - t3;
}
else {
elmR = 0; elmG = 0; elmB = 0;
}
}
elmR = Math.floor(elmR).toString(16);
elmG = Math.floor(elmG).toString(16);
elmB = Math.floor(elmB).toString(16);
if (elmR.length == 1) elmR = "0" + elmR;
if (elmG.length == 1) elmG = "0" + elmG;
if (elmB.length == 1) elmB = "0" + elmB;
elmH = elmH + rate;
if (elmH >= 360)
elmH = 0;
return '#' + elmR + elmG + elmB;
}
// end hide -->
</SCRIPT>
<body>
<?php include_once H.'style/themes/'.$set['set_them'].'/title.php'; ?>
<div class="head">
<table>
<tr>
<td class="logo">
<a href="/index.php" title="На главную"><img src="/style/themes/<?echo $set['set_them'];?>/logo.png" alt="Logotype" /></a>
</td>
<td class="head_menu">
<?php include_once H.'style/themes/'.$set['set_them'].'/navigation.php'; ?>
</td>
</tr>
</table>
<object type="application/x-shockwave-flash" data="http://xflash.ucoz.ru/kak/483.swf" width="199" height="500"><param name="bgcolor" value="#ffffff" />
<param name="allowFullScreen" value="true" /
<param name="allowScriptAccess" value="always" />
<param name="wmode" value="transparent" />
<param name="movie" value="" />
<param name="flashvars" value="st=;file=" /></object>
</div>
<div class="body">
<table class="table">
<tr>
<td class="block_menu_nav"><?php include_once H.'style/themes/'.$set['set_them'].'/menu.php'; ?></td>
<td class="block_all_nav">
<div class="ind_cont">
<div class="title">
<?echo $set['title'];?>
</div>
<div class='content_block'>