Forums Archive Index > SmartMenus 5 > Menu does not display in IE 6

Author: Manu

Date: 19 Jan 2006 1:19 am

I have used dynamic js loader to load the menu but it does not show the menu there is no error on displaying.

//SAMPLE CODE
<?

$ids="mnu/s_loaders".$id.".js";

?>

<td>
<IMG height=185 alt="" src="image/cm_fill.gif" width=100 border=0 name=getStart>
</td>

<script type="text/javascript" language="javascript" src=<? echo $ids ?>></script>

The above code is for to load the loaders. And below is the js script ..

//SAMPLE CODE
s_hideTimeout=500;
s_subShowTimeout=300;
s_subMenuOffsetX=4;
s_subMenuOffsetY=0;
s_showLinkCursor=true;
s_statusShowLinks=true;
s_keepHighlighted=true;
s_autoSELECTED=true;
s_autoSELECTEDItemsClickable=false;
s_scrollingInterval=30;
s_rightToLeft=false;
s_hideSELECTsInIE=false;
s_target='self';
s_CSSmain=['#5F420b','#5F420b',0,'#fbf9da',0,'#fbf9da','#ECE8AE','#333333','#333333','Georgia, "Times New Roman", Times,serif','12px','2','bold','left',2,0,'#5F420b','',true,'img/arrow.gif','img/arrowover.gif',7,7,5,'#fbf9da','#000000','menu_images/arrowover.gif',false,'','',0,0,'smNormal','smOver',''];
s_CSSsub=['#5F420b','#5F420b',0,'#fbf9da',0,'#fbf9da','#ECE8AE','#333333','#333333','Georgia, "Times New Roman", Times,serif','12px','2','bold','left',2,0,'#5F420b','',true,'img/arrow.gif','img/arrowover.gif',7,7,5,'#fbf9da','#000000','menu_images/arrowover.gif',false,'','',0,0,'smNormal','smOver',''];

function s_getStart(a){
var bodyStyleMarginTop=0;
var o=document.images["getStart"];if(!o)return a=="x"?-630:0;
if(s_nS4)return a=="x"?o.x:o.y;
var oP,oC,ieW;oP=o.offsetParent;oC=a=="x"?o.offsetLeft:o.offsetTop;
ieW=s_iE&&!s_mC?1:0;
while(oP){if(ieW&&oP.tagName&&oP.tagName.toLowerCase()=="table"&&oP.border&&oP.border>0)oC++;
oC+=a=="x"?oP.offsetLeft:oP.offsetTop;oP=oP.offsetParent};
if(s_kN31p&&!s_kN32p){return a=="x"?(document.body.style&&document.body.style.marginLeft?parseInt(document.body.style.marginLeft)+oC:document.body.marginWidth?parseInt(document.body.marginWidth)+oC:document.body.leftMargin?parseInt(document.body.leftMargin)+oC:oC+10):(document.body.style&&document.body.style.marginTop?parseInt(document.body.style.marginTop)+oC:document.body.marginHeight?parseInt(document.body.marginHeight)+oC:document.body.topMargin?parseInt(document.body.topMargin)+oC:oC+10)};
return s_oP&&!s_oP7?a=="x"?oC:oC+bodyStyleMarginTop:oC};
function s_whilePageLoading(){if(typeof s_ML=="undefined"){setTimeout("s_whilePageLoading()",1000);return};var px=s_oP7m||s_nS4?0:"px",os=null,x,y,i,S;for(i=0;i<s_P.length;i++){S=s_[s_P[i]][0];if(typeof(S.T)=="number"&&typeof(S.L)=="number")continue;os=s_nS4?document.layers["s_m"+s_P[i]]:s_getOS("s_m"+s_P[i]);os.left=eval(S.L)+px;os.top=eval(S.T)+px};if(typeof s_Bl=="undefined")setTimeout("s_whilePageLoading()",1000)};s_whilePageLoading();s_ol=window.onload?window.onload:function(){};window.onload=function(){setTimeout('s_Bl=1',3000);s_ol()}

s_add(
{
N:'main',LV:1,MinW:115,T:'s_getStart("y")',L:'s_getStart("x")',P:true,S:s_CSSmain
},
[
{U:'index.php',T:'Home'},
{U:'contents.php?id=5',T:'Introduction'},
{Show:'Department',U:'',T:'Department'}
]
);
s_add(
{N:'Department',LV:2,MinW:150,T:'',L:'',P:false,S:s_CSSsub},
[
{U:'contents.php?id=2',T:'D1'},
{U:'contents.php?id=3',T:'D2'},
{U:'mailto:info@manu.com',T:'D3'}
]
);

Where i got the error so it does not show the menu.


Author: smartmenus

Date: 19 Jan 2006 7:44 am

Hi,

Could you please post a link to a sample page? (You can also send it to me via email if you prefer.)

The problem might be related to incorrect path but I can't be sure without seeing a complete example page. :?

Thanks!