Thanks for your help guys.
I have gone for the "Iframe SSI script II"
URL= http://www.dynamicdrive.com/dynamici...iframessi2.htm
However Im experiencing some problems which I hope you can help me out with.
I currently using a Portal site which is hosted on microsoft sharepoint services 2003, and I have allocated a Tree Menu on the left hand side of the page which when you click on the link it opens in the iFrame allocated in the middle of the page. I have added the Iframe SSI script II and seems to work fine when you click a topic on the tree menu it changes perfectly but when you change back to the homepage it stays the same height as the longest page you have been in. I cant figure out why this is happening? I have provided my coding below.
Tree Menu
Code:
<head>
<script type="text/javascript" src="http://hrportal.intranet.point/sites/MyHR/Tree%20Script/jquery-1.2.2.pack.js"></script>
<script type="text/javascript" src="http://hrportal.intranet.point/sites/MyHR/Tree%20Script/ddaccordion.js">
/***********************************************
* Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/
</script>
<script type="text/javascript">
ddaccordion.init({
headerclass: "submenuheader", //Shared CSS class name of headers group
contentclass: "submenu", //Shared CSS class name of contents group
collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
animatedefault: false, //Should contents open by default be animated into view?
persiststate: true, //persist state of opened contents within browser session?
toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
togglehtml: ["suffix", "<img src='http://hrportal.intranet.point/sites/MyHR/Tree%20Script/plus.gif' class='statusicon' />", "<img src='http://hrportal.intranet.point/sites/MyHR/Tree%20Script/minus.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively ["position", "html1", "html2"] (see docs)
animatespeed: "slow", //speed of animation: "fast", "normal", or "slow"
oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
myiframe=window.frames["myiframe"]
if (expandedindices.length>0) //if there are 1 or more expanded headers
myiframe.location.replace(headers[expandedindices.pop()].getAttribute('href')) //Get "href" attribute of final expanded header to load into IFRAME
},
onopenclose:function(header, index, state, isclicked){ //custom code to run whenever a header is opened or closed
if (state=="block" && isclicked==true){ //if header is expanded and as the result of the user clicking on it
myiframe.location.replace(header.getAttribute('href'))
}
}
})
</script>
<style type="text/css">
.glossymenu{
margin: 5px 0;
padding: 0;
width: 170px; /*width of menu*/
border: 1px solid #9A9A9A;
border-bottom-width: 0;
}
.glossymenu a.menuitem{
background: black url(http://hrportal.intranet.point/sites/MyHR/Tree%20Script/glossyback.gif) repeat-x bottom left;
font: bold 14px "Arial", "Arial", Verdana, Helvetica, sans-serif;
color: white;
display: block;
position: relative; /*To help in the anchoring of the ".statusicon" icon image*/
width: auto;
padding: 4px 0;
padding-left: 10px;
text-decoration: none;
}
.glossymenu a.menuitem:visited, .glossymenu .menuitem:active{
color: white;
}
.glossymenu a.menuitem .statusicon{ /*CSS for icon image that gets dynamically added to headers*/
position: absolute;
top: 5px;
right: 5px;
border: none;
}
.glossymenu a.menuitem:hover{
background-image: url(http://hrportal.intranet.point/sites/MyHR/Tree%20Script/glossyback2.gif);
}
.glossymenu div.submenu{ /*DIV that contains each sub menu*/
background: white;
}
.glossymenu div.submenu ul{ /*UL of each sub menu*/
list-style-type: none;
margin: 0;
padding: 0;
}
.glossymenu div.submenu ul li{
border-bottom: 1px solid blue;
}
.glossymenu div.submenu ul li a{
display: block;
font: normal 13px "Arial", "Arial", Verdana, Helvetica, sans-serif;
color: black;
text-decoration: none;
padding: 2px 0;
padding-left: 10px;
}
.glossymenu div.submenu ul li a:hover{
background: #FFFFFF;
colorz: white;
}
</style>
</head>
<body>
<div class="glossymenu">
<a class="menuitem" href="http://hrportal.intranet.point/sites/MHR/Pages/Welcome%20to%20MyHR.aspx?PageView=Shared" target="myiframe">Homepage</a>
<a class="menuitem submenuheader" href="http://hrportal.intranet.point/sites/MyHR/Sub%20Pages/Absence%20and%20Attendance.aspx?PageView=Shared" target="myiframe">Absence & Attendance</a>
<div class="submenu">
<ul>
<li><a href="http://hrportal.intranet.point/sites/MyHR/Sub%20Pages/Sick%20Absence.aspx?PageView=Shared" target="myiframe">Sick Absence</a></li>
<li><a href="http://hrportal.intranet.point/sites/MyHR/Sub%20Pages/Unauthorised%20Absence.aspx" target="myiframe">Unauthorised Absence</a></li>
<li><a href="http://hrportal.intranet.point/sites/MyHR/Sub%20Pages/Family%20Friendly.aspx?PageView=Shared" target="myiframe">Family Friendly</a></li>
</ul>
</div>
<a class="menuitem submenuheader" href="http://hrportal.intranet.point/sites/MyHR/Sub%20Pages/Managing%20Employees.aspx?PageView=Shared" target="myiframe">Managing Employees</a>
<div class="submenu">
<ul>
<li><a href="http://hrportal.intranet.point/sites/MyHR/Sub%20Pages/Bullying%20and%20Harassment.aspx?PageView=Shared" target="myiframe">Bullying and Harassment</a></li>
<li><a href="http://hrportal.intranet.point/sites/MyHR/Sub%20Pages/Conduct.aspx?PageView=Shared" target="myiframe">Conduct</a></li>
<li><a href="http://hrportal.intranet.point/sites/MyHR/Sub%20Pages/Grievance.aspx?PageView=Shared" target="myiframe">Grievance</a></li>
</ul>
</div>
<a class="menuitem submenuheader" href="http://hrportal.intranet.point/sites/MyHR/Sub%20Pages/Document%20Library.aspx?PageView=Shared" target="myiframe">Document Library</a>
<div class="submenu">
<ul>
<li><a href="http://hrportal.intranet.point/sites/MyHR/Sub%20Pages/Absence%20and%20Attendance%20Document%20Library.aspx" target="myiframe">Absence & Attendance</a></li>
<li><a href="http://hrportal.intranet.point/sites/MyHR/Sub%20Pages/Managing%20Employees%20Document%20Library.aspx?SortField=LinkFilenameNoMenu&SortDir=Asc&View=%7b2FE691E7%2dADAA%2d4D0A%2d937C%2d182BF7F6924F%7d&PageView=Shared" target="myiframe">Managing Employees</a></li>
</ul>
</div>
<a class="menuitem" href="http://hrportal.intranet.point/sites/MyHR/Sub%20Pages/Ask%20MyHR.aspx?PageView=Shared" target="myiframe">Ask MyHR</a>
<a class="menuitem" href="http://www.dynamicdrive.com/" target="myiframe">MyHR Advice Line</a>
<a class="menuitem" href="http://www.dynamicdrive.com/" target="myiframe">User Guide</a>
<a class="menuitem" href="http://www.dynamicdrive.com/" target="myiframe">MyHR Case Viewer</a>
<a class="menuitem" href="javascript:loadintoIframe('myframe', 'http://www.dynamicdrive.com/')" target="myiframe">Management Information</a>
</div>
</body>
</html>
Bookmarks