~pablocapeluto/cds-php/devel-3.1

« back to all changes in this revision

Viewing changes to editor/dialog/fck_docprops/fck_document_preview.html

  • Committer: pcapeluto at gmail
  • Date: 2010-08-20 17:51:08 UTC
  • Revision ID: pcapeluto@gmail.com-20100820175108-jyi8dbyj15uy9p4i
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
2
<!--
 
3
 * FCKeditor - The text editor for internet
 
4
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
 
5
 * 
 
6
 * Licensed under the terms of the GNU Lesser General Public License:
 
7
 *              http://www.opensource.org/licenses/lgpl-license.php
 
8
 * 
 
9
 * For further information visit:
 
10
 *              http://www.fckeditor.net/
 
11
 * 
 
12
 * "Support Open Source software. What about a donation today?"
 
13
 * 
 
14
 * File Name: fck_document_preview.html
 
15
 *      Preview shown in the "Document Properties" dialog window.
 
16
 * 
 
17
 * File Authors:
 
18
 *              Frederico Caldeira Knabben (fredck@fckeditor.net)
 
19
-->
 
20
<html>
 
21
<head>
 
22
<title>Document Properties - Preview</title>
 
23
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 
24
<meta name="robots" content="noindex, nofollow">
 
25
<script language="javascript">
 
26
 
 
27
var eBase = parent.FCK.EditorDocument.getElementsByTagName( 'BASE' ) ;
 
28
if ( eBase.length > 0 && eBase[0].href.length > 0 )
 
29
{
 
30
        document.write( '<base href="' + eBase[0].href + '">' ) ;
 
31
}
 
32
 
 
33
window.onload = function()
 
34
{
 
35
        if ( typeof( parent.OnPreviewLoad ) == 'function' )
 
36
                parent.OnPreviewLoad( window, document.body ) ;
 
37
}
 
38
 
 
39
function SetBaseHRef( baseHref )
 
40
{
 
41
        var eBase = document.createElement( 'BASE' ) ;
 
42
        eBase.href = baseHref ;
 
43
 
 
44
        var eHead = document.getElementsByTagName( 'HEAD' )[0] ;
 
45
        eHead.appendChild( eBase ) ;
 
46
}
 
47
 
 
48
function SetLinkColor( color )
 
49
{
 
50
        if ( color && color.length > 0 )
 
51
                document.getElementById('eLink').style.color = color ;
 
52
        else
 
53
                document.getElementById('eLink').style.color = window.document.linkColor ;
 
54
}
 
55
 
 
56
function SetVisitedColor( color )
 
57
{
 
58
        if ( color && color.length > 0 )
 
59
                document.getElementById('eVisited').style.color = color ;
 
60
        else
 
61
                document.getElementById('eVisited').style.color = window.document.vlinkColor ;
 
62
}
 
63
 
 
64
function SetActiveColor( color )
 
65
{
 
66
        if ( color && color.length > 0 )
 
67
                document.getElementById('eActive').style.color = color ;
 
68
        else
 
69
                document.getElementById('eActive').style.color = window.document.alinkColor ;
 
70
}
 
71
                </script>
 
72
</head>
 
73
<body>
 
74
<table width="100%" height="100%" cellpadding="0" cellspacing="0"
 
75
        border="0">
 
76
        <tr>
 
77
                <td align="center" valign="middle">Normal Text</td>
 
78
                <td id="eLink" align="center" valign="middle"><u>Link Text</u></td>
 
79
        </tr>
 
80
        <tr>
 
81
                <td id="eVisited" valign="middle" align="center"><u>Visited
 
82
                Link</u></td>
 
83
                <td id="eActive" valign="middle" align="center"><u>Active
 
84
                Link</u></td>
 
85
        </tr>
 
86
</table>
 
87
<br>
 
88
<br>
 
89
<br>
 
90
<br>
 
91
<br>
 
92
<br>
 
93
<br>
 
94
<br>
 
95
<br>
 
96
<br>
 
97
<br>
 
98
<br>
 
99
<br>
 
100
<br>
 
101
<br>
 
102
<br>
 
103
</body>
 
104
</html>