event refactor, landing on HEAD!
[freeside.git] / httemplate / elements / fckeditor / editor / dialog / fck_docprops / fck_document_preview.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">\r
2 <!--\r
3  * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
4  * Copyright (C) 2003-2007 Frederico Caldeira Knabben\r
5  *\r
6  * == BEGIN LICENSE ==\r
7  *\r
8  * Licensed under the terms of any of the following licenses at your\r
9  * choice:\r
10  *\r
11  *  - GNU General Public License Version 2 or later (the "GPL")\r
12  *    http://www.gnu.org/licenses/gpl.html\r
13  *\r
14  *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
15  *    http://www.gnu.org/licenses/lgpl.html\r
16  *\r
17  *  - Mozilla Public License Version 1.1 or later (the "MPL")\r
18  *    http://www.mozilla.org/MPL/MPL-1.1.html\r
19  *\r
20  * == END LICENSE ==\r
21  *\r
22  * Preview shown in the "Document Properties" dialog window.\r
23 -->\r
24 <html>\r
25         <head>\r
26                 <title>Document Properties - Preview</title>\r
27                 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
28                 <meta name="robots" content="noindex, nofollow">\r
29                 <script language="javascript">\r
30 \r
31 var eBase = parent.FCK.EditorDocument.getElementsByTagName( 'BASE' ) ;\r
32 if ( eBase.length > 0 && eBase[0].href.length > 0 )\r
33 {\r
34         document.write( '<base href="' + eBase[0].href + '">' ) ;\r
35 }\r
36 \r
37 window.onload = function()\r
38 {\r
39         if ( typeof( parent.OnPreviewLoad ) == 'function' )\r
40                 parent.OnPreviewLoad( window, document.body ) ;\r
41 }\r
42 \r
43 function SetBaseHRef( baseHref )\r
44 {\r
45         var eBase = document.createElement( 'BASE' ) ;\r
46         eBase.href = baseHref ;\r
47 \r
48         var eHead = document.getElementsByTagName( 'HEAD' )[0] ;\r
49         eHead.appendChild( eBase ) ;\r
50 }\r
51 \r
52 function SetLinkColor( color )\r
53 {\r
54         if ( color && color.length > 0 )\r
55                 document.getElementById('eLink').style.color = color ;\r
56         else\r
57                 document.getElementById('eLink').style.color = window.document.linkColor ;\r
58 }\r
59 \r
60 function SetVisitedColor( color )\r
61 {\r
62         if ( color && color.length > 0 )\r
63                 document.getElementById('eVisited').style.color = color ;\r
64         else\r
65                 document.getElementById('eVisited').style.color = window.document.vlinkColor ;\r
66 }\r
67 \r
68 function SetActiveColor( color )\r
69 {\r
70         if ( color && color.length > 0 )\r
71                 document.getElementById('eActive').style.color = color ;\r
72         else\r
73                 document.getElementById('eActive').style.color = window.document.alinkColor ;\r
74 }\r
75                 </script>\r
76         </head>\r
77         <body>\r
78                 <table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">\r
79                         <tr>\r
80                                 <td align="center" valign="middle">\r
81                                         Normal Text\r
82                                 </td>\r
83                                 <td id="eLink" align="center" valign="middle">\r
84                                         <u>Link Text</u>\r
85                                 </td>\r
86                         </tr>\r
87                         <tr>\r
88                                 <td id="eVisited" valign="middle" align="center">\r
89                                         <u>Visited Link</u>\r
90                                 </td>\r
91                                 <td id="eActive" valign="middle" align="center">\r
92                                         <u>Active Link</u>\r
93                                 </td>\r
94                         </tr>\r
95                 </table>\r
96                 <br>\r
97                 <br>\r
98                 <br>\r
99                 <br>\r
100                 <br>\r
101                 <br>\r
102                 <br>\r
103                 <br>\r
104                 <br>\r
105                 <br>\r
106                 <br>\r
107                 <br>\r
108                 <br>\r
109                 <br>\r
110                 <br>\r
111                 <br>\r
112         </body>\r
113 </html>\r