Каталог Java скриптов!Онлайн сервисов!Всё для Веб-мастера!
Новые сообщения · Участники · Правила форума · Поиск · RSS
  • Страница 1 из 1
  • 1
Модератор форума: Diego543  
Форум » Веб-мастерам uCoz » Вопросы по uCoz » Условный оператор ((<?if?>))
Условный оператор
DiMeX Дата: Суббота, 24.04.2010, 10:53:58 AM | Сообщение # 1
Смотреть профиль DiMeX
Сообщений: 9
Статус: OF
Помогите пожалуйста! Я хочу сделать изменения,но мне пишет: Не закрыт один или более условный оператор (<?if?>)
Код:
Code
<html>
<style>       
/* hint menu */           
.hint           
{           
background:url('http://sinners.pp.ua/img/1.1.gif');           
line-height:10px;           
color:#1E90FF;           
font-family:verdana,arial,helvetica;           
font-size:8pt;           
width:auto;           
border-top:1px solid #1E90FF;           
border-right:1px solid #1E90FF;           
border-bottom:1px solid #1E90FF;           
border-left:1px solid #1E90FF;           
margin:1px;           
padding:8px;           
position:absolute;           
visibility:hidden;           
}           
/* ---------------- */           
</style>           

<script>           
// Автор Скрипта: Danil Aka Fenik$       
//Hint Start           
// CLASS : MW_System_Load           
// Init           
function MW_System_Load(){           
this.wib = screen.width;           
this.heb = screen.height;           
this.documes = (document.getElementById || document.createElement || document.getElementsByTagName) ? true : false;           
this.objects = window.addEventListener || window.attachEvent ? window : document.addEventListener ? document : null;           
this.types = 'load';           
}           
MW_System_Load.prototype.addsevent = function(func){           
if(this.objects.addEventListener){           
this.objects.addEventListener(this.types,func,false);           
return true;           
} else if (this.objects.attachEvent){           
this.objects.attachEvent("on" + this.types,func);           
} else {           
return false;           
}           
}           
MW_System_Load.prototype.browser = function(){           
this.ver = navigator.appVersion;           
this.agent = navigator.userAgent.toLowerCase();           
this.dom = document.getElementById ? 1:0;           
this.all = document.all ? 1:0;           
this.ie5 = (this.ver.indexOf("MSIE 5")>-1 && this.dom) ? 1:0;           
this.ie6 = (this.ver.indexOf("MSIE 6")>-1 && this.dom) ? 1:0;           
this.ie4 = (document.all && !this.dom) ? 1:0;           
this.ie = this.ie4 || this.ie5 || this.ie6;           
this.opera = this.agent.indexOf("opera")>-1;           
this.gecko = (this.agent.indexOf("gecko")!=-1) ? 1:0;           
this.bw = (this.ie || this.opera || this.gecko);           
return this;           
}           
MW_System_Load.prototype.findobj = function(obj){           
this.parent = window.document;           
if(this.parent[obj]){ return this.parent[obj]; }           
if(this.parent.all && this.parent.all[obj]){ return this.parent.all[obj]; }           
if(this.parent.layers && this.parent.layers[obj]){ return this.parent.layers[obj]; }           
if(this.parent.getElementById && this.parent.getElementById(obj)){ return this.parent.getElementById(obj); }           
return null;           
}           
var MW = new MW_System_Load();           
function MW_System_Hint(){}           
MW_System_Hint.prototype.show = function(obj,str){           
var hint = MW.findobj('hint');           
if(!obj){ return; }           
if(!MW.documes){ return; }           
if(!hint){ return; }           
hint.className = 'hint';           
hint.style.left = 15;           
hint.style.top = 50;           

obj.onmouseout = function(advance){           
hint.style.width = '';           
hint.style.visibility = 'hidden';           
if(hint.firstChild) hint.removeChild(hint.firstChild);           
hint.appendChild(document.createTextNode(str));           
};           
obj.onmousemove = function(advance){           
//str = str.replace(/</g,"<");           
//str = str.replace(/>/g,">");           
hint.style.width = '';           
hint.innerHTML = str;           
vc = document.getElementsByTagName((document.compatMode && document.compatMode=="CSS1Compat") ? "HTML":"BODY")[0];           
x = window.event ? event.clientX + vc.scrollLeft : advance.pageX;           
y = window.event ? event.clientY + vc.scrollTop : advance.pageY;           
vcwidth = vc.clientWidth ? vc.clientWidth + vc.scrollLeft : window.innerWidth + window.pageXOffset;           
vcheight = vc.innerHeight ? window.innerHeight + window.pageYOffset : vc.clientHeight + vc.scrollTop;           
              if(hint.offsetWidth>500){ hint.style.width = '200'; }           
              if((x + hint.offsetWidth + 15) > vcwidth){           
              hint.style.left = x - hint.offsetWidth - 4;           
              } else {           
              hint.style.left = x + 15;           
              }           
              if((y + hint.offsetHeight + 19) > vcheight){           
              hint.style.top = y - hint.offsetHeight;           
              } else {           
              hint.style.top = y + 25;           
              }           
              //if(typeof(hint.style.MozOpacity)!="undefined"){           
              hint.style.opacity = '.91';           
              hint.style.filter = "alpha(opacity:91)";           
              //}           
              hint.style.visibility = 'visible';           
};           
}           
MW_System_Hint.prototype.initialize = function(){           
var hint = document.createElement("DIV");           
hint.setAttribute('id','hint');           
document.getElementsByTagName('body')[0].appendChild(hint);           
hint.style.visibility = 'hidden';           
var hintmarker = ['a','img','img','input','span','div','textarea'];           
var textmarker = ['title','alt','title','title','title','title','title'];           
var lenmarker = hintmarker.length;           
for(var i=0; i<lenmarker; i++) {           
atr = document.getElementsByTagName(hintmarker[i]);           
for(var j=0; j<atr.length; j++)           
if(viewhint=atr[j].getAttribute(textmarker[i])){           
              atr[j].removeAttribute(textmarker[i]);           
              HINT.show(atr[j],viewhint);           
}           
}           
}           
var HINT = new MW_System_Hint();           
if(MW.objects){ MW.addsevent(HINT.initialize); }           
//Hint End           
</script>
<title>$SECTION_NAME$ - $MODULE_NAME$ - $SITE_NAME$</title>
<meta name="title" content="counter strike source,моды для сервера css">
<meta name="description" content="counter strike source,моды для сервера

css,готовый сервер для css">
<meta name="keywords" content="counter strike source,моды для сервера

css,готовый сервер для css ">
<meta http-equiv="content-language" content="Russian">
<meta name="robots" content="index,follow">
<meta name="revisit-after" content="2 days">
<meta http-equiv="charset" content="windows-1251">
<meta http-equiv="vw96.object type" content="Homepage">
<title>$SITE_NAME$ - $MODULE_NAME$</title>
<link type="text/css" rel="StyleSheet" href="http://elegy.clan.su/_st/my.css" />
</head>

<body style="background:url('/images/b.gif') #000000; margin:0px;

padding:0px;">

<table cellpadding="0" cellspacing="0" border="0" width="101%">
<tr><td align="right" width="2%"

style="background:url('http://s8.ucoz.net/t/984/2.gif') right repeat-y;"><img

src="http://s8.ucoz.net/t/984/2.gif" border="0"></td>
<td width="95%" valign="top" style="border-bottom:1px solid #000000;">

$GLOBAL_AHEADER$

<table border="0" cellpadding="10" cellspacing="0" width="100%"><tr><td

valign="top" align="center">

<!-- <middle> -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top" style="width:203px;">

$GLOBAL_CLEFTER$

</td>
<td valign="top" width="80%" style="padding:0 5px;">

<div style="border:1px solid black;padding:5px">
<!-- <body> --><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="80%"><a href="$HOME_PAGE_LINK$"><!--<s5176>-->Главная<!--</s>--></a> » <a href="$MODULE_URL$"><!--<s5182>-->Файлы<!--</s>--></a> » $SECTION_NAME$</td>
<td align="right" style="white-space: nowrap;"><?if($ADD_ENTRY_LINK$)?>[ <a href="$ADD_ENTRY_LINK$"><!--<s5186>-->Добавить материал<!--</s>--></a> ]<?endif?> </td>
</tr>
</table>
<hr />
$BODY$<!-- </body> --></div></td>
<td valign="top">

$GLOBAL_DRIGHTER$

</td>
</tr>
</table>
<!-- </middle> -->

$GLOBAL_BFOOTER$

</td></tr></table>

</td>
<td align="left" width="2%"

style="background:url('http://s8.ucoz.net/t/984/2.gif') left repeat-y;"><img

src="http://s8.ucoz.net/t/984/2.gif" border="0"></td>
</td></tr></table>

</body>

</html>

Но тут вроде все закрыто...

Добавлено (24.04.2010, 10:53:58 Am)
---------------------------------------------

Code
<html>
<style>      
/* hint menu */          
.hint          
{          
background:url('http://sinners.pp.ua/img/1.1.gif');          
line-height:10px;          
color:#1E90FF;          
font-family:verdana,arial,helvetica;          
font-size:8pt;          
width:auto;          
border-top:1px solid #1E90FF;          
border-right:1px solid #1E90FF;          
border-bottom:1px solid #1E90FF;          
border-left:1px solid #1E90FF;          
margin:1px;          
padding:8px;          
position:absolute;          
visibility:hidden;          
}          
/* ---------------- */          
</style>          

<script>          
// Автор Скрипта: Danil Aka Fenik$      
//Hint Start          
// CLASS : MW_System_Load          
// Init          
function MW_System_Load(){          
this.wib = screen.width;          
this.heb = screen.height;          
this.documes = (document.getElementById || document.createElement || document.getElementsByTagName) ? true : false;          
this.objects = window.addEventListener || window.attachEvent ? window : document.addEventListener ? document : null;          
this.types = 'load';          
}          
MW_System_Load.prototype.addsevent = function(func){          
if(this.objects.addEventListener){          
this.objects.addEventListener(this.types,func,false);          
return true;          
} else if (this.objects.attachEvent){          
this.objects.attachEvent("on" + this.types,func);          
} else {          
return false;          
}          
}          
MW_System_Load.prototype.browser = function(){          
this.ver = navigator.appVersion;          
this.agent = navigator.userAgent.toLowerCase();          
this.dom = document.getElementById ? 1:0;          
this.all = document.all ? 1:0;          
this.ie5 = (this.ver.indexOf("MSIE 5")>-1 && this.dom) ? 1:0;          
this.ie6 = (this.ver.indexOf("MSIE 6")>-1 && this.dom) ? 1:0;          
this.ie4 = (document.all && !this.dom) ? 1:0;          
this.ie = this.ie4 || this.ie5 || this.ie6;          
this.opera = this.agent.indexOf("opera")>-1;          
this.gecko = (this.agent.indexOf("gecko")!=-1) ? 1:0;          
this.bw = (this.ie || this.opera || this.gecko);          
return this;          
}          
MW_System_Load.prototype.findobj = function(obj){          
this.parent = window.document;          
if(this.parent[obj]){ return this.parent[obj]; }          
if(this.parent.all && this.parent.all[obj]){ return this.parent.all[obj]; }          
if(this.parent.layers && this.parent.layers[obj]){ return this.parent.layers[obj]; }          
if(this.parent.getElementById && this.parent.getElementById(obj)){ return this.parent.getElementById(obj); }          
return null;          
}          
var MW = new MW_System_Load();          
function MW_System_Hint(){}          
MW_System_Hint.prototype.show = function(obj,str){          
var hint = MW.findobj('hint');          
if(!obj){ return; }          
if(!MW.documes){ return; }          
if(!hint){ return; }          
hint.className = 'hint';          
hint.style.left = 15;          
hint.style.top = 50;          

obj.onmouseout = function(advance){          
hint.style.width = '';          
hint.style.visibility = 'hidden';          
if(hint.firstChild) hint.removeChild(hint.firstChild);          
hint.appendChild(document.createTextNode(str));          
};          
obj.onmousemove = function(advance){          
//str = str.replace(/</g,"<");          
//str = str.replace(/>/g,">");          
hint.style.width = '';          
hint.innerHTML = str;          
vc = document.getElementsByTagName((document.compatMode && document.compatMode=="CSS1Compat") ? "HTML":"BODY")[0];          
x = window.event ? event.clientX + vc.scrollLeft : advance.pageX;          
y = window.event ? event.clientY + vc.scrollTop : advance.pageY;          
vcwidth = vc.clientWidth ? vc.clientWidth + vc.scrollLeft : window.innerWidth + window.pageXOffset;          
vcheight = vc.innerHeight ? window.innerHeight + window.pageYOffset : vc.clientHeight + vc.scrollTop;          
             if(hint.offsetWidth>500){ hint.style.width = '200'; }          
             if((x + hint.offsetWidth + 15) > vcwidth){          
             hint.style.left = x - hint.offsetWidth - 4;          
             } else {          
             hint.style.left = x + 15;          
             }          
             if((y + hint.offsetHeight + 19) > vcheight){          
             hint.style.top = y - hint.offsetHeight;          
             } else {          
             hint.style.top = y + 25;          
             }          
             //if(typeof(hint.style.MozOpacity)!="undefined"){          
             hint.style.opacity = '.91';          
             hint.style.filter = "alpha(opacity:91)";          
             //}          
             hint.style.visibility = 'visible';          
};          
}          
MW_System_Hint.prototype.initialize = function(){          
var hint = document.createElement("DIV");          
hint.setAttribute('id','hint');          
document.getElementsByTagName('body')[0].appendChild(hint);          
hint.style.visibility = 'hidden';          
var hintmarker = ['a','img','img','input','span','div','textarea'];          
var textmarker = ['title','alt','title','title','title','title','title'];          
var lenmarker = hintmarker.length;          
for(var i=0; i<lenmarker; i++) {          
atr = document.getElementsByTagName(hintmarker[i]);          
for(var j=0; j<atr.length; j++)          
if(viewhint=atr[j].getAttribute(textmarker[i])){          
             atr[j].removeAttribute(textmarker[i]);          
             HINT.show(atr[j],viewhint);          
}          
}          
}          
var HINT = new MW_System_Hint();          
if(MW.objects){ MW.addsevent(HINT.initialize); }          
//Hint End          
</script>
<title>$SECTION_NAME$ - $MODULE_NAME$ - $SITE_NAME$</title>
<meta name="keywords" content="сounter strike source,моды для сервера css,готовый сервер для css">
<meta name="description" content="сounter strike source,моды для сервера css,готовый сервер для css">
<meta http-equiv="Content-Language" content="ru">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/js/design.js"></script>
<script type="text/javascript" src="/js/cookie.js"></script>
   
<link type="text/css" rel="StyleSheet" href="http://elegy.clan.su/_st/my.css" />
<?if($USER_LOGGED_IN$)?><?if($IS_NEW_PM$)?><script type="text/javascript">window.onload=function(){openLayerB('PmBody',0,'/ajax/pmbody.xml','Новое ЛС',390,105);}</script><?endif?><?endif?>
<link type="text/css" rel="StyleSheet" href="http://s9.ucoz.net/src/layer6.css" /><script type="text/javascript" src="http://s9.ucoz.net/src/u.js"></script><style type="text/css">.UhideBlockL {display:none}</style>
</head>

<body style="background:url('http://src.ucoz.net/t/955/1.gif') #000000; margin:0px; padding:0px;">

$GLOBAL_AHEADER$

<table border="0" cellpadding="5" cellspacing="0" width="100%"><tr><td valign="top" align="center">

<!-- <middle> -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top" style="width:203px;">

$GLOBAL_CLEFTER$

</td>
<td valign="top" style="padding:2px 5px 0px 5px;">
<table border="0" cellpadding="5" cellspacing="0" width="100%" style="border:1px solid #252525;"><tr><td style="background:#000000;">
<!-- <body> --><!-- <body> --><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="80%"><a href="$HOME_PAGE_LINK$"><!--<s5176>-->Главная<!--</s>--></a> » <a href="$MODULE_URL$"><!--<s5182>-->Файлы<!--</s>--></a> » $SECTION_NAME$</td>
<td align="right" style="white-space: nowrap;"><?if($ADD_ENTRY_LINK$)?>[ <a href="$ADD_ENTRY_LINK$"><!--<s5186>-->Добавить материал<!--</s>--></a> ]<?endif?> </td>
</tr>
</table>
<hr />
$BODY$<!-- </body> --><!-- </body> --></td></tr></table>
</td>

<td valign="top" style="width:203px;">

$GLOBAL_DRIGHTER$

</td>
</tr>
</table>
<!-- </middle> -->

$GLOBAL_BFOOTER$

</td></tr></table>
</body>

</html>



Сообщение отредактировал DiMeX - Воскресенье, 18.04.2010, 3:14:53 PM
Страна:
scriptozna Дата: Понедельник, 26.04.2010, 6:28:18 PM | Сообщение # 2
Смотреть профиль scriptozna
Admin
Сообщений: 441
Статус: OF
DiMeX, Все закрыто и сохраняется.

В личке отвечаю только на ЛИЧНЫЕ вопросы.
Страна:
DiMeX Дата: Суббота, 01.05.2010, 4:41:09 PM | Сообщение # 3
Смотреть профиль DiMeX
Сообщений: 9
Статус: OF
scriptozna,
Я сохраняю,но пишет тоже самое, на другой сайт поставил тот же шаблон,этот код вставил и все нормально!а на другом сайте вообще хоть стандартный вид делай не хочет все равно сохранять.

Добавлено (01.05.2010, 4:41:09 PM)
---------------------------------------------
а еще вопрос,почему вообще на сайте ничего не сохраняет,на других все нормально,и это везде!ничего изменить,добавить нельзя.

Страна:
Форум » Веб-мастерам uCoz » Вопросы по uCoz » Условный оператор ((<?if?>))
  • Страница 1 из 1
  • 1
Поиск:

Рейтинг@Mail.ru Rambler's Top100
Хостинг от uCoz