home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2006 April / DPPRO0406DVD.ISO / Essentials / Programming / Eclipse SDK / eclipse-SDK-3.1.1-win32.exe / eclipse / plugins / org.eclipse.help.webapp_3.1.0 / advanced / content.jsp < prev    next >
Encoding:
Text File  |  2005-09-29  |  2.2 KB  |  71 lines

  1. <%--
  2.  Copyright (c) 2000, 2004 IBM Corporation and others.
  3.  All rights reserved. This program and the accompanying materials 
  4.  are made available under the terms of the Eclipse Public License v1.0
  5.  which accompanies this distribution, and is available at
  6.  http://www.eclipse.org/legal/epl-v10.html
  7.  
  8.  Contributors:
  9.      IBM Corporation - initial API and implementation
  10. --%>
  11. <%@ include file="fheader.jsp"%>
  12.  
  13. <% 
  14.     LayoutData data = new LayoutData(application,request, response);
  15.     WebappPreferences prefs = data.getPrefs();
  16. %>
  17.  
  18. <html>
  19.  
  20. <head>
  21. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  22. <title><%=ServletResources.getString("Help", request)%></title>
  23.  
  24. <style type="text/css">
  25. <% 
  26. if (data.isMozilla()) {
  27. %>
  28. HTML {
  29.     background:<%=prefs.getToolbarBackground()%>;
  30.     border-<%=isRTL?"left":"right"%>:1px solid ThreeDShadow;
  31. }
  32. <% 
  33. } else {
  34. %>
  35. FRAMESET {
  36.     border-top:1px solid ThreeDShadow;
  37.     border-left:1px solid ThreeDShadow;
  38.     border-right:1px solid ThreeDShadow;
  39.     border-bottom:1px solid ThreeDShadow;
  40. }
  41. <%
  42. }
  43. %>
  44. </style>
  45.  
  46. <script language="JavaScript">
  47.  
  48. function onloadHandler(e)
  49. {
  50. <% if (data.isIE() || data.isMozilla() && "1.2.1".compareTo(data.getMozillaVersion()) <=0){
  51. %>    var h=window.ContentToolbarFrame.document.getElementById("titleText").offsetHeight; <%-- default 13 --%>
  52.     if(h<=19){
  53.         return; <%-- no need to resize up to 19px --%>
  54.     }
  55.     document.getElementById("contentFrameset").setAttribute("rows", (11+h)+",*"); <%-- default 24 --%>
  56.     window.ContentToolbarFrame.document.getElementById("titleTextTableDiv").style.height=(9+h)+"px"; <%-- default 22 --%>
  57. <%}%>
  58. }
  59. </script>
  60.  
  61. </head>
  62.  
  63.  
  64. <frameset id="contentFrameset" onload="onloadHandler()" rows="24,*" frameborder="0" framespacing="0" border=0 spacing=0>
  65.     <frame name="ContentToolbarFrame" title="<%=ServletResources.getString("topicViewToolbar", request)%>" src='<%="contentToolbar.jsp"+data.getQuery()%>'  marginwidth="0" marginheight="0" scrolling="no" frameborder="0" noresize=0>
  66.     <frame ACCESSKEY="K" name="ContentViewFrame" title="<%=ServletResources.getString("topicView", request)%>" src='<%=data.getContentURL()%>'  marginwidth="10"<%=(data.isIE() && "6.0".compareTo(data.getIEVersion()) <=0)?"scrolling=\"yes\"":""%> marginheight="0" frameborder="0" >
  67. </frameset>
  68.  
  69. </html>
  70.  
  71.