Орла
Области
Компаний
Пользователи
Галерея
Фиксированные новости
Орла
Отзывы о фирмах
Тарифы
Пользователи
Области
Банкоматы
Торговые точки
Доска объявлений
Курсы валют
Скидки
организации Орла
организации области
товары
сайты
сайты Орел
Данные
Разделы
Поиск
Поиск запросы
Статистика
Показы каталога организаций
Статистика клиенты
Пользователи
Сайты
Управление сайтом
Анкета
Аптеки
Афиша
Афиша новая
Баннеры
Бизнес >
Викторина
Голосование
Гость на сайте
Истории
Календарь событий
Каталоги >
Конкурс красоты
Конкурс аудио
Консультации
Меню
Новое на сайте
Новости >
Организации >
Программа ТВ
Публикации
Разделы сайта
Рассылка
Рестораны
Секрет фирмы >
Сервисы >
Ссылки
Тесты
Файловый менеджер
Форум
Фотогалерея
Обратная связь
Недвижимость
Новый год
Тексты
Пользователи
Юридический рейтинг
Отзывы на товары
Бан пользователей
Жалобы
Новые тесты
Коронавирус
Файловый менеджер
Имя файла
fck_anchor.html
Содержимое
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <!-- * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * http://www.gnu.org/licenses/gpl.html * * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") * http://www.gnu.org/licenses/lgpl.html * * - Mozilla Public License Version 1.1 or later (the "MPL") * http://www.mozilla.org/MPL/MPL-1.1.html * * == END LICENSE == * * Anchor dialog window. --> <html> <head> <title>Anchor Properties</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta content="noindex, nofollow" name="robots"> <script src="common/fck_dialog_common.js" type="text/javascript"></script> <script type="text/javascript"> var dialog = window.parent ; var oEditor = dialog.InnerDialogLoaded() ; var FCK = oEditor.FCK ; var FCKBrowserInfo = oEditor.FCKBrowserInfo ; var FCKTools = oEditor.FCKTools ; var FCKRegexLib = oEditor.FCKRegexLib ; var oDOM = FCK.EditorDocument ; var oFakeImage = dialog.Selection.GetSelectedElement() ; var oAnchor ; if ( oFakeImage ) { if ( oFakeImage.tagName == 'IMG' && oFakeImage.getAttribute('_fckanchor') ) oAnchor = FCK.GetRealElement( oFakeImage ) ; else oFakeImage = null ; } //Search for a real anchor if ( !oFakeImage ) { oAnchor = FCK.Selection.MoveToAncestorNode( 'A' ) ; if ( oAnchor ) FCK.Selection.SelectNode( oAnchor ) ; } window.onload = function() { // First of all, translate the dialog box texts oEditor.FCKLanguageManager.TranslatePage(document) ; if ( oAnchor ) GetE('txtName').value = oAnchor.name ; else oAnchor = null ; window.parent.SetOkButton( true ) ; window.parent.SetAutoSize( true ) ; SelectField( 'txtName' ) ; } function Ok() { var sNewName = GetE('txtName').value ; // Remove any illegal character in a name attribute: // A name should start with a letter, but the validator passes anyway. sNewName = sNewName.replace( /[^\w-_\.:]/g, '_' ) ; if ( sNewName.length == 0 ) { // Remove the anchor if the user leaves the name blank if ( oAnchor ) { // Removes the current anchor from the document using the new command FCK.Commands.GetCommand( 'AnchorDelete' ).Execute() ; return true ; } alert( oEditor.FCKLang.DlgAnchorErrorName ) ; return false ; } oEditor.FCKUndo.SaveUndoStep() ; if ( oAnchor ) // Modifying an existent anchor. { ReadjustLinksToAnchor( oAnchor.name, sNewName ); // Buggy explorer, bad bad browser. http://alt-tag.com/blog/archives/2006/02/ie-dom-bugs/ // Instead of just replacing the .name for the existing anchor (in order to preserve the content), we must remove the .name // and assign .name, although it won't appear until it's specially processed in fckxhtml.js // We remove the previous name oAnchor.removeAttribute( 'name' ) ; // Now we set it, but later we must process it specially oAnchor.name = sNewName ; return true ; } // Create a new anchor preserving the current selection var aNewAnchors = oEditor.FCK.CreateLink( '#' ) ; if ( aNewAnchors.length == 0 ) aNewAnchors.push( oEditor.FCK.InsertElement( 'a' ) ) ; else { // Remove the fake href for ( var i = 0 ; i < aNewAnchors.length ; i++ ) aNewAnchors[i].removeAttribute( 'href' ) ; } // More than one anchors may have been created, so interact through all of them (see #220). for ( var i = 0 ; i < aNewAnchors.length ; i++ ) { oAnchor = aNewAnchors[i] ; // Set the name if ( FCKBrowserInfo.IsIE ) { // Setting anchor names directly in IE will trash the HTML code stored // in FCKTempBin after undos. See #2263. var replaceAnchor = oEditor.FCK.EditorDocument.createElement( '<a name="' + FCKTools.HTMLEncode( sNewName ).replace( '"', '"' ) + '">' ) ; oEditor.FCKDomTools.MoveChildren( oAnchor, replaceAnchor ) ; oAnchor.parentNode.replaceChild( replaceAnchor, oAnchor ) ; oAnchor = replaceAnchor ; } else oAnchor.name = sNewName ; // IE does require special processing to show the Anchor's image // Opera doesn't allow to select empty anchors if ( FCKBrowserInfo.IsIE || FCKBrowserInfo.IsOpera ) { if ( oAnchor.innerHTML != '' ) { if ( FCKBrowserInfo.IsIE ) oAnchor.className += ' FCK__AnchorC' ; } else { // Create a fake image for both IE and Opera var oImg = oEditor.FCKDocumentProcessor_CreateFakeImage( 'FCK__Anchor', oAnchor.cloneNode(true) ) ; oImg.setAttribute( '_fckanchor', 'true', 0 ) ; oAnchor.parentNode.insertBefore( oImg, oAnchor ) ; oAnchor.parentNode.removeChild( oAnchor ) ; } } } return true ; } // Checks all the links in the current page pointing to the current name and changes them to the new name function ReadjustLinksToAnchor( sCurrent, sNew ) { var oDoc = FCK.EditorDocument ; var aLinks = oDoc.getElementsByTagName( 'A' ) ; var sReference = '#' + sCurrent ; // The url of the document, so we check absolute and partial references. var sFullReference = oDoc.location.href.replace( /(#.*$)/, '') ; sFullReference += sReference ; var oLink ; var i = aLinks.length - 1 ; while ( i >= 0 && ( oLink = aLinks[i--] ) ) { var sHRef = oLink.getAttribute( '_fcksavedurl' ) ; if ( sHRef == null ) sHRef = oLink.getAttribute( 'href' , 2 ) || '' ; if ( sHRef == sReference || sHRef == sFullReference ) { oLink.href = '#' + sNew ; SetAttribute( oLink, '_fcksavedurl', '#' + sNew ) ; } } } </script> </head> <body style="overflow: hidden"> <table height="100%" width="100%"> <tr> <td align="center"> <table border="0" cellpadding="0" cellspacing="0" width="80%"> <tr> <td> <span fckLang="DlgAnchorName">Anchor Name</span><BR> <input id="txtName" style="WIDTH: 100%" type="text"> </td> </tr> </table> </td> </tr> </table> </body> </html>
/admin/fckeditor/editor/dialog/
Имя
Дата
Размер
..
2013-04-27
common
2013-04-27
fck_about
2013-04-27
fck_docprops
2013-04-27
fck_flash
2013-04-27
fck_image
2015-04-04
fck_link
2013-04-27
fck_scayt
2013-04-27
fck_select
2013-04-27
fck_spellerpages
2013-04-27
fck_template
2013-04-27
fck_about.html
2012-08-02
6 кб.
fck_anchor.html
2010-02-15
6 кб.
fck_button.html
2010-02-15
3 кб.
fck_checkbox.html
2010-02-15
3 кб.
fck_colorselector.html
2010-02-15
5 кб.
fck_div.html
2010-02-15
11 кб.
fck_docprops.html
2010-02-15
22 кб.
fck_flash.html
2010-02-15
6 кб.
fck_form.html
2010-02-15
3 кб.
fck_hiddenfield.html
2010-02-15
3 кб.
fck_image.html
2010-02-15
10 кб.
fck_link.html
2010-02-15
13 кб.
fck_listprop.html
2010-02-15
4 кб.
fck_paste.html
2010-02-15
12 кб.
fck_radiobutton.html
2010-02-15
3 кб.
fck_replace.html
2010-02-15
17 кб.
fck_scayt.html
2010-02-15
23 кб.
fck_select.html
2010-02-15
6 кб.
fck_smiley.html
2010-02-15
3 кб.
fck_source.html
2010-02-15
2 кб.
fck_specialchar.html
2010-02-15
5 кб.
fck_spellerpages.html
2010-02-15
2 кб.
fck_table.html
2010-02-15
14 кб.
fck_tablecell.html
2010-02-15
10 кб.
fck_template.html
2010-02-15
6 кб.
fck_textarea.html
2010-02-15
3 кб.
fck_textfield.html
2010-02-15
4 кб.
/admin/fckeditor/editor/dialog
Загрузить файлы
Файл 1
Файл 2
Файл 3