plz help me with my overall header!!!


  -----  
Author Message

aka_G
Member

Fri Sep 02, 2005 12:24 am   Post subject: plz help me with my overall header!!!
hi admin,

i would love to say that you have created an awesome mod....it has just made me so exciting then!!! Thanks so much for what you have given to us - the users-

i have done everything except this prob....i could not modify my overall header to suit!!!! i attached below my overall header so could you plz help me!!!!! thank you so much!!!!

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/Solaris/{T_HEAD_STYLESHEET}" type="text/css">

<!--

  NOTICE

  Solaris template, originally custom designed for alternativeSuns forums (http://forum.alternativesuns.com).
  Template created by Jakob Persson (http://www.jakob-persson.com), see my website for more free templates
  and samples of my work.
 
  This template is in no way associated or affiliated with the film by the same name released in 2002, directed
  by Steven Soderbergh and distributed by 20th Century Fox.
  No trademark infringement intended. Choice of name solely meant as a tribute to the science-fiction novel
  by the same name by author Stanislaw Lem (http://www.cyberiad.info).
 
  This template is publicly available for use with the phpBB forum software (http://www.phpbb.com).
 
  This template is copyright (c) Jakob Persson 2003.
 
  Template ID: EkjAk9vYSF2dpi3LiBJR2Vq8jW9NX9pSYAxMfPGy 
 
  Removal or alteration of this notice is strongly prohibited.

-->

<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--

   if ( {PRIVATE_MESSAGE_NEW_FLAG} )
   {
      window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
   }

   
//-->
</script>
<!-- END switch_enable_pm_popup -->

</head>
<body>
<p align="center">
{META}
{NAV_LINKS}<img border="0" src="templates/Solaris/images/xinchao.gif" width="40" height="40"><img border="0" src="templates/Solaris/images/tantinh.gif" width="40" height="40"><img border="0" src="templates/Solaris/images/camxucvn.gif" width="525" height="43"><img border="0" src="templates/Solaris/images/hatho.gif" width="85" height="50"><img border="0" src="templates/Solaris/images/leuleu.gif" width="40" height="40">
<script>
<!--

/*
Copyright ? MaXimuS 2002, All Rights Reserved.
Site: http://maximus.ravecore.com
E-mail: maximusforever@hotmail.com
Script: Static Slide Menu
Version: 6.6 Build 34
*/

NS6=(document.getElementById&&!document.all)
IE=(document.all);IE4=(document.all&&!document.getElementById)
NS=(navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")
OP=(navigator.userAgent.indexOf('Opera')>-1)

tempBar='';barBuilt=0;lastY=0;lastX=0;sI=new Array();moving=setTimeout('null',1);

function moveOut() {
   if(parseInt(ssm.left)<0&&mPos||parseInt(ssm.left)>0&&!mPos){
      clearTimeout(moving);
      moving=setTimeout('moveOut()', slideXSpeed);
      slideMenu((!mPos)?"out":"out");
      }
   else {
      clearTimeout(moving);
      moving=setTimeout('null',1);
   }
}
function moveBack() {
   clearTimeout(moving);
   moving=setTimeout('moveBack1()',waitTime);
}
function moveBack1() {
   if(parseInt(ssm.left)>-(menuWidth+1)&&mPos||parseInt(ssm.left)<menuWidth+1&&!mPos) {
      clearTimeout(moving);
      moving=setTimeout('moveBack1()',slideXSpeed);
      slideMenu((!mPos)?"in":"in");
   }
   else{
      clearTimeout(moving);
      moving=setTimeout('null',1);
   }
}
function slideMenu(way){
   fHow=(NS6)?0.4:0.2;
   if(way=="out")flow=fHow*-(parseInt(ssm.left));
   if(way=="in"&&!mPos)flow=fHow* (menuWidth+1-parseInt(ssm.left));
   else if(way=="in")flow=fHow*-(menuWidth+1+parseInt(ssm.left));
   if(flow>0)flow=Math.ceil(flow);
   else flow=Math.floor(flow);
   if(IE||NS6){
      lastX+=flow;
      bssm.clip="rect(0 "+((!mPos)?(barWidth+menuWidth+3):(barWidth+2+lastX))+" "+(((IE4)?document.body.clientHeight:0)+tssm.offsetHeight)+" "+((!mPos)?(lastX+1):0)+")";
      }
   ssm.left=parseInt(ssm.left)+flow;
   if(NS){
      if(!mPos){
         bssm.clip.left+=flow;
         bssm2.clip.left+=flow;
      }
      else{
         bssm.clip.right+=flow;
         bssm2.clip.right+=flow;
      }
      if(bssm.left+bssm.clip.right>document.width)document.width+=flow;
   }
}

function makeStatic() {
   winY=(IE)?document.body.scrollTop:window.pageYOffset;
   sHow=(NS6)?0.4:0.2;
   if(winY!=lastY&&winY>YOffset-staticYOffset)smooth=sHow*(winY-lastY-YOffset+staticYOffset);
   else if(YOffset-staticYOffset+lastY>YOffset-staticYOffset&&winY<=YOffset-staticYOffset)smooth=sHow*(winY-lastY-(YOffset-(YOffset-winY)));
   else smooth=0;
   if(smooth>0)smooth=Math.ceil(smooth);
   else smooth=Math.floor(smooth);
   bssm.top=parseInt(bssm.top)+smooth;
   lastY=lastY+smooth;
   setTimeout('makeStatic()',slideYSpeed);
}

function menuClick(id) {
   obj=(document.all)?document.all(id):document.getElementById(id);
   with(obj){
      if(event.srcElement.id!=id){
         if(target=="_top")top.location=href;
         else if(target=="_parent")parent.location=href;
         else if(target=="_blank")window.open(href);
         else if(target>""&&top.frames[target])top.frames[target].location=href;
         else if(target>"")eval('window.open("'+href+'","'+target+'")');
         else location=href;
      }
   }
}

function buildBar() {
   if(!barType)tempBar='<IMG SRC="'+barText+'" BORDER="0">';
   else{
      for(b=0;b<barText.length;b++)tempBar+=barText.charAt(b)+"<BR>"
   }
   ssmHTML+='<td align="center" rowspan="100" width="'+barWidth+'" bgcolor="'+barBGColor+'" valign="'+barVAlign+'" align="'+barAlign+'" class="ssmBar" NOWRAP>'+tempBar+'</td>';
}

function initSlide() {
   if (!mPos)lastX=menuWidth
   if ((NS6||IE)&&!OP||(operaFix!=2&&OP)){
      ssm=(NS6)?document.getElementById("thessm").style:document.all("thessm").style;
      tssm=(NS6)?document.getElementById("thessm"):document.all("thessm");
      bssm=(NS6)?document.getElementById("basessm").style:document.all("basessm").style;
      bssm.clip="rect(0 "+(barWidth+2+((!mPos)?menuWidth+1:0))+" "+(((IE4)?document.body.clientHeight:0)+tssm.offsetHeight)+" "+((!mPos)?(menuWidth+1):0)+")";
      if (OP&&operaFix==1)XOff=(!mPos)?document.body.clientWidth-barWidth-3:0;
      bssm.left=(!mPos)?XOff-menuWidth:XOff;
      if(OP)ssm.left=ssm.left;
      bssm.visibility="visible";
      if(NS6&&!OP){
         bssm.top=YOffset;
         if(menuOpacity!=100)ssm.MozOpacity=menuOpacity/100;
         slideIsGo=window.innerHeight>tssm.offsetHeight+staticYOffset;
      }
      else{
         if(menuOpacity!=100)ssm.filter="alpha(opacity="+menuOpacity+")";
         slideIsGo=((OP)?window.innerHeight:document.body.clientHeight)>parseInt(tssm.offsetHeight)+staticYOffset;
         }
      if(autoHideXOverflow&&((IE?document.body.clientWidth:window.innerWidth-16)<parseInt(bssm.left)+parseInt(ssm.left)+menuWidth+barWidth+3)){
         document.body.style.overflowX="hidden";
         document.body.style.overflowY="scroll";
      }
   }
   else if(NS){
      bssm=document.layers["basessm1"];
      bssm2=bssm.document.layers["basessm2"];
      ssm=bssm2.document.layers["thessm"];
      bssm.clip.left=(!mPos)?menuWidth+1:0;
      bssm.clip.right=(!mPos)?(menuWidth+barWidth+3):barWidth+2;
      bssm.left=(!mPos)?XOff-menuWidth:XOff;
      ssm.visibility="show";
      slideIsGo=window.innerHeight>ssm.clip.bottom+staticYOffset;
   }
   if(slideY&&(slideOnYOverflow||(!slideOnYOverflow&&slideIsGo)))makeStatic();
   if(!slideX)moveOut();
}

function getXOff() {
   return (((!XAlign)?((IE||OP)?document.body.clientWidth-barWidth-3:window.innerWidth-barWidth-3-17):(XAlign==1)?Math.floor(((IE||OP)?document.body.clientWidth/2-barWidth/2-1.5:window.innerWidth/2-barWidth/2-1.5)):0)+XOffset);
}

function buildMenu() {
   mPos=menuPosition;
   ssmHTML="";
   XOff=getXOff();
   if(IE||NS6)ssmHTML+='<DIV ID="basessm" style="visibility:hidden;Position : Absolute ;Top : '+YOffset+' ;Z-Index : 20;width:'+(barWidth+2)+';"><DIV ID="thessm" style="Position : Absolute ;Left : '+((!mPos)?menuWidth+1:-menuWidth-1)+' ;Top : 0px ;Z-Index : 30;'+((IE)?"width:1px":"")+'" '+((slideX)?'onmouseover="moveOut()" onmouseout="moveBack()")':'')+'>';
   if(NS)ssmHTML+='<LAYER name="basessm1" top="'+YOffset+'" visibility="show" onload="initSlide()"><ILAYER name="basessm2"><LAYER visibility="hide" name="thessm" bgcolor="'+menuBGColor+'" left="'+((!mPos)?menuWidth+1:-menuWidth-1)+'" '+((slideX)?'onmouseover="moveOut()" onmouseout="moveBack()")':'')+'>';
   if(NS6)ssmHTML+='<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+3)+'"><TR><TD>';
   ssmHTML+='<table border="0" cellpadding="0" cellspacing="1" width="'+(menuWidth+barWidth+3)+'" bgcolor="'+((!NS)?menuBGColor:"")+'">';
   for(i=0;i<sI.length;i++){
      ssmHTML+='<TR>';
      if(barBuilt==0&&!mPos){
         buildBar();
         barBuilt=1
      }
      if(sI[i][3]>1)ssmHTML+='<TD BGCOLOR="'+hdrBGColor+'" ALIGN="'+hdrAlign+'" WIDTH="'+menuWidth+'"'+((NS6)?' style="padding:'+hdrPadding+'px"':'><TABLE CELLPADDING="'+hdrPadding+'" CELLSPACING="0" BORDER="0"><TR><TD')+' CLASS="ssmHdr" VALIGN="'+hdrVAlign+'">'+((sI[i][3]==3)?'<a HREF="'+((sI[i][1].indexOf("://")==-1&&sI[i][1].indexOf("../")==-1)?targetDomain:'')+sI[i][1]+'" target="'+sI[i][2]+'" class="ssmHdr">':'')+sI[i][0]+((sI[i][3]==3)?'</a>':'')+((NS6)?'':'</TD></TR></TABLE>')+'</TD>';
      else{
         if(!sI[i][2])sI[i][2]=targetFrame;
         ssmHTML+='<TD WIDTH="'+menuWidth+'"'+(NS&&!sI[i][3]?'':'BGCOLOR="'+linkBGColor+'"')+' '+((NS6)?'CLASS="ssmItem" style="padding:'+linkPadding+'px;" ALIGN="'+linkAlign+'"':'')+' '+((sI[i][3])?'>':'onmouseover="style.backgroundColor=\''+linkOverBGColor+'\'" onmouseout="style.backgroundColor=\''+linkBGColor+'\'" onclick="menuClick(\'item_'+i+'\');"'+(IE?' style="cursor:hand;"':'')+'><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'" bgcolor="'+linkBGColor+'">')+((NS6)?'':'<DIV ALIGN="'+linkAlign+'" CLASS="ssmItem"><TABLE CELLPADDING="'+linkPadding+'" CELLSPACING="0" BORDER="0"><TR><TD VALIGN="'+linkVAlign+'" CLASS="ssmItem">')+((sI[i][3])?'':'<A HREF="'+((sI[i][1].indexOf("://")==-1&&sI[i][1].indexOf("../")==-1)?targetDomain:'')+sI[i][1]+'" target="'+sI[i][2]+'" CLASS="ssmItem" id="item_'+i+'">')+sI[i][0]+''+((sI[i][3])?'':'</A>')+((NS6)?'':'</TD></TR></TABLE></DIV>')+((sI[i][3])?'':'</LAYER></ILAYER>')+'</TD>';
      }
      if(barBuilt==0&&mPos){
         buildBar();
         barBuilt=1;
      }
      ssmHTML+='</TR>';
   }
   ssmHTML+='</table>';
   if(NS6)ssmHTML+='</TD></TR></TABLE>';
   if(IE||NS6){
      ssmHTML+='</DIV></DIV>';
      setTimeout('initSlide();',1);
   }
   if(NS)ssmHTML+='</LAYER></ILAYER></LAYER>';
   document.write(ssmHTML);
}

function addHdr(text){sI[sI.length]=[text, '', '', 2]}

function addLink(text, link, target){if(!link)link="javascript://";sI[sI.length]=[text, link, target, 3]}

function addItem(text, link, target){if(!link)link="javascript://";sI[sI.length]=[text, link, target, 0]}

function addText(text){sI[sI.length]=[text, '', '', 1]}

//window.onresize=function(){setTimeout('alert(getOff());XOff=getXOff();bssm.left=(!mPos)?XOff-menuWidth:XOff;');}

//-->
</script>
<script>
<!--
YOffset=40;
XAlign=2;
XOffset=0;
staticYOffset=20;
waitTime=500;
slideX=1;
slideXSpeed=15;
slideY=1;
slideYSpeed=15;
slideOnYOverflow=1;
autoHideXOverflow=1;
targetFrame="";
targetDomain="";
operaFix=0;
menuOpacity=100;
menuPosition=1;
menuBGColor="black";
menuWidth=125;
hdrBGColor="#000000";
hdrPadding=3;
hdrAlign="left";
hdrVAlign="center";
linkBGColor="#000000";
linkOverBGColor="#000000";
linkAlign="left";
linkVAlign="center";
linkPadding=3;
barWidth=15;
barBGColor="#000000";
barAlign="left";
barVAlign="center";
barType=1;
barText="B?ng ?i?u Khi?n";


//The Menu's Items
addHdr(" CXVn online.");
addItem("Di?n ?àn", "{U_INDEX}", "");
addItem("Âm Nh?c", "{U_MUSIC}", "");
addItem("List Thành Viên", "{U_MEMBERLIST}", "");
addItem("Lư L?ch", "{U_PROFILE}", "");
addItem("Bang H?i", "{U_GROUP_CP}", "");
addItem("Tin Nh?n", "{U_PRIVATEMSGS}", "");
addItem("FAQ", "{U_FAQ}", "");
addItem("T́m Ki?m", "{U_SEARCH}", "");
addItem("{L_LOGIN_LOGOUT}", "{U_LOGIN_LOGOUT}", "");
<!-- BEGIN switch_user_logged_out -->
addItem("??ng Kí", "{U_REGISTER}", "");
<!-- END switch_user_logged_out -->
buildMenu();


//-->
</script>
<table width="750" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td valign="top" class="maintable">
   
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
           
            <td width="50%" valign="top">
         
         <table border="0" align="right" cellpadding="0" cellspacing="1">
                <tr>
                  <td></td>
                  <td></td>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="9" /></td>
                </tr>
                <tr>     
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="10" /></td>
                </tr>
                <tr>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="10" /></td>
                </tr>
                <tr>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="10" /></td>
                </tr>
                <tr>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="15" /></td>
                </tr>
                <tr>
                  <td colspan="2"><a href="{U_PRIVATEMSGS}" name="topnavurl6"><img src="templates/Solaris/images/lang_english/topimg_pms-d.jpg" width="161" height="15" alt="{PRIVATE_MESSAGE_INFO}" name="topnavimg6" border="0" /></a></td>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="8" /></td>
                </tr>
              </table>
          
<SCRIPT language="javascript" src="viettyping.js" type=text/javascript><script language="Javascript" type="text/javascript">

</script> 
       
         </td>
          </tr>
          <tr valign="top">
            <td colspan="2"><img src="templates/Solaris/images/bg_top_border.jpg" width="750" height="51" /></td>
          </tr>
          <tr>             
            <td colspan="2">
         
              <table width="720" border="0" cellpadding="0" cellspacing="0" align="center">
               <tr>                 
                        <td class="mainforumcell">
                  
                  <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                       <tr>
                         <td width="1%"><img src="templates/Solaris/images/spacer.gif" width="10" /></td>
                         <td width="98%">
 

Thoul
Administrator

Sat Sep 03, 2005 6:37 am   Post subject: re: plz help me with my overall header!!!
Give this a try. The "Launch Prillian" link might open the IM Client in a full sized window with this... you've got some kind of special JavaScript menu in this file that may not be fully compatible with the original way the "Launch Prillian" link was intended to work.

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/Solaris/{T_HEAD_STYLESHEET}" type="text/css">

<!--

  NOTICE

  Solaris template, originally custom designed for alternativeSuns forums (http://forum.alternativesuns.com).
  Template created by Jakob Persson (http://www.jakob-persson.com), see my website for more free templates
  and samples of my work.
 
  This template is in no way associated or affiliated with the film by the same name released in 2002, directed
  by Steven Soderbergh and distributed by 20th Century Fox.
  No trademark infringement intended. Choice of name solely meant as a tribute to the science-fiction novel
  by the same name by author Stanislaw Lem (http://www.cyberiad.info).
 
  This template is publicly available for use with the phpBB forum software (http://www.phpbb.com).
 
  This template is copyright (c) Jakob Persson 2003.
 
  Template ID: EkjAk9vYSF2dpi3LiBJR2Vq8jW9NX9pSYAxMfPGy
 
  Removal or alteration of this notice is strongly prohibited.

-->

<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--

   if ( {PRIVATE_MESSAGE_NEW_FLAG} )
   {
      window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
   }

   
//-->
</script>
<!-- END switch_enable_pm_popup -->

<!-- Prillian - Begin Code Additions -->
<!-- BEGIN switch_user_logged_in -->
<script language="JavaScript" type="text/javascript">
<!--
   function prill_launch(url, w, h)
   {
      window.name = 'phpbbmain';
      prillian = window.open(url, 'prillian', 'height=' + h + ', width=' + w + ', innerWidth=' + w + ', innerHeight=' + h + ', resizable, scrollbars');
   }

   if ( {IM_AUTO_POPUP} )
   {
      prill_launch('{U_IM_LAUNCH}', '{IM_WIDTH}', '{IM_HEIGHT}');
   }

//-->
</script>
<!-- END switch_user_logged_in -->
<!-- BEGIN buddy_alert -->
<script language="Javascript" type="text/javascript">
   if ( {buddy_alert.BUDDY_ALERT} )
   {
      window.open('{buddy_alert.U_BUDDY_ALERT}', '_buddyalert', 'HEIGHT=225,resizable=yes,WIDTH=400');
   }
</script>
<!-- END buddy_alert -->
<!-- Prillian - End Code Additions -->
</head>
<body>
<p align="center">
{META}
{NAV_LINKS}<img border="0" src="templates/Solaris/images/xinchao.gif" width="40" height="40"><img border="0" src="templates/Solaris/images/tantinh.gif" width="40" height="40"><img border="0" src="templates/Solaris/images/camxucvn.gif" width="525" height="43"><img border="0" src="templates/Solaris/images/hatho.gif" width="85" height="50"><img border="0" src="templates/Solaris/images/leuleu.gif" width="40" height="40">
<script>
<!--

/*
Copyright ? MaXimuS 2002, All Rights Reserved.
Site: http://maximus.ravecore.com
E-mail: maximusforever@hotmail.com
Script: Static Slide Menu
Version: 6.6 Build 34
*/

NS6=(document.getElementById&&!document.all)
IE=(document.all);IE4=(document.all&&!document.getElementById)
NS=(navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")
OP=(navigator.userAgent.indexOf('Opera')>-1)

tempBar='';barBuilt=0;lastY=0;lastX=0;sI=new Array();moving=setTimeout('null',1);

function moveOut() {
   if(parseInt(ssm.left)<0&&mPos||parseInt(ssm.left)>0&&!mPos){
      clearTimeout(moving);
      moving=setTimeout('moveOut()', slideXSpeed);
      slideMenu((!mPos)?"out":"out");
      }
   else {
      clearTimeout(moving);
      moving=setTimeout('null',1);
   }
}
function moveBack() {
   clearTimeout(moving);
   moving=setTimeout('moveBack1()',waitTime);
}
function moveBack1() {
   if(parseInt(ssm.left)>-(menuWidth+1)&&mPos||parseInt(ssm.left)<menuWidth+1&&!mPos) {
      clearTimeout(moving);
      moving=setTimeout('moveBack1()',slideXSpeed);
      slideMenu((!mPos)?"in":"in");
   }
   else{
      clearTimeout(moving);
      moving=setTimeout('null',1);
   }
}
function slideMenu(way){
   fHow=(NS6)?0.4:0.2;
   if(way=="out")flow=fHow*-(parseInt(ssm.left));
   if(way=="in"&&!mPos)flow=fHow* (menuWidth+1-parseInt(ssm.left));
   else if(way=="in")flow=fHow*-(menuWidth+1+parseInt(ssm.left));
   if(flow>0)flow=Math.ceil(flow);
   else flow=Math.floor(flow);
   if(IE||NS6){
      lastX+=flow;
      bssm.clip="rect(0 "+((!mPos)?(barWidth+menuWidth+3):(barWidth+2+lastX))+" "+(((IE4)?document.body.clientHeight:0)+tssm.offsetHeight)+" "+((!mPos)?(lastX+1):0)+")";
      }
   ssm.left=parseInt(ssm.left)+flow;
   if(NS){
      if(!mPos){
         bssm.clip.left+=flow;
         bssm2.clip.left+=flow;
      }
      else{
         bssm.clip.right+=flow;
         bssm2.clip.right+=flow;
      }
      if(bssm.left+bssm.clip.right>document.width)document.width+=flow;
   }
}

function makeStatic() {
   winY=(IE)?document.body.scrollTop:window.pageYOffset;
   sHow=(NS6)?0.4:0.2;
   if(winY!=lastY&&winY>YOffset-staticYOffset)smooth=sHow*(winY-lastY-YOffset+staticYOffset);
   else if(YOffset-staticYOffset+lastY>YOffset-staticYOffset&&winY<=YOffset-staticYOffset)smooth=sHow*(winY-lastY-(YOffset-(YOffset-winY)));
   else smooth=0;
   if(smooth>0)smooth=Math.ceil(smooth);
   else smooth=Math.floor(smooth);
   bssm.top=parseInt(bssm.top)+smooth;
   lastY=lastY+smooth;
   setTimeout('makeStatic()',slideYSpeed);
}

function menuClick(id) {
   obj=(document.all)?document.all(id):document.getElementById(id);
   with(obj){
      if(event.srcElement.id!=id){
         if(target=="_top")top.location=href;
         else if(target=="_parent")parent.location=href;
         else if(target=="_blank")window.open(href);
         else if(target>""&&top.frames[target])top.frames[target].location=href;
         else if(target>"")eval('window.open("'+href+'","'+target+'")');
         else location=href;
      }
   }
}

function buildBar() {
   if(!barType)tempBar='<IMG SRC="'+barText+'" BORDER="0">';
   else{
      for(b=0;b<barText.length;b++)tempBar+=barText.charAt(b)+"<BR>"
   }
   ssmHTML+='<td align="center" rowspan="100" width="'+barWidth+'" bgcolor="'+barBGColor+'" valign="'+barVAlign+'" align="'+barAlign+'" class="ssmBar" NOWRAP>'+tempBar+'</td>';
}

function initSlide() {
   if (!mPos)lastX=menuWidth
   if ((NS6||IE)&&!OP||(operaFix!=2&&OP)){
      ssm=(NS6)?document.getElementById("thessm").style:document.all("thessm").style;
      tssm=(NS6)?document.getElementById("thessm"):document.all("thessm");
      bssm=(NS6)?document.getElementById("basessm").style:document.all("basessm").style;
      bssm.clip="rect(0 "+(barWidth+2+((!mPos)?menuWidth+1:0))+" "+(((IE4)?document.body.clientHeight:0)+tssm.offsetHeight)+" "+((!mPos)?(menuWidth+1):0)+")";
      if (OP&&operaFix==1)XOff=(!mPos)?document.body.clientWidth-barWidth-3:0;
      bssm.left=(!mPos)?XOff-menuWidth:XOff;
      if(OP)ssm.left=ssm.left;
      bssm.visibility="visible";
      if(NS6&&!OP){
         bssm.top=YOffset;
         if(menuOpacity!=100)ssm.MozOpacity=menuOpacity/100;
         slideIsGo=window.innerHeight>tssm.offsetHeight+staticYOffset;
      }
      else{
         if(menuOpacity!=100)ssm.filter="alpha(opacity="+menuOpacity+")";
         slideIsGo=((OP)?window.innerHeight:document.body.clientHeight)>parseInt(tssm.offsetHeight)+staticYOffset;
         }
      if(autoHideXOverflow&&((IE?document.body.clientWidth:window.innerWidth-16)<parseInt(bssm.left)+parseInt(ssm.left)+menuWidth+barWidth+3)){
         document.body.style.overflowX="hidden";
         document.body.style.overflowY="scroll";
      }
   }
   else if(NS){
      bssm=document.layers["basessm1"];
      bssm2=bssm.document.layers["basessm2"];
      ssm=bssm2.document.layers["thessm"];
      bssm.clip.left=(!mPos)?menuWidth+1:0;
      bssm.clip.right=(!mPos)?(menuWidth+barWidth+3):barWidth+2;
      bssm.left=(!mPos)?XOff-menuWidth:XOff;
      ssm.visibility="show";
      slideIsGo=window.innerHeight>ssm.clip.bottom+staticYOffset;
   }
   if(slideY&&(slideOnYOverflow||(!slideOnYOverflow&&slideIsGo)))makeStatic();
   if(!slideX)moveOut();
}

function getXOff() {
   return (((!XAlign)?((IE||OP)?document.body.clientWidth-barWidth-3:window.innerWidth-barWidth-3-17):(XAlign==1)?Math.floor(((IE||OP)?document.body.clientWidth/2-barWidth/2-1.5:window.innerWidth/2-barWidth/2-1.5)):0)+XOffset);
}

function buildMenu() {
   mPos=menuPosition;
   ssmHTML="";
   XOff=getXOff();
   if(IE||NS6)ssmHTML+='<DIV ID="basessm" style="visibility:hidden;Position : Absolute ;Top : '+YOffset+' ;Z-Index : 20;width:'+(barWidth+2)+';"><DIV ID="thessm" style="Position : Absolute ;Left : '+((!mPos)?menuWidth+1:-menuWidth-1)+' ;Top : 0px ;Z-Index : 30;'+((IE)?"width:1px":"")+'" '+((slideX)?'onmouseover="moveOut()" onmouseout="moveBack()")':'')+'>';
   if(NS)ssmHTML+='<LAYER name="basessm1" top="'+YOffset+'" visibility="show" onload="initSlide()"><ILAYER name="basessm2"><LAYER visibility="hide" name="thessm" bgcolor="'+menuBGColor+'" left="'+((!mPos)?menuWidth+1:-menuWidth-1)+'" '+((slideX)?'onmouseover="moveOut()" onmouseout="moveBack()")':'')+'>';
   if(NS6)ssmHTML+='<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+3)+'"><TR><TD>';
   ssmHTML+='<table border="0" cellpadding="0" cellspacing="1" width="'+(menuWidth+barWidth+3)+'" bgcolor="'+((!NS)?menuBGColor:"")+'">';
   for(i=0;i<sI.length;i++){
      ssmHTML+='<TR>';
      if(barBuilt==0&&!mPos){
         buildBar();
         barBuilt=1
      }
      if(sI[i][3]>1)ssmHTML+='<TD BGCOLOR="'+hdrBGColor+'" ALIGN="'+hdrAlign+'" WIDTH="'+menuWidth+'"'+((NS6)?' style="padding:'+hdrPadding+'px"':'><TABLE CELLPADDING="'+hdrPadding+'" CELLSPACING="0" BORDER="0"><TR><TD')+' CLASS="ssmHdr" VALIGN="'+hdrVAlign+'">'+((sI[i][3]==3)?'<a HREF="'+((sI[i][1].indexOf("://")==-1&&sI[i][1].indexOf("../")==-1)?targetDomain:'')+sI[i][1]+'" target="'+sI[i][2]+'" class="ssmHdr">':'')+sI[i][0]+((sI[i][3]==3)?'</a>':'')+((NS6)?'':'</TD></TR></TABLE>')+'</TD>';
      else{
         if(!sI[i][2])sI[i][2]=targetFrame;
         ssmHTML+='<TD WIDTH="'+menuWidth+'"'+(NS&&!sI[i][3]?'':'BGCOLOR="'+linkBGColor+'"')+' '+((NS6)?'CLASS="ssmItem" style="padding:'+linkPadding+'px;" ALIGN="'+linkAlign+'"':'')+' '+((sI[i][3])?'>':'onmouseover="style.backgroundColor=\''+linkOverBGColor+'\'" onmouseout="style.backgroundColor=\''+linkBGColor+'\'" onclick="menuClick(\'item_'+i+'\');"'+(IE?' style="cursor:hand;"':'')+'><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'" bgcolor="'+linkBGColor+'">')+((NS6)?'':'<DIV ALIGN="'+linkAlign+'" CLASS="ssmItem"><TABLE CELLPADDING="'+linkPadding+'" CELLSPACING="0" BORDER="0"><TR><TD VALIGN="'+linkVAlign+'" CLASS="ssmItem">')+((sI[i][3])?'':'<A HREF="'+((sI[i][1].indexOf("://")==-1&&sI[i][1].indexOf("../")==-1)?targetDomain:'')+sI[i][1]+'" target="'+sI[i][2]+'" CLASS="ssmItem" id="item_'+i+'">')+sI[i][0]+''+((sI[i][3])?'':'</A>')+((NS6)?'':'</TD></TR></TABLE></DIV>')+((sI[i][3])?'':'</LAYER></ILAYER>')+'</TD>';
      }
      if(barBuilt==0&&mPos){
         buildBar();
         barBuilt=1;
      }
      ssmHTML+='</TR>';
   }
   ssmHTML+='</table>';
   if(NS6)ssmHTML+='</TD></TR></TABLE>';
   if(IE||NS6){
      ssmHTML+='</DIV></DIV>';
      setTimeout('initSlide();',1);
   }
   if(NS)ssmHTML+='</LAYER></ILAYER></LAYER>';
   document.write(ssmHTML);
}

function addHdr(text){sI[sI.length]=[text, '', '', 2]}

function addLink(text, link, target){if(!link)link="javascript://";sI[sI.length]=[text, link, target, 3]}

function addItem(text, link, target){if(!link)link="javascript://";sI[sI.length]=[text, link, target, 0]}

function addText(text){sI[sI.length]=[text, '', '', 1]}

//window.onresize=function(){setTimeout('alert(getOff());XOff=getXOff();bssm.left=(!mPos)?XOff-menuWidth:XOff;');}

//-->
</script>
<script>
<!--
YOffset=40;
XAlign=2;
XOffset=0;
staticYOffset=20;
waitTime=500;
slideX=1;
slideXSpeed=15;
slideY=1;
slideYSpeed=15;
slideOnYOverflow=1;
autoHideXOverflow=1;
targetFrame="";
targetDomain="";
operaFix=0;
menuOpacity=100;
menuPosition=1;
menuBGColor="black";
menuWidth=125;
hdrBGColor="#000000";
hdrPadding=3;
hdrAlign="left";
hdrVAlign="center";
linkBGColor="#000000";
linkOverBGColor="#000000";
linkAlign="left";
linkVAlign="center";
linkPadding=3;
barWidth=15;
barBGColor="#000000";
barAlign="left";
barVAlign="center";
barType=1;
barText="B?ng ?i?u Khi?n";


//The Menu's Items
addHdr(" CXVn online.");
addItem("Di?n ?? n", "{U_INDEX}", "");
addItem("Âm Nh?c", "{U_MUSIC}", "");
addItem("List Th? nh Viên", "{U_MEMBERLIST}", "");
addItem("Lư L?ch", "{U_PROFILE}", "");
addItem("Bang H?i", "{U_GROUP_CP}", "");
addItem("Tin Nh?n", "{U_PRIVATEMSGS}", "");
addItem("FAQ", "{U_FAQ}", "");
addItem("T́m Ki?m", "{U_SEARCH}", "");
addItem("{L_LOGIN_LOGOUT}", "{U_LOGIN_LOGOUT}", "");
addItem("{L_IM_LAUNCH}", "{U_IM_LAUNCH}", "prillian");
addItem("{L_CONTACT_MAN}", "{U_CONTACT_MAN}", "");
<!-- BEGIN switch_user_logged_out -->
addItem("??ng Kí", "{U_REGISTER}", "");
<!-- END switch_user_logged_out -->
buildMenu();


//-->
</script>
<table width="750" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td valign="top" class="maintable">
   
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
           
            <td width="50%" valign="top">
         
         <table border="0" align="right" cellpadding="0" cellspacing="1">
                <tr>
                  <td></td>
                  <td></td>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="9" /></td>
                </tr>
                <tr>     
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="10" /></td>
                </tr>
                <tr>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="10" /></td>
                </tr>
                <tr>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="10" /></td>
                </tr>
                <tr>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="15" /></td>
                </tr>
                <tr>
                  <td colspan="2"><a href="{U_PRIVATEMSGS}" name="topnavurl6"><img src="templates/Solaris/images/lang_english/topimg_pms-d.jpg" width="161" height="15" alt="{PRIVATE_MESSAGE_INFO}" name="topnavimg6" border="0" /></a></td>
                  <td><img src="templates/Solaris/images/spacer.gif" width="10" height="8" /></td>
                </tr>
              </table>
         
<SCRIPT language="javascript" src="viettyping.js" type=text/javascript><script language="Javascript" type="text/javascript">

</script>
       
         </td>
          </tr>
          <tr valign="top">
            <td colspan="2"><img src="templates/Solaris/images/bg_top_border.jpg" width="750" height="51" /></td>
          </tr>
          <tr>             
            <td colspan="2">
         
              <table width="720" border="0" cellpadding="0" cellspacing="0" align="center">
               <tr>                 
                        <td class="mainforumcell">
                 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                       <tr>
                         <td width="1%"><img src="templates/Solaris/images/spacer.gif" width="10" /></td>
                         <td width="98%">
 

aka_G
Member

Sun Sep 04, 2005 4:44 am   Post subject: re: plz help me with my overall header!!!
wicked!!! thanks Thoul
 

Page 1 of 1
Display posts from previous: