Fh3 V1.2 > FH3 / FHTML / FCKeditor / Editor / Dialog / Fck Colorselector.html

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Fh3 V1.2

Download:
fh3-v1.2.zip

Category:
Form Processors

Archive Content:

FH3 > Buttons

FH3

FH3 > FHTML > FCKeditor > Editor > Css > Behaviors

FH3 > FHTML > FCKeditor > Editor > Css

FH3 > FHTML > FCKeditor > Editor > Css > Images

FH3 > FHTML > FCKeditor > Editor > Dialog > Common

FH3 > FHTML > FCKeditor > Editor > Dialog > Common > Images

FH3 > FHTML > FCKeditor > Editor > Dialog > Common

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck About

FH3 > FHTML > FCKeditor > Editor > Dialog

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Docprops

FH3 > FHTML > FCKeditor > Editor > Dialog

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Flash

FH3 > FHTML > FCKeditor > Editor > Dialog

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Image

FH3 > FHTML > FCKeditor > Editor > Dialog

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Link

FH3 > FHTML > FCKeditor > Editor > Dialog

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Select

FH3 > FHTML > FCKeditor > Editor > Dialog

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Spellerpages > Spellerpages

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Spellerpages > Spellerpages > Server Scripts

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Spellerpages > Spellerpages

FH3 > FHTML > FCKeditor > Editor > Dialog

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Template > Images

FH3 > FHTML > FCKeditor > Editor > Dialog

FH3 > FHTML > FCKeditor > Editor > Dialog > Fck Universalkey

FH3 > FHTML > FCKeditor > Editor > Dialog

FH3 > FHTML > FCKeditor > Editor

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Default

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Default > Connectors > Php

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Default > Connectors

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Default

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Default > Images

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Default > Images > Icons > 32

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Default > Images > Icons

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Default > Images

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Default > Js

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Connectors > Php > Auth

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Connectors > Php > Commands

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Connectors > Php > Commands > Helpers

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Connectors > Php > Commands

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Connectors > Php

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Connectors > Php > Docs

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Connectors > Php > Dtd

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Connectors > Php > Images

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Connectors > Php

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Images

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Images > Icons > 32

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Images > Icons

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Images

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Images > Toolbar

FH3 > FHTML > FCKeditor > Editor > Filemanager > Browser > Mcpuk > Js

FH3 > FHTML > FCKeditor > Editor > Filemanager > Upload > Php

FH3 > FHTML > FCKeditor > Editor > Filemanager > Upload

FH3 > FHTML > FCKeditor > Editor > Images

FH3 > FHTML > FCKeditor > Editor > Images > Smiley > Fun

FH3 > FHTML > FCKeditor > Editor > Images > Smiley > Msn

FH3 > FHTML > FCKeditor > Editor > Images

FH3 > FHTML > FCKeditor > Editor > Js

FH3 > FHTML > FCKeditor > Editor > Lang

FH3 > FHTML > FCKeditor > Editor > Plugins > Placeholder

FH3 > FHTML > FCKeditor > Editor > Plugins > Placeholder > Lang

FH3 > FHTML > FCKeditor > Editor > Plugins > Placeholder

FH3 > FHTML > FCKeditor > Editor > Plugins > Simplecommands

FH3 > FHTML > FCKeditor > Editor > Plugins > Tablecommands

FH3 > FHTML > FCKeditor > Editor > Skins > Default

FH3 > FHTML > FCKeditor > Editor > Skins > Default > Images

FH3 > FHTML > FCKeditor > Editor > Skins > Default > Toolbar

FH3 > FHTML > FCKeditor > Editor > Skins > Office2003

FH3 > FHTML > FCKeditor > Editor > Skins > Office2003 > Images

FH3 > FHTML > FCKeditor > Editor > Skins > Office2003 > Toolbar

FH3 > FHTML > FCKeditor > Editor > Skins > Silver

FH3 > FHTML > FCKeditor > Editor > Skins > Silver > Images

FH3 > FHTML > FCKeditor > Editor > Skins > Silver > Toolbar

FH3 > FHTML > FCKeditor > Editor > Source > Classes

FH3 > FHTML > FCKeditor > Editor > Source > Commandclasses

FH3 > FHTML > FCKeditor > Editor > Source > Globals

FH3 > FHTML > FCKeditor > Editor > Source > Internals

FH3 > FHTML > FCKeditor

FH3 > FHTML > Images

FH3 > FHTML > Js

FH3 > FHTML > Overlib

FH3 > FHTML > Overlib > Mini

FH3 > FHTML > Overlib

FH3 > Fields

FH3 > Includes

FH3 > Language

FH3

FH3 > Yadal

FH3 > Yadal > Test

Fck Colorselector.html:


<!--
 * FCKeditor - The text editor for internet
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
 * 
 * Licensed under the terms of the GNU Lesser General Public License:
 *         http://www.opensource.org/licenses/lgpl-license.php
 * 
 * For further information visit:
 *         http://www.fckeditor.net/
 * 
 * "Support Open Source software. What about a donation today?"
 * 
 * File Name: fck_colorselector.html
 *     Color Selection dialog window.
 * 
 * File Authors:
 *         Frederico Caldeira Knabben (fredck <at> fckeditor <dot> net)
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="robots" content="noindex,  nofollow" />
        <style TYPE="text/css">
            #ColorTable        { cursor: pointer ; cursor: hand ; }
            #hicolor        { height: 74px ; width: 74px ; border-width: 1px ; border-style: solid ; }
            #hicolortext    { width: 75px ; text-align: right ; margin-bottom: 7px ; }
            #selhicolor        { height: 20px ; width: 74px ; border-width: 1px ; border-style: solid ; }
            #selcolor        { width: 75px ; height: 20px ; margin-top: 0px ; margin-bottom: 7px ; }
            #btnClear        { width: 75px ; height: 22px ; margin-bottom: 6px ; }
            .ColorCell        { height: 15px ; width: 15px ; }
        </style>
        <script type="text/javascript">
        
var oEditor = window.parent.InnerDialogLoaded() ;

function OnLoad()
{
    // First of all,  translate the dialog box texts
    oEditor.FCKLanguageManager.TranslatePage(document) ;
    
    CreateColorTable() ;
    
    window.parent.SetOkButton( true ) ;    
    window.parent.SetAutoSize( true ) ;
}

function CreateColorTable()
{
    // Get the target table.
    var oTable = document.getElementById('ColorTable') ;

    // Create the base colors array.
    var aColors = ['00', '33', '66', '99', 'cc', 'ff'] ;

    // This function combines two ranges of three values from the color array into a row.
    function AppendColorRow( rangeA,  rangeB )
    {
        for ( var i = rangeA ; i < rangeA + 3 ; i++ ) 
        { 
            var oRow = oTable.insertRow(-1) ; 

            for ( var j = rangeB ; j < rangeB + 3 ; j++ ) 
            { 
                for ( var n = 0 ; n < 6 ; n++ ) 
                { 
                    AppendColorCell( oRow,  '#' + aColors[j] + aColors[n] + aColors[i] ) ; 
                } 
            } 
        }
    }

    // This function create a single color cell in the color table.
    function AppendColorCell( targetRow,  color )
    {
        var oCell = targetRow.insertCell(-1) ;
        oCell.className = 'ColorCell' ;
        oCell.bgColor = color ;
        
        oCell.onmouseover = function()
        {
            document.getElementById('hicolor').style.backgroundColor = this.bgColor ;
            document.getElementById('hicolortext').innerHTML = this.bgColor ;
        }
        
        oCell.onclick = function()
        {
            document.getElementById('selhicolor').style.backgroundColor = this.bgColor ;
            document.getElementById('selcolor').value = this.bgColor ;
        }
    }

    AppendColorRow( 0,  0 ) ;
    AppendColorRow( 3,  0 ) ;
    AppendColorRow( 0,  3 ) ;
    AppendColorRow( 3,  3 ) ;

    // Create the last row.
    var oRow = oTable.insertRow(-1) ;
    
    // Create the gray scale colors cells.
    for ( var n = 0 ; n < 6 ; n++ )
    {
        AppendColorCell( oRow,  '#' + aColors[n] + aColors[n] + aColors[n] ) ; 
    }
    
    // Fill the row with black cells.
    for ( var i = 0 ; i < 12 ; i++ )
    {
        AppendColorCell( oRow,  '#000000' ) ; 
    }
}

function Clear()
{
    document.getElementById('selhicolor').style.backgroundColor = '' ;
    document.getElementById('selcolor').value = '' ;
}

function ClearActual()
{
    document.getElementById('hicolor').style.backgroundColor = '' ;
    document.getElementById('hicolortext').innerHTML = '&nbsp;' ;
}

function UpdateColor()
{
    try          { document.getElementById('selhicolor').style.backgroundColor = document.getElementById('selcolor').value ; }
    catch (e) { Clear() ; }
}

function Ok()
{
    if ( typeof(window.parent.dialogArguments.CustomValue) == 'function' )
        window.parent.dialogArguments.CustomValue( document.getElementById('selcolor').value ) ;

    return true ;
}
        </script>
    </head>
    <body onload="OnLoad()" scroll="no" style="OVERFLOW: hidden">
        <table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
            <tr>
                <td align="center" valign="middle">
                    <table border="0" cellspacing="5" cellpadding="0" width="100%">
                        <tr>
                            <td valign="top" align="center" nowrap width="100%">
                                <table id="ColorTable" border="0" cellspacing="0" cellpadding="0" width="270" onmouseout="ClearActual();">
                                </table>
                            </td>
                            <td valign="top" align="left" nowrap>
                                <span fckLang="DlgColorHighlight">Highlight</span>
                                <div id="hicolor"></div>
                                <div id="hicolortext">&nbsp;</div>
                                <span fckLang="DlgColorSelected">Selected</span>
                                <div id="selhicolor"></div>
                                <input id="selcolor" type="text" maxlength="20" onchange="UpdateColor();">
                                <br>
                                <input id="btnClear" type="button" fckLang="DlgColorBtnClear" value="Clear" onclick="Clear();" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </body>
</html>


Other Form Processors Scripts:

WebMaster Resources Home

©RingsWorld.com