1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3
* FCKeditor - The text editor for internet
4
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
6
* Licensed under the terms of the GNU Lesser General Public License:
7
* http://www.opensource.org/licenses/lgpl-license.php
9
* For further information visit:
10
* http://www.fckeditor.net/
12
* "Support Open Source software. What about a donation today?"
14
* File Name: fck_document_preview.html
15
* Preview shown in the "Document Properties" dialog window.
18
* Frederico Caldeira Knabben (fredck@fckeditor.net)
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">
27
var eBase = parent.FCK.EditorDocument.getElementsByTagName( 'BASE' ) ;
28
if ( eBase.length > 0 && eBase[0].href.length > 0 )
30
document.write( '<base href="' + eBase[0].href + '">' ) ;
33
window.onload = function()
35
if ( typeof( parent.OnPreviewLoad ) == 'function' )
36
parent.OnPreviewLoad( window, document.body ) ;
39
function SetBaseHRef( baseHref )
41
var eBase = document.createElement( 'BASE' ) ;
42
eBase.href = baseHref ;
44
var eHead = document.getElementsByTagName( 'HEAD' )[0] ;
45
eHead.appendChild( eBase ) ;
48
function SetLinkColor( color )
50
if ( color && color.length > 0 )
51
document.getElementById('eLink').style.color = color ;
53
document.getElementById('eLink').style.color = window.document.linkColor ;
56
function SetVisitedColor( color )
58
if ( color && color.length > 0 )
59
document.getElementById('eVisited').style.color = color ;
61
document.getElementById('eVisited').style.color = window.document.vlinkColor ;
64
function SetActiveColor( color )
66
if ( color && color.length > 0 )
67
document.getElementById('eActive').style.color = color ;
69
document.getElementById('eActive').style.color = window.document.alinkColor ;
74
<table width="100%" height="100%" cellpadding="0" cellspacing="0"
77
<td align="center" valign="middle">Normal Text</td>
78
<td id="eLink" align="center" valign="middle"><u>Link Text</u></td>
81
<td id="eVisited" valign="middle" align="center"><u>Visited
83
<td id="eActive" valign="middle" align="center"><u>Active