<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.soulruins.ru/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>Philip Wiki - docs:web_scripts</title>
        <description>Персональный wiki-сайт</description>
        <link>https://wiki.soulruins.ru/</link>
        <lastBuildDate>Tue, 21 Apr 2026 12:27:49 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://wiki.soulruins.ru/_media/wiki/dokuwiki.svg</url>
            <title>Philip Wiki</title>
            <link>https://wiki.soulruins.ru/</link>
        </image>
        <item>
            <title>Плавающее сообщение</title>
            <link>https://wiki.soulruins.ru/docs/web_scripts/floating_top_bar?rev=1365502314&amp;do=diff</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;plavajuschee_soobschenie&quot;&gt;Плавающее сообщение&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
Искал простой скрип для размещение окошка, нашел вот этот. &lt;img src=&quot;https://wiki.soulruins.ru/lib/images/smileys/smile.svg&quot; class=&quot;icon smiley&quot; alt=&quot;:-)&quot; /&gt;
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Не требует внешних библиотек;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Простой и гибкий;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Постоянное отображение или в пределах сессии;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; Прокрутка вместе со страницей.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
&lt;strong&gt;1. Вставляем следующий код внутри тега &lt;code&gt;&amp;lt;HEAD&amp;gt;&lt;/code&gt;:&lt;/strong&gt;
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;style type&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;text/css&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co2&quot;&gt;#topbar{
&lt;/span&gt;position&lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt;absolute&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
border&lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt; 1px solid black&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
padding&lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt; 2px&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
background&lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;color&lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt; lightyellow&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
width&lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt; 620px&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
visibility&lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt; hidden&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
z&lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;index&lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;sy0&quot;&gt;&amp;lt;/&lt;/span&gt;style&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;script type&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;text/javascript&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;coMULTI&quot;&gt;/***********************************************
* Floating Top Bar script- © Dynamic Drive (www.dynamicdrive.com)
* Sliding routine by Roy Whittle (http://www.javascript-fx.com/)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw2&quot;&gt;var&lt;/span&gt; persistclose&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;//set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;var&lt;/span&gt; startX &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;30&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;//set x offset of bar in pixels&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;var&lt;/span&gt; startY &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;5&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;//set y offset of bar in pixels&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;var&lt;/span&gt; verticalpos&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;fromtop&amp;quot;&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;//enter &amp;quot;fromtop&amp;quot; or &amp;quot;frombottom&amp;quot;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt; iecompattest&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;document&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;compatMode &lt;span class=&quot;sy0&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; document&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;compatMode&lt;span class=&quot;sy0&quot;&gt;!=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;BackCompat&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;? document&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;documentElement &lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt; document&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;body
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt; get_cookie&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;Name&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;var&lt;/span&gt; search &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; Name &lt;span class=&quot;sy0&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;=&amp;quot;&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;var&lt;/span&gt; returnvalue &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;document&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;cookie&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;length &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
offset &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; document&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;cookie&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;indexOf&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;search&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;offset &lt;span class=&quot;sy0&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
offset &lt;span class=&quot;sy0&quot;&gt;+=&lt;/span&gt; search&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;length
&lt;a target=&quot;_blank&quot; href=&quot;http://www.php.net/end&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;end&lt;/span&gt;&lt;/a&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; document&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;cookie&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;indexOf&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;;&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; offset&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.php.net/end&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;end&lt;/span&gt;&lt;/a&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;a target=&quot;_blank&quot; href=&quot;http://www.php.net/end&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;end&lt;/span&gt;&lt;/a&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; document&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;cookie&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;length&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
returnvalue&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;unescape&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;document&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;cookie&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;substring&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;offset&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;a target=&quot;_blank&quot; href=&quot;http://www.php.net/end&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;end&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; returnvalue&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt; closebar&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;persistclose&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
document&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;cookie&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;remainclosed=1&amp;quot;&lt;/span&gt;
document&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;getElementById&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;topbar&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;style&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;visibility&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;hidden&amp;quot;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt; staticbar&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
	barheight&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;document&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;getElementById&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;topbar&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;offsetHeight
	&lt;span class=&quot;kw2&quot;&gt;var&lt;/span&gt; ns &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;navigator&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;appName&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;indexOf&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Netscape&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;||&lt;/span&gt; window&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;opera&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kw2&quot;&gt;var&lt;/span&gt; d &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; document&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt; ml&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;id&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		&lt;span class=&quot;kw2&quot;&gt;var&lt;/span&gt; el&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;d&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;getElementById&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;id&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt;persistclose &lt;span class=&quot;sy0&quot;&gt;||&lt;/span&gt; persistclose &lt;span class=&quot;sy0&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; get_cookie&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;remainclosed&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		el&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;style&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;visibility&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;visible&amp;quot;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;d&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;layers&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;el&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;style&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;el&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		el&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;sP&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;y&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;this&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;style&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;left&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;px&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;this&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;style&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;top&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;y&lt;span class=&quot;sy0&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;px&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		el&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;x &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; startX&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;verticalpos&lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;fromtop&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		el&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;y &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; startY&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		el&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;y &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; ns ? pageYOffset &lt;span class=&quot;sy0&quot;&gt;+&lt;/span&gt; innerHeight &lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt; iecompattest&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;scrollTop &lt;span class=&quot;sy0&quot;&gt;+&lt;/span&gt; iecompattest&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;clientHeight&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		el&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;y &lt;span class=&quot;sy0&quot;&gt;-=&lt;/span&gt; startY&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; el&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	window&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;stayTopLeft&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;verticalpos&lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;fromtop&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		&lt;span class=&quot;kw2&quot;&gt;var&lt;/span&gt; pY &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; ns ? pageYOffset &lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt; iecompattest&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;scrollTop&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		ftlObj&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;y &lt;span class=&quot;sy0&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;pY &lt;span class=&quot;sy0&quot;&gt;+&lt;/span&gt; startY &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; ftlObj&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;y&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		&lt;span class=&quot;kw2&quot;&gt;var&lt;/span&gt; pY &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; ns ? pageYOffset &lt;span class=&quot;sy0&quot;&gt;+&lt;/span&gt; innerHeight &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; barheight&lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt; iecompattest&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;scrollTop &lt;span class=&quot;sy0&quot;&gt;+&lt;/span&gt; iecompattest&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;clientHeight &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; barheight&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		ftlObj&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;y &lt;span class=&quot;sy0&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;pY &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; startY &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; ftlObj&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;y&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
		ftlObj&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;sP&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ftlObj&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; ftlObj&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;y&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		setTimeout&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;stayTopLeft()&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	ftlObj &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; ml&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;topbar&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	stayTopLeft&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;window&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;addEventListener&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
window&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;addEventListener&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;load&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; staticbar&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;kw4&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;window&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;attachEvent&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
window&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;attachEvent&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;onload&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; staticbar&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;document&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;getElementById&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
window&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;onload&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;staticbar
&lt;span class=&quot;kw2&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
&lt;strong&gt;2. Теперь, внутри тега &lt;code&gt;&amp;lt;BODY&amp;gt;&lt;/code&gt; нужно вставить следующее:&lt;/strong&gt;
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;div id&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;topbar&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;a href&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt; onClick&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;closebar(); return false&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;img src&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;close.gif&amp;quot;&lt;/span&gt; border&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;0&amp;quot;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&amp;gt;&amp;lt;/&lt;/span&gt;a&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;
Your content here&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;
&lt;span class=&quot;sy0&quot;&gt;&amp;lt;/&lt;/span&gt;div&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
В крайнем блоке есть вставка кнопки скрытия сообщения (&lt;code&gt;close.gif&lt;/code&gt;), её найдите сами (размер 16&amp;times;16).
&lt;/p&gt;

&lt;p&gt;
Источник: &lt;a href=&quot;http://www.dynamicdrive.com/dynamicindex17/floatbar.htm&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://www.dynamicdrive.com/dynamicindex17/floatbar.htm&quot; rel=&quot;ugc nofollow noopener&quot;&gt;http://www.dynamicdrive.com/dynamicindex17/floatbar.htm&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;
</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 09 Apr 2013 10:11:54 +0000</pubDate>
        </item>
        <item>
            <title>Полезные web-скрипты</title>
            <link>https://wiki.soulruins.ru/docs/web_scripts/start?rev=1479816925&amp;do=diff</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;poleznye_web-skripty&quot;&gt;Полезные web-скрипты&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
Набор полезных скриптов
&lt;/p&gt;

&lt;div&gt;&lt;div id=&quot;nojs_indexmenu_176223837169bcd5c538a9d&quot; data-jsajax=&quot;&quot; class=&quot;indexmenu_nojs&quot;&gt;
&lt;ul class=&quot;idx&quot;&gt;
&lt;li class=&quot;level1&quot; &gt;&lt;div class=&quot;li&quot;&gt;&lt;a href=&quot;https://wiki.soulruins.ru/docs/web_scripts/floating_top_bar&quot; class=&quot;wikilink1&quot; title=&quot;docs:web_scripts:floating_top_bar&quot; data-wiki-id=&quot;docs:web_scripts:floating_top_bar&quot;&gt;Плавающее сообщение&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;&lt;/div&gt;&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://sye.dk/sfpg/&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://sye.dk/sfpg/&quot; rel=&quot;ugc nofollow noopener&quot;&gt;http://sye.dk/sfpg/&lt;/a&gt; – простой &lt;a href=&quot;https://wiki.soulruins.ru/personal/admin/nix/php&quot; class=&quot;wikilink1&quot; title=&quot;personal:admin:nix:php&quot; data-wiki-id=&quot;personal:admin:nix:php&quot;&gt;PHP&lt;/a&gt;-скрипт галереи в одном файле&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 22 Nov 2016 12:15:25 +0000</pubDate>
        </item>
    </channel>
</rss>
