Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Display issue with IE 5.5


Message #1 by "Alison Helling" <agrad95616@y...> on Thu, 13 Feb 2003 18:45:46
try Z-Index properties...
if it doesn't solve the problem, then...i guess u'll have to switch the divs
around so it doesn't get in the way,

----- Original Message -----
From: "Alison Helling" <agrad95616@y...>
To: "javascript" <javascript@p...>
Sent: Thursday, February 13, 2003 6:45 PM
Subject: [javascript] Display issue with IE 5.5


> I have the following code, which displays correctly in IE 5.0.  When I
> pull up my app in IE 5.5, the DPDiv displays under the CLRTOP div instead
> of on top of the div.  (So in 5.0 it appears as 1 box that you switch tabs
> rather than two boxes.)  Any suggestions would be appreciated.
>
> Thanks,
> Alison
>
> <script>
> var STATIC=top.frames("STATIC");
> window.attachEvent("onload",DMInit);
>
> activeTabColor="darkGray";
> inactiveTabColor="silver";
>
> function DMInit(){
> CLRTOP.parentElement.insertCell().id="DPText";
> CLRTOP.parentElement.insertCell().id="RightSpacer";
> DPText.innerText="Dialog Prompts";
> DPText.className="BLUEBK";
> CLRTOP.parentElement.parentElement.rows(1).cells
> (0).colSpan=3;
> CLRTOP.parentElement.parentElement.rows(1).cells
> (0).width=305;
> CLRTOP.width=70;
> DPText.width=90;
> RightSpacer.width=145;
>
> CLRTOP.attachEvent("onclick",tabClick);
> DPText.attachEvent("onclick",tabClick);
>
> ResultsDiv.insertAdjacentHTML("AfterEnd",'<DIV id="DPDiv"
> style=height:260><TEXTAREA ID="DPTextArea" style=position:relative;left:11
> READONLY COLS=35 ROWS=15></TEXTAREA></DIV>');
>
> CLRTOP.style.cursor="hand";
> DPText.style.cursor="hand";
> document.all.QPACT.attachEvent("onfocus",tabClick);
> setActiveTab("DPDiv");
>
> }
>
> function tabClick(){
> setActiveTab(event.srcElement.id);
> }
>
> function setActiveTab(tab){
> if(tab=="CLRTOP"||tab=="QPACT"){
> CLRTOP.style.borderTop="2px THREEDHIGHLIGHT solid";
> CLRTOP.style.borderRight="1px THREEDDARKSHADOW
> solid";
> CLRTOP.style.borderLeft="1px THREEDHIGHLIGHT
> solid";
>
> DPText.style.borderTop="1px THREEDHIGHLIGHT solid";
> DPText.style.borderRight="1px THREEDDARKSHADOW
> solid";
> DPText.style.borderLeft="1px THREEDDARKSHADOW
> solid";
>
> ResultsDiv.style.height=260;
> DPDiv.style.display="none";
> }else{
> DPText.style.borderTop="2px THREEDHIGHLIGHT solid";
> DPText.style.borderRight="1px THREEDDARKSHADOW
> solid";
> DPText.style.borderLeft="1px THREEDHIGHLIGHT
> solid";
>
> CLRTOP.style.borderTop="1px THREEDHIGHLIGHT solid";
> CLRTOP.style.borderRight="1px THREEDHIGHLIGHT
> solid";
> CLRTOP.style.borderLeft="1px THREEDHIGHLIGHT
> solid";
>
> ResultsDiv.style.height=0;
> DPDiv.style.display="inline";
> }
> }
>
> function initDPTextArea(){
> document.all.DPTextArea.value="Dialog Prompts:\n";
> for(var i=0;i<STATIC.DMPrompts.length;i++){
> if(evalPromptCondition(i)){
> document.all.DPTextArea.value+="-"
>
> document.all.DPTextArea.value+=STATIC.DMPrompts[i][2];
> document.all.DPTextArea.value+="\n";
> }
> }
> }
>
> function evalPromptCondition(i){
> if(STATIC.DMPrompts[i][3]=="")
> return false;
> var ans;
> var condition;
> condition=STATIC.DMPrompts[i][3];
>
> condition=condition.replace(/[\x5B](DTPYMDUE)[\x5D][ ]*
> (==|!=|<|>|<=|>=)([^&\|)]*)/gi,"STATIC.convertMMDDYYtoYYYYMMDD([$1],true)
> $2STATIC.convertMMDDYYtoYYYYMMDD('$3',true)");
> condition=condition.replace(/[\x5B](LSNONDT|DTSTAT)[\x5D]
> [ ]*(==|!=|<|>|<=|>=)([^&\|)]*)/gi,"STATIC.convertYYMMDDtoYYYYMMDD
> ([$1],false)$2STATIC.convertYYMMDDtoYYYYMMDD('$3',false)");
> condition=condition.replace(/[\x5B](CRLNCHGDT)[\x5D][ ]*
> (==|!=|<|>|<=|>=)([^&\|)]*)/gi,"STATIC.convertMMYYtoYYYYMMDD([$1],false)
> $2STATIC.convertMMYYtoYYYYMMDD('$3',false)");
>
> condition=condition.replace(/[\x5B]([^\x5D]*)
> [\x5D]/g,"STATIC.Tag['$1']"); //This converts [fieldName] to STATIC.Tag
> [fieldName]
> eval("ans=("+condition+");");
>
> return ans;
> }
> </script>
>
>



==========================================================
 他花1元挽回情人的心
 http://edm-prg.epaper.com.tw/click.php?ad_code=1975
==========================================================
 PC home Online 網路家庭:會員第一,台灣最大的入口網站...
==========================================================

  Return to Index