Having problems ith IE5.5. Before upgrading everything worked fine in IE 4 or 5. Mabye, someone could see something wrong in the code. Problem is that none of the links work in any of the div tabs except the last div tab. Once you click on the last one, it seems to enable all the links in the other div tabs. Any ideas?
// If you want to change this script, you must also make the following
// changes so that FrontPage will not overwrite your new script.
// In the script tag, change type="dynamicoutline" to type="mydynamicoutline"
// In function dynOutlineEnabled, change "dynamicoutline" to "mydynamicoutline"
// Throughout the HTML content, change dynamicoutline to mydynamicoutline
// Change function dynOutline to function mydynOutline in the script
// In the body tag, change onclick="dynOutline()" to onclick="mydynOutline()"
function getControlTag(src)
{
var TRok = false
while ("HTML" != src.tagName)
{
if ("IMG" == src.tagName | | "FONT" == src.tagName | | "A" == src.tagName)
TRok = true
if ("LI" == src.tagName)
return src
if ("TR" == src.tagName)
{
if(TRok)
return src
return null
}
src = src.parentElement
}
return null
}
function dynOutlineEnabled(src)
{
while ("HTML" != src.tagName)
{
if("OL" == src.tagName | | "UL" == src.tagName | | "TABLE" == src.tagName)
if(null != src.getAttribute("dynamicoutline", false))
return true
src = src.parentElement
}
return false
}
function containedIn(src, dest)
{
while ("HTML" != src.tagName)
{
if (src == dest)
return true
src = src.parentElement
}
return false
}
function dynOutline()
{
var ms = navigator.appVersion.indexOf("MSIE");
ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4);
if(!ie4)
return;
var src = event.srcElement
src = getControlTag(src)
if (null == src)
return
if (!dynOutlineEnabled(src))
return
var idx = src.sourceIndex+1
while (idx < document.all.length && containedIn(document.all[idx].parentElement, src))
{
srcTmp = document.all[idx]
tag = srcTmp.tagName
if ("UL" == tag | | "OL" == tag | | "TABLE" == tag)
srcTmp.style.display = srcTmp.style.display == "none" ? "" : "none"
idx++;
}
}
function MM_showHideLayers() { //v2.0
var i, visStr, args, theObj;
args = MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) { //with arg triples (objNS,objIE,visStr)
visStr = args[i+2];
if (navigator.appName == 'Netscape' && document.layers != null) {
theObj = eval(args[i]);
if (theObj) theObj.visibility = visStr;
} else if (document.all != null) { //IE
if (visStr == 'show') visStr = 'visible'; //convert vals
if (visStr == 'hide') visStr = 'hidden';
theObj = eval(args[i+1]);
if (theObj) theObj.style.visibility = visStr;
} }
}
function MM_preloadImages() { //v2.0
if (document.images) {
var imgFiles = MM_preloadImages.arguments;
if (document.preloadArray==null) document.preloadArray = new Array();
var i = document.preloadArray.length;
with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
preloadArray[i] = new Image;
preloadArray[i++].src = imgFiles[j];
} }
}
function MM_swapImage() { //v2.0
var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
if ((objStr.indexOf('document.layers[')==0 && document.layers==null) | |
(objStr.indexOf('document.all[') ==0 && document.all ==null))
objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
obj = eval(objStr);
if (obj != null) {
swapArray[j++] = obj;
swapArray[j++] = (oldArray==null | | oldArray[j-1]!=obj)?obj.src http://www.devshed.com/Talk/Forums/redface.gifldArray[j];
obj.src = MM_swapImage.arguments[i+2];
} }
document.MM_swapImgData = swapArray; //used for restore
}
function MM_checkBrowser(NSvers,NSpass,NSnoPass,IEvers,IEpass,IEnoPass,OBpass,URL,altURL) { //v2.0
var newURL = '', version = parseFloat(navigator.appVersion);
if (navigator.appName.indexOf('Netscape') != -1) {
if (version >= NSvers) {if (NSpass>0) newURL = (NSpass==1)?URL:altURL;}
else {if (NSnoPass>0) newURL = (NSnoPass==1)?URL:altURL;}
} else if (navigator.appName.indexOf('Microsoft') != -1) {
if (version >= IEvers) {if (IEpass>0) newURL = (IEpass==1)?URL:altURL;}
else {if (IEnoPass>0) newURL = (IEnoPass==1)?URL:altURL;}
} else if (OBpass>0) newURL = (OBpass==1)?URL:altURL;
if (newURL) {
window.location = unescape(newURL);
document.MM_returnValue = false;
}
}
//-->
</script>
<meta name="Microsoft Border" content="none">
</head>
<script language="JavaScript">
function GetCookieValue(name) {
var mycookie = " " + document.cookie + ";";
var hasSpace = name.indexOf(" ");
var name2;
if (hasSpace != -1) {
var preString = name.substring(0, hasSpace);
var postString = name.substring(hasSpace + 1 , name.length);
var name2 = preString.toLowerCase() + "_" + postString.toLowerCase();
}
else name2 = name.toLowerCase();
var searchName = "http" + "%3A" + "//www.bsharp.com/helpdesk_online/" + name2 + ".htm";
var startOfCookie = mycookie.indexOf(searchName);
if (startOfCookie != -1) {
var endOfCookie = startOfCookie + searchName.length;
var result = null;
result = unescape(mycookie.substring(startOfCookie,endOfCookie));
}
return result;
}
function GetCookie() {
var result = null;
var mycookie = " " + document.cookie + ";";
var searchName = "http";
var endOfCookie = mycookie.indexOf(searchName) - 1;
// var endOfCookie = searchName.length;
if (endOfCookie > 0) {
// endOfCookie = mycookie.indexOf("'='", startOfCookie);
result = unescape(mycookie.substring(1,endOfCookie));
}
return result;
}
function checkcookie() {
if (top.document.title == "B SHARP Technologies Inc. Client Connections") {
// var login_ok = login_fail();
// if (login_ok != 0) {
// var cookiename = document.forms[0].{{login1->html_name}}.value; //top.frames[0].document.forms[0].clientid.value;
var findcookie = GetCookie();
//alert(findcookie);
if (findcookie != null) {
// var findcookievalue = GetCookieValue(findcookie);
//alert(findcookievalue);
if (top.frames[0].document.forms[0].clientid.value == "" | | top.frames[0].document.forms[0].htmlpage.value == "") {
alert("ID empty");
top.frames[0].document.forms[0].clientid.value = findcookie;
top.frames[0].document.forms[0].htmlpage.value = findcookievalue;
}
// document.location = findcookievalue;
// }
}
}
<table dynamicoutline border="0" cellpadding="0" cellspacing="0" width="90%" msimagelist>
<tr msimagelist>
<td valign="baseline" width="42" msimagelist height="40"><img src="sphere.jpg" width="26" height="26" hspace="8"></td>
<td valign="top" width="100%" height="40"><b><big>
Research & Development</big></b>
<table dynamicoutline border="0" cellpadding="0" cellspacing="0" width="100%" msimagelist>
<tr msimagelist>
<td valign="baseline" width="42" msimagelist></td>
<td valign="top" width="100%">As part of our ongoing research and development to modernize your existing PPH system, we will be regularly updating the links below to keep you up to date as to our progress.<p>Robert Lazar has already spoken with many of you regarding Web based Business Intelligence and real time on-line reporting. Not only will this solution provide each of you with the ability to easily generate reports and make them accesable to your staff via their PC browser, but also can reduce if not eliminate the use of Forthwriter. In addition to these benefits, as the PPH's go through the divestment process, the receiving hospital will have the ability to easily view relevant information neccessary for upper management decision making and information gathering.
<p>Business Intelligence<br>
- The Cognos Business Intelligence system will provide the ability to gain a broader perspective on various PPH data trends (CPI, Financials, Pharmacy, etc). The analysis features of BI will allow users to:</td msimagelist>
</tr>
<table dynamicoutline border="0" cellpadding="0" cellspacing="0" width="100%" msimagelist>
<tr msimagelist>
<td valign="baseline" width="42" msimagelist><img src="sphere_sm.jpg" width="15" height="17" hspace="10"></td>
<td valign="top" width="100%">Slice & Dice to display data in any combination</td msimagelist>
</tr>
<tr msimagelist>
<td valign="baseline" width="42" msimagelist><img src="sphere_sm.jpg" width="15" height="17" hspace="10"></td>
<td valign="top" width="100%">Drill down to the lowest level of detail</td msimagelist>
</tr>
<table dynamicoutline border="0" cellpadding="0" cellspacing="0" width="100%" msimagelist>
<tr msimagelist>
<td valign="baseline" width="42" msimagelist></td>
<td valign="top" width="100%">Corporate Reporting<br>
- The Corporate Reporting project will allow PPH staff to easily create reports using the Cognos graphical based report designer and generator. These reports can then be published on the Internet to allow for users to access via their desktop browser.Please visit our links below for an introduction to Business Intelligence.