01.11.2012
NiKiT0S
VIP
Сообщений 229
Здравствуйте уважаемые пользователи сайта webo4ka.ru Пришол я за помощью. Есть такой сайт: и у него очень занимательный скрипт, а именно перемещение блоков и запоминание их положения в колонках(вроде используется JavaScript)... Пытался воспроизвести такую функцию для своих нужд, почистил код, и вот что получилось:
Code
<html> <head> <title>$HOME_PAGE_LINK$</title> <link rel="stylesheet" href="http://start.karelia.pro/skins/default/css/css.css?2" type="text/css"> <link rel="icon" href="http://start.karelia.pro/favicon.ico" type="image/x-icon"> <link rel="icon" href="http://start.karelia.pro/imgs/logo-speeddial.png" type="image/png"> <script> var labels = {settings:'Настройки', min:'Свернуть', max:'Развернуть', del:'Удалить', mm:'Свернуть', mode:' - ', close:'Закрыть', confirm_del:'Вы действительно хотите удалить виджет?', yes: 'Да', no: 'Нет', del_title: 'Удаление виджета'}; var undelete = [2,13]; var static = [27]; var lifetime = 93312000; var path_img = 'http://start.karelia.pro/skins/default/img/'; </script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-18199346-6']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <script src="http://start.karelia.pro/jscript/dd.js"></script> <!-- --> <script src="http://start.karelia.pro/jscript/body.js?13"></script> <script src="http://start.karelia.pro/jscript/json2.js"></script> <script src="http://start.karelia.pro/skins/default/js/form.js"></script> <script type="text/javascript" charset="UTF-8"> /* <![CDATA[ */ try { if (undefined == xajax.config) xajax.config = {}; } catch (e) { xajax = {}; xajax.config = {}; }; xajax.config.requestURI = "items.server.php"; xajax.config.statusMessages = false; xajax.config.waitCursor = true; xajax.config.version = "xajax 0.5 Beta 4"; xajax.config.legacy = false; xajax.config.defaultMode = "asynchronous"; xajax.config.defaultMethod = "POST"; /* ]]> */ </script> <script type="text/javascript" src="http://start.karelia.pro/xajax/xajax_js/xajax_core.js" charset="UTF-8"></script> <script type="text/javascript" charset="UTF-8"> /* <![CDATA[ */ window.setTimeout( function() { var scriptExists = false; try { if (xajax.isLoaded) scriptExists = true; } catch (e) {} if (!scriptExists) { alert("Error: the xajax Javascript component could not be included. Perhaps the URL is incorrect?\nURL: http://start.karelia.pro/xajax/xajax_js/xajax_core.js"); } }, 2000); /* ]]> */ </script> <script type='text/javascript' charset='UTF-8'> /* <![CDATA[ */ xajax_save_settings = function() { return xajax.request( { xjxfun: 'save_settings' }, { parameters: arguments } ); }; xajax_load_items_menu = function() { return xajax.request( { xjxfun: 'load_items_menu' }, { parameters: arguments } ); }; xajax_load_item = function() { return xajax.request( { xjxfun: 'load_item' }, { parameters: arguments } ); }; xajax_save_desctop = function() { return xajax.request( { xjxfun: 'save_desctop' }, { parameters: arguments } ); }; xajax_user_settings = function() { return xajax.request( { xjxfun: 'user_settings' }, { parameters: arguments } ); }; xajax_user_item = function() { return xajax.request( { xjxfun: 'user_item' }, { parameters: arguments } ); }; /* ]]> */ </script> <script> xajax.callback.global.onFailure = CallbackOnFailure; xajax.callback.global.onComplete = CallbackOnComplete; </script> <link rel="stylesheet" href="http://start.karelia.pro/skins/default/css/css_new.css?200" type="text/css"> <!--[if IE 6]> <link rel="stylesheet" href="http://start.karelia.pro/skins/default/css/css_ie6.css?5" type="text/css"> <script type="text/javascript" src="iepngfix_tilebg.js"></script> <![endif]--> <!--[if IE 7]> <link rel="stylesheet" href="http://start.karelia.pro/skins/default/css/css_ie7.css?5" type="text/css"> <script type="text/javascript" src="iepngfix_tilebg.js"></script> <![endif]--> <!--[if IE 8]> <link rel="stylesheet" href="http://start.karelia.pro/skins/default/css/css_ie7.css?5" type="text/css"> <script type="text/javascript" src="iepngfix_tilebg.js"></script> <![endif]--> <!--[if IE 9]> <link rel="stylesheet" href="http://start.karelia.pro/skins/default/css/css_ie7.css?51" type="text/css"> <script type="text/javascript" src="iepngfix_tilebg.js"></script> <![endif]--> <script src="http://api.karelia.pro/js/libs/jquery/jquery.js" type="text/javascript"></script> <script type="text/javascript" src="http://api.karelia.pro/js/cl.api.js"></script> <script type="text/javascript"> $(document).ready(function(){_cl.Init({appId: 9}); _cl.Wishes('cl_widget_wishes', {bType: 'start_vert'});}); </script> <style> #cl_widget_wishes {position:fixed; right:0; top:100px; height:106px; width:28px;} </style> </head> <!-- body --> <body style="position:relative;"> <div id="Error"></div> <noscript> Для работы системы необходимо включить javascript! </noscript> <div id="AlphaLayer" class="AlphaLayerH"></div> <div id="SelectDesctopBox" class="SelectDesctopBoxH"></div> <div id="MainContainer" class="MainContainer"> <div class="DragContainer" id="DragContainer1" overClass="OverDragContainer"> <div class="DragBox" id="Item27" overClass="OverDragBox" dragClass="DragDragBox"> <div id="Title27" class="BoxTitle"> <a class="deleteBoxLink" id="deleteBoxLink27" href="javascript:void(0)" onclick="showDeleteBox('27'); return false;" title="Удалить"><span class="buttonHidden"><img src=http://start.karelia.pro/skins/default/img/close.png border=0></span></a> <a class="minBoxLink" id="mmBoxLink27" href="javascript:void(0)" onClick="mmBox('27'); return false;" title="Свернуть"> <span id="mmBoxButton27" class="buttonHidden"><img src=http://start.karelia.pro/skins/default/img/minim.png border=0></span> </a> <span id="TitleText27" class="BoxTitleText">Проверка</span> </div> <div class="menuBox" id="menuBox27">У виджета нет настроек...</div> <div id="Box27" class="BoxB"> <div id="Block27" class="InBox"><div class="helper" id="helper_id_1" style="display: block;"> Проверка!<br> Да да =)))))<br /> =))))))))))))))))))) </div> <div class="helper" id="helper_id_2" style="display: none;"> Тема2 </div> <div class="helper" id="helper_id_3" style="display: none;"> Тема3 </div> <div class="helper" id="helper_id_4" style="display: none;"> Тема4 </div> <br clear=all> <div class="next-prev"> <a href="javascript:void(0)" id="helper_prev" style="display: none;" onclick="if (typeof helper_id === 'undefined') helper_id = 1; if (helper_id == 2) { document.getElementById('helper_prev').style.display = 'none';} if (helper_id > 1) {document.getElementById('helper_next').style.display = 'inline'; document.getElementById('helper_id_' + helper_id).style.display = 'none'; helper_id -= 1; document.getElementById('helper_id_' + helper_id).style.display = 'block';}">«</a> <a href="javascript:void(0)" id="helper_next" onclick="if (typeof helper_id === 'undefined') {helper_id = 1; document.getElementById('helper_id_1').style.display = 'none';} if (helper_id == 3) {document.getElementById('helper_next').style.display = 'none'; } if (helper_id < 4) {document.getElementById('helper_prev').style.display = 'inline'; document.getElementById('helper_id_' + helper_id).style.display = 'none'; helper_id += 1; document.getElementById('helper_id_' + helper_id).style.display = 'block';}">»</a> </div></div> </div> </div> <div class="DragBox" id="Item16" overClass="OverDragBox" dragClass="DragDragBox"> <div id="Title16" class="BoxTitle"> <a class="deleteBoxLink" id="deleteBoxLink16" href="javascript:void(0)" onclick="showDeleteBox('16'); return false;" title="Удалить"><span class="buttonHidden"><img src=http://start.karelia.pro/skins/default/img/close.png border=0></span></a> <a class="minBoxLink" id="mmBoxLink16" href="javascript:void(0)" onClick="mmBox('16'); return false;" title="Свернуть"> <span id="mmBoxButton16" class="buttonHidden"><img src=http://start.karelia.pro/skins/default/img/minim.png border=0></span> </a> <a class="menuBoxLink" id="menuBoxLink16" href="javascript:void(0)" onclick="menuBox('16'); return false;" title="Настройки"><span class="buttonHidden"><img src=http://start.karelia.pro/skins/default/img/edit.png border=0></span></a> <span id="TitleText16" class="BoxTitleText">Новости Карелии</span> </div> <div id="Box16" class="BoxB"> <div id="Block16" class="InBox"><form id="itemForm16" name="itemForm16" onsubmit="return false;"> <font style="font-size:11px;">ДАТА</font><br> <b><a href="javascript:void(0)" onclick="ToggleDiv('ptznews0');" class=jlink>РАзвернуть новость</a></b><div id="ptznews0" style="display: none; padding-left:10px;">НОВОСТЬ <br/><br/> Источник: <b>ТУТ</b></div><br> <br> </div> </div> </div> </div> <div class="DragContainer" id="DragContainer2" overClass="OverDragContainer"> <div class="DragBox" id="Item28" overClass="OverDragBox" dragClass="DragDragBox"> <div id="Title28" class="BoxTitle"> <a class="deleteBoxLink" id="deleteBoxLink28" href="javascript:void(0)" onclick="showDeleteBox('28'); return false;" title="Удалить"><span class="buttonHidden"><img src=http://start.karelia.pro/skins/default/img/close.png border=0></span></a> <a class="minBoxLink" id="mmBoxLink28" href="javascript:void(0)" onClick="mmBox('28'); return false;" title="Свернуть"> <span id="mmBoxButton28" class="buttonHidden"><img src=http://start.karelia.pro/skins/default/img/minim.png border=0></span> </a> <span id="TitleText28" class="BoxTitleText">Проверка</span> </div> <div class="menuBox" id="menuBox28">У виджета нет настроек...</div> <div id="Box28" class="BoxB"> <div id="Block28" class="InBox"><div class="helper" id="helper_id_1" style="display: block;"> Проверка!<br> Да да =)))))<br /> =))))))))))))))))))) </div> <div class="helper" id="helper_id_2" style="display: none;"> Тема2 </div> <div class="helper" id="helper_id_3" style="display: none;"> Тема3 </div> <div class="helper" id="helper_id_4" style="display: none;"> Тема4 </div> <br clear=all> <div class="next-prev"> <a href="javascript:void(0)" id="helper_prev" style="display: none;" onclick="if (typeof helper_id === 'undefined') helper_id = 1; if (helper_id == 2) { document.getElementById('helper_prev').style.display = 'none';} if (helper_id > 1) {document.getElementById('helper_next').style.display = 'inline'; document.getElementById('helper_id_' + helper_id).style.display = 'none'; helper_id -= 1; document.getElementById('helper_id_' + helper_id).style.display = 'block';}">«</a> <a href="javascript:void(0)" id="helper_next" onclick="if (typeof helper_id === 'undefined') {helper_id = 1; document.getElementById('helper_id_1').style.display = 'none';} if (helper_id == 3) {document.getElementById('helper_next').style.display = 'none'; } if (helper_id < 4) {document.getElementById('helper_prev').style.display = 'inline'; document.getElementById('helper_id_' + helper_id).style.display = 'none'; helper_id += 1; document.getElementById('helper_id_' + helper_id).style.display = 'block';}">»</a> </div></div> </div> </div> <div class="DragBox" id="Item18" overClass="OverDragBox" dragClass="DragDragBox"> <div id="Title18" class="BoxTitle"> <a class="deleteBoxLink" id="deleteBoxLink18" href="javascript:void(0)" onclick="showDeleteBox('18'); return false;" title="Удалить"><span class="buttonHidden"><img src=http://start.karelia.pro/skins/default/img/close.png border=0></span></a> <a class="minBoxLink" id="mmBoxLink18" href="javascript:void(0)" onClick="mmBox('18'); return false;" title="Свернуть"> <span id="mmBoxButton18" class="buttonHidden"><img src=http://start.karelia.pro/skins/default/img/minim.png border=0></span> </a> <a class="menuBoxLink" id="menuBoxLink18" href="javascript:void(0)" onclick="menuBox('18'); return false;" title="Настройки"><span class="buttonHidden"><img src=http://start.karelia.pro/skins/default/img/edit.png border=0></span></a> <span id="TitleText18" class="BoxTitleText">Новости Карелии</span> </div> <div class="menuBox" id="menuBox18"><form id="Form18" name="Form18" onsubmit="return false;">Новости <br> <select name="count"> <option value="3" >3 <option value="5" selected>5 </select> <br> Источник <select name="source"> <option value="0" selected>Все новости Карелии <option value="2" >Новости Карелии </select> <br><input type="button" name="save" value="Сохранить" onclick="save_settings(18);"></form></div> <div id="Box18" class="BoxB"> <div id="Block18" class="InBox"><form id="itemForm18" name="itemForm18" onsubmit="return false;"> <font style="font-size:11px;">ДАТА</font><br> <b><a href="javascript:void(0)" onclick="ToggleDiv('ptznews0');" class=jlink>РАзвернуть новость</a></b><div id="ptznews0" style="display: none; padding-left:10px;">НОВОСТЬ <br/><br/> Источник: <b>ТУТ</b></div><br> <br> </div> </div> </div> </div> <div class="DragContainer" id="DragContainer3" overClass="OverDragContainer"> <div class="DragBox" id="Item2" overClass="OverDragBox" dragClass="DragDragBox"> <div id="Title2" class="BoxTitle"> <a class="minBoxLink" id="mmBoxLink2" href="javascript:void(0)" onClick="mmBox('2'); return false;" title="Свернуть"> <span id="mmBoxButton2" class="buttonHidden"><img src=http://start.karelia.pro/skins/default/img/minim.png border=0></span> </a> <a class="menuBoxLink" id="menuBoxLink2" href="javascript:void(0)" onclick="menuBox('2'); return false;" title="Настройки"><span class="buttonHidden"><img src=http://start.karelia.pro/skins/default/img/edit.png border=0></span></a> <span id="TitleText2" class="BoxTitleText">Поиск файлов (disk.karelia.pro и др.)</span> </div> <div class="menuBox" id="menuBox2">У виджета нет настроек...</div> <div id="Box2" class="BoxB"> <div id="Block2" class="InBox"><form id="itemForm2" name="itemForm2" onsubmit="return false;"></form> <span></span> <form method="get" action="http://start.karelia.pro/search/" target="_blank"> <input type="hidden" name="charset" value="utf-8"> <input type="text" class="search" name="query" value=""> <input type="submit" class="button" name="search" value="search"><input type="hidden" name="user_item_form_key" value="ok"></form></div> </div> </div> </div> </div> <!-- <popup> --><!-- </popup> --> $POWERED_BY$ </body> </html>
К сожалению у меня не работает: 1) Отображение области перемещения и пунктиры на месте куда встанет блок. 2) Запоминание положения Я очень надеюсь на вашу помощь, т.к. нечего не соображаю в jQuery и JavaScript . Спасибо.
23.02.2014
kiidii
Пользователи
Сообщений 4
А как это реализовать с этим ? Код
<head> <body style="background: url(http://aniname.clan.su/images/anywalls.com-31980.jpg) no-repeat center center fixed;"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <title>ANIname</title> <link type="text/css" rel="StyleSheet" href="http://s44.ucoz.net/src/layer1.css" /> <script type="text/javascript" src="http://s44.ucoz.net/src/jquery-1.3.2.js"></script><script type="text/javascript" src="http://s44.ucoz.net/src/uwnd.js?2"></script><style type="text/css">.UhideBlock {display:none}</style> </head> <body> <style> body { padding:0px; } #f_panel { z-index:100; background:#32323A; background: -moz-linear-gradient(top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.65)), color-stop(100%,rgba(0,0,0,0))); background: -webkit-linear-gradient(top, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); background: -o-linear-gradient(top, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); background: -ms-linear-gradient(top, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=0 ); background: linear-gradient(top, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); width:100%; height:32px; border-top:1px solid #465774; position:fixed; box-shadow: 0 2px 7px rgba(0, 0, 0, 0.7); -moz-box-shadow: 0 2px 7px rgba(0, 0, 0, 0.7); -webkit-box-shadow: 0 2px 7px rgba(0, 0, 0, 0.7); bottom:0px; left:0px; opacity:0.9; } #f_panel:hover { opacity:1; } #POWERED-BY { text-align:right; float:right; padding:6px; } #start { float:left; display:block; background:url(images/start.png); width:32px; height:32px; } #start:hover { background:url(images/start-hover.png); } #start-hover { z-index:90; position:fixed; bottom:13px; width:250px; left:0px; height:0px; background:#fff; opacity:0; -webkit-border-top-right-radius: 8px; -moz-border-radius-topright: 8px; border-top-right-radius: 8px; background: #293f56; background: -moz-linear-gradient(top, #293f56 0%, #101921 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#293f56), color-stop(100%,#101921)); background: -webkit-linear-gradient(top, #293f56 0%,#101921 100%); background: -o-linear-gradient(top, #293f56 0%,#101921 100%); background: -ms-linear-gradient(top, #293f56 0%,#101921 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#293f56', endColorstr='#101921',GradientType=0 ); background: linear-gradient(top, #293f56 0%,#101921 100%); padding:5px; } .icon { height:120px; width:110px; margin:10px; float:left; -webkit-border-radius: 12px; -moz-border-radius: 12px; border-radius: 12px; box-shadow: 0px 4px 35px rgba(0, 0, 0, 0.18); -moz-box-shadow: 0px 4px 35px rgba(0, 0, 0, 0.18); -webkit-box-shadow: 0px 4px 35px rgba(0, 0, 0, 0.18); } .icon-head{ width:112px; height:20px; background: #585b65; background: -moz-linear-gradient(top, #585b65 0%, #474a52 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#585b65), color-stop(100%,#474a52)); background: -webkit-linear-gradient(top, #585b65 0%,#474a52 100%); background: -o-linear-gradient(top, #585b65 0%,#474a52 100%); background: -ms-linear-gradient(top, #585b65 0%,#474a52 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#585b65', endColorstr='#474a52',GradientType=0 ); background: linear-gradient(top, #585b65 0%,#474a52 100%); -webkit-border-top-left-radius: 5px; -webkit-border-top-right-radius: 5px; -moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; } .icon-bottom { height:90px; width:90px; -webkit-border-bottom-right-radius: 12px; -webkit-border-bottom-left-radius: 012px; -moz-border-radius-bottomright: 12px; -moz-border-radius-bottomleft: 012px; border-bottom-right-radius: 12px; border-bottom-left-radius: 012px; font-size:15px; color:ffffff; text-align:center; background: -moz-linear-gradient(top, rgba(255,255,255,0.65) 0%, rgba(0,0,0,0) 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.65)), color-stop(100%,rgba(0,0,0,0))); background: -webkit-linear-gradient(top, rgba(255,255,255,0.65) 0%,rgba(0,0,0,0) 100%); background: -o-linear-gradient(top, rgba(255,255,255,0.65) 0%,rgba(0,0,0,0) 100%); background: -ms-linear-gradient(top, rgba(255,255,255,0.65) 0%,rgba(0,0,0,0) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6ffffff', endColorstr='#00000000',GradientType=0 ); background: linear-gradient(top, rgba(255,255,255,0.65) 0%,rgba(0,0,0,0) 100%); padding:11px; } .icon-bottom:hover { background: -moz-linear-gradient(top, rgba(255,255,255,0.65) 0%, rgba(0,0,0,0) 80%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.65)), color-stop(100%,rgba(0,0,0,0))); background: -webkit-linear-gradient(top, rgba(255,255,255,0.65) 0%,rgba(0,0,0,0) 80%); background: -o-linear-gradient(top, rgba(255,255,255,0.65) 0%,rgba(0,0,0,0) 80%); background: -ms-linear-gradient(top, rgba(255,255,255,0.65) 0%,rgba(0,0,0,0) 80%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6ffffff', endColorstr='#00000000',GradientType=0 ); background: linear-gradient(top, rgba(255,255,255,0.65) 0%,rgba(0,0,0,0) 80%); } a.icon-bottom { text-decoration:none; color:ffffff; font-weight:bold } a.icon-bottom:visited { text-decoration:none; color:ffffff; } a.icon-bottom:link { text-decoration:none; color:ffffff; } #content { width:80%; height:60%; padding:20px; margin:20% auto; } #content img { border-radius:10px; -webkit-border-radius: 10px; -moz-border-radius: 10px; width:64px; height:64px; } </style> <div id="content"> <a href="#" onclick="openchat();"><div class="icon"> <div class="icon-head"></div> <div class="icon-bottom"><img src="http://aniname.clan.su/images/rabochij_stol/icon/chat.png"><br />Чат </div> </div> </a> <a href="#" onclick="openhtml();"><div class="icon"> <div class="icon-head"></div> <div class="icon-bottom"><img src="http://aniname.clan.su/images/rabochij_stol/icon/HTML_Writer.png"><br />Html редактор </div> </div> </a> <a href="#" onclick="openps();"><div class="icon"> <div class="icon-head"></div> <div class="icon-bottom"><img src="http://aniname.clan.su/images/rabochij_stol/icon/fotoshop.png"><br />Фотошоп </div> </div> </a> <a href="#" onclick="openqr();"><div class="icon"> <div class="icon-head"></div> <div class="icon-bottom"><img src="http://aniname.clan.su/images/rabochij_stol/icon/qr.png"><br />QR генератор </div> </div> </a> <a href="javascript://" onclick="okno();" ><div class="icon"> <div class="icon-head"></div> <div class="icon-bottom"><img src="http://aniname.clan.su/images/rabochij_stol/icon/personalizacija.png"><br />Персонализация </div> </div> </a> <a href="#" onclick="openrolka();"><div class="icon"> <div class="icon-head"></div> <div class="icon-bottom"><img src="http://rolka.clan.su/favicon.ico"><br />Ролка </div> </div> </a> <a href="#" onclick="openya();"><div class="icon"> <div class="icon-head"></div> <div class="icon-bottom"><img src="http://aniname.clan.su/images/rabochij_stol/icon/poisk.png"><br />Поиск </div> </div> </a> <a href="#" onclick="openphoto();"><div class="icon"> <div class="icon-head"></div> <div class="icon-bottom"><img src="http://aniname.clan.su/images/rabochij_stol/icon/photo.png"><br />Фото </div> </div> </a> </div> <div id="f_panel"><div style="width:24px;float:right;height:32px;"></div> <a href="#" id="start"></a> <div id="POWERED-BY"> $POWERED_BY$</div> </div> <div id="start-hover"> <div style="border-bottom:1px solid #465774;height:60px;width:100%;"> <div style="float:left;"> <?if($USER_LOGGED_IN$)?> <a href="$PERSONAL_PAGE_LINK$"><span style="color: rgb(0, 191, 255);">$USER_FULL_NAME$</span></a><br /> <a href="$USERS_LIST_URL$"><span style="color: rgb(0, 191, 255);">$USER_GROUP$</span></a> <?else?> <div class="h_prof_n"><a href="$LOGIN_LINK$"><span style="color: rgb(0, 191, 255);">Авторизация</span></a></div> <div class="h_prof_n"><a href="$REGISTER_LINK$"><span style="color: rgb(0, 191, 255);">Регистрация</span></a></div> <?endif?> </div> <div style="float:right;"> <div style="border:3px solid #fff;border-radius:5px;"> <img style="border-radius:5px;" src="$USER_AVATAR_URL$" height="50" /> </div> </div> </div> <br> Контент </div> <script type="text/javascript"> $(document).ready(function(){ $("#start").toggle( function(){ $("#start-hover").animate({height: "+300",opacity:"0.8"}, 1200) return false;}, function(){ $("#start-hover").animate({height: "-300",opacity:"0"}, 1200) return false; }); }); </script> </body>
Вот сайт: