Pagina 1 van 1

Overall_header probleem!

Geplaatst: 15 sep 2004, 20:47
door ajcied
ik heb een script gebruikt waarbij een menu naar beneden komt! alleen staat er nu bij de tweede: undefined
Lukt helaas niet in een .txt file kan ie dan niet vinden!
Mijn overall_header.tpl:

Code: Selecteer alles

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> 
<td valign="top">
<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">
{META}
{NAV_LINKS}
<SCRIPT language=javascript> 
window.defaultStatus = "{SITENAME} - {PAGE_TITLE}"; 
</SCRIPT> 
<title>{SITENAME} :: {PAGE_TITLE}</title>
<!-- link rel="stylesheet" href="templates/Appalachia/{T_HEAD_STYLESHEET}" type="text/css" -->
<style type="text/css">
<!--
/*
  The original Appalachia Theme for phpBB version 2+
  Created by subBlue design
  http://www.subBlue.com

  NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
  theme administration centre. When you have finalised your style you could cut the final CSS code
  and place it in an external file, deleting this section to save bandwidth.
*/

/* General page style. The scroll bar colours only visible in IE5.5+ */
body { 
	background-color: {T_BODY_BGCOLOR};
	scrollbar-face-color: {T_TR_COLOR2};
	scrollbar-highlight-color: {T_TD_COLOR2};
	scrollbar-shadow-color: {T_TR_COLOR2};
	scrollbar-3dlight-color: {T_TR_COLOR3};
	scrollbar-arrow-color:  {T_BODY_LINK};
	scrollbar-track-color: {T_TR_COLOR1};
	scrollbar-darkshadow-color: {T_TH_COLOR1};
}

/* General font families for common tags */
font,th,td,p { font-family: {T_FONTFACE1} }
a:link,a:active,a:visited { color : {T_BODY_LINK}; }
a:hover		{ text-decoration: underline; color : {T_BODY_HLINK}; }
hr	{ height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;}

/* This is the border line & background colour round the entire page */
.bodyline	{ background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR1} solid; }

/* This is the outline round the main forum tables */
.forumline	{ background-color: {T_TD_COLOR2}; border: 2px {T_TH_COLOR2} solid; }

/* Main table cell colours and backgrounds */
td.row1	{ background-color: {T_TR_COLOR1}; }
td.row2	{ background-color: {T_TR_COLOR2}; }
td.row3	{ background-color: {T_TR_COLOR3}; }

/*
  This is for the table cell above the Topics, Post & Last posts on the index.php page
  By default this is the fading out gradiated silver background.
  However, you could replace this with a bitmap specific for each forum
*/
td.rowpic {
		background-color: {T_TD_COLOR2};
		background-image: url(templates/Appalachia/images/{T_TH_CLASS3});
		background-repeat: repeat-y;
}

/* Header cells - the blue and silver gradient backgrounds */
th	{
	color: #FFFFFF; font-size: {T_FONTSIZE2}px; font-weight : bold; 
	background-color: {T_BODY_LINK}; height: 25px;
	background-image: url(templates/Appalachia/images/{T_TH_CLASS2});
}

td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
			background-image: url(templates/Appalachia/images/{T_TH_CLASS1});
			background-color:{T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; height: 28px;
}

/*
  Setting additional nice inner borders for the main table cells.
  The names indicate which sides the border will be on.
  Don't worry if you don't understand this, just ignore it :-)
*/
td.cat,td.catHead,td.catBottom {
	height: 29px;
	border-width: 0px 0px 0px 0px;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
	font-weight: bold; border: {T_TD_COLOR2}; border-style: solid; height: 28px;
}
td.row3Right,td.spaceRow {
	background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid;
}

th.thHead,td.catHead { font-size: {T_FONTSIZE3}px; border-width: 1px 1px 0px 1px; }
th.thSides,td.catSides,td.spaceRow	 { border-width: 0px 1px 0px 1px; }
th.thRight,td.catRight,td.row3Right	 { border-width: 0px 1px 0px 0px; }
th.thLeft,td.catLeft	  { border-width: 0px 0px 0px 1px; }
th.thBottom,td.catBottom  { border-width: 0px 1px 1px 1px; }
th.thTop	 { border-width: 1px 0px 0px 0px; }
th.thCornerL { border-width: 1px 0px 0px 1px; }
th.thCornerR { border-width: 1px 1px 0px 0px; }

/* The largest text used in the index page title and toptic title etc. */
.maintitle	{
	font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1};
	text-decoration: none; line-height : 120%; color : {T_BODY_TEXT};
}

/* General text */
.gen { font-size : {T_FONTSIZE3}px; }
.genmed { font-size : {T_FONTSIZE2}px; }
.gensmall { font-size : {T_FONTSIZE1}px; }
.gen,.genmed,.gensmall { color : {T_BODY_TEXT}; }
a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover	{ color: {T_BODY_HLINK}; text-decoration: underline; }

/* The register, login, search etc links at the top of the page */
.mainmenu		{ font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT} }
a.mainmenu		{ text-decoration: none; color : {T_BODY_LINK};  }
a.mainmenu:hover{ text-decoration: underline; color : {T_BODY_HLINK}; }

/* Forum category titles */
.cattitle		{ font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}}
a.cattitle		{ text-decoration: none; color : {T_BODY_LINK}; }
a.cattitle:hover{ text-decoration: underline; }

/* Forum title: Text and link to the forums used in: index.php */
.forumlink		{ font-weight: bold; font-size: {T_FONTSIZE3}px; color : {T_BODY_LINK}; }
a.forumlink 	{ text-decoration: none; color : {T_BODY_LINK}; }
a.forumlink:hover{ text-decoration: underline; color : {T_BODY_HLINK}; }

/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav			{ font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT};}
a.nav			{ text-decoration: none; color : {T_BODY_LINK}; }
a.nav:hover		{ text-decoration: underline; }

/* titles for the topics: could specify viewed link colour too */
.topictitle,h1,h2	{ font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT}; }
a.topictitle:link   { text-decoration: none; color : {T_BODY_LINK}; }
a.topictitle:visited { text-decoration: none; color : {T_BODY_VLINK}; }
a.topictitle:hover	{ text-decoration: underline; color : {T_BODY_HLINK}; }

/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name			{ font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT};}

/* Location, number of posts, post date etc */
.postdetails		{ font-size : {T_FONTSIZE1}px; color : {T_BODY_TEXT}; }

/* The content of the posts (body of text) */
.postbody { font-size : {T_FONTSIZE3}px; line-height: 18px}
a.postlink:link	{ text-decoration: none; color : {T_BODY_LINK} }
a.postlink:visited { text-decoration: none; color : {T_BODY_VLINK}; }
a.postlink:hover { text-decoration: underline; color : {T_BODY_HLINK}}

/* Quote & Code blocks */
.code { 
	font-family: {T_FONTFACE3}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR2};
	background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid;
	border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

.quote {
	font-family: {T_FONTFACE1}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR1}; line-height: 125%;
	background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid;
	border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

/* Copyright and bottom info */
.copyright		{ font-size: {T_FONTSIZE1}px; font-family: {T_FONTFACE1}; color: {T_FONTCOLOR1}; letter-spacing: -1px;}
a.copyright		{ color: {T_FONTCOLOR1}; text-decoration: none;}
a.copyright:hover { color: {T_BODY_TEXT}; text-decoration: underline;}

/* Form elements */
input,textarea, select {
	color : {T_BODY_TEXT};
	font: normal {T_FONTSIZE2}px {T_FONTFACE1};
	border-color : {T_BODY_TEXT};
}

/* The text input fields background colour */
input.post, textarea.post, select {
	background-color : {T_TD_COLOR2};
}

input { text-indent : 2px; }

/* The buttons used for bbCode styling in message post */
input.button {
	background-color : {T_TR_COLOR1};
	color : {T_BODY_TEXT};
	font-size: {T_FONTSIZE2}px; font-family: {T_FONTFACE1};
}

/* The main submit button option */
input.mainoption {
	background-color : {T_TD_COLOR1};
	font-weight : bold;
}

/* None-bold submit button */
input.liteoption {
	background-color : {T_TD_COLOR1};
	font-weight : normal;
}

/* This is the line in the posting page which shows the rollover
  help line. This is actually a text box, but if set to be the same
  colour as the background no one will know ;)
*/
.helpline { background-color: {T_TR_COLOR2}; border-style: none; }

/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("templates/Appalachia/formIE.css"); 
-->
</style>
<!-- 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 -->
<SCRIPT LANGUAGE="Javascript">
var win = null;
function Gk_PopTart(mypage,myname,w,h,scroll)
{
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
  win = window.open(mypage,myname,settings);
}
</SCRIPT>
</head>
<script language="JavaScript">
<!--
function hideLoadingPage() {
	if (document.getElementById) {  // DOM3 = IE5, NS6
		document.getElementById('hidepage').style.visibility = 'hidden';
	}
	else {
		if (document.layers) {  // Netscape 4
			document.hidepage.visibility = 'hidden';
		}
		else {  // IE 4
			document.all.hidepage.style.visibility = 'hidden';
		}
	}
}
//  Eind -->
</script>
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}" onload="hideLoadingPage
" />

<div id="hidepage" style="position: absolute; left:0px; top:0px; background-color: {T_BODY_BGCOLOR}; layer-background-color: {T_BODY_BGCOLOR}; height: 100%; width: 100%;"> 
<table width="100%" height="100%">
  <tr>
	<td align="center" valign="middle">
		<table width="50%" align="center" style="border: 1 {T_BODY_LINK} solid">
		  </table>
	</td>
  </tr>
</table>
</div>

<table class="bodyline" width="760" cellspacing="0" cellpadding="0" border="0" align="center"> 
	<tr> 
		<td height="85">
                <a href="{U_INDEX}"><IMG SRC=templates/Appalachia/images/board_header.gif border=no></td></tr></TABLE><table width="760" border="0" cellspacing="0" cellpadding="0" align="center" background="templates/Appalachia/images/bgbar_white.jpg">

        <tr> 
        <td height="28" align="center" valign="middle" nowrap="nowrap"><style>
<!--

.menuskin{
position:absolute;
width:160px;
background-color:#4B4B4B;
menu;border:1px  #aa0000;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
visibility:hidden;
}

.menuskin a{
text-decoration:none;
color:#ff8800;
padding-left:10px;
padding-right:10px;
}

#mouseoverstyle{
background-color:#404040;
highlight;#ff9b2a;
}

#mouseoverstyle a{
color:#FF0000;
}
-->
</style>
<!-- verander hierboven in het style gedeelte de kleuren naar eigen wens ( dus de kleurnummers met een # )-->
<script language="JavaScript1.2">



var linkset=new Array()
//verander hieronder de links ( url. target en linknaam ) wil je meer hoofdmenu's, simpelweg de linkset opeenvolgend nummeren, en in het bodygedeelte d elinkset ook toevoegen ( kopieren werkt het makkelijkste )

linkset[0]='<div class="menuitems"><a href="http://members.lycos.nl/f2j">Site</a></div>'

linkset[0]+='<div class="menuitems"><a href="index.php">Forum</a></div>'

linkset[0]+='<div class="menuitems"><a href="portal.php">Portaal</a></div>'

linkset[0]+='<div class="menuitems"><a href="staff.php">Het Bestuur</a></div>'

<!-- BEGIN switch_user_logged_out --> 
linkset[1]+='<div class="menuitems"><a href="profile.php?mode=register&sid=42080e4a07477889551a5333065aa121">Registreren!</a></div>'
<!-- END switch_user_logged_out -->

linkset[1]+='<div class="menuitems"><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></div>'

<!-- BEGIN switch_user_logged_in --> 
linkset[1]+='<div class="menuitems"><a href="privmsg.php?folder=inbox">{PRIVATE_MESSAGE_INFO}</a></div>'
<!-- END switch_user_logged_in -->

<!-- BEGIN switch_user_logged_in --> 
linkset[1]+='<div class="menuitems"><a href="profile.php?mode=editprofile">Bewerk je profiel</a></div>'
<!-- END switch_user_logged_in -->

<!-- BEGIN switch_user_logged_in --> 
linkset[1]+='<div class="menuitems"><a href="memberlist.php">Ledenlijst</a></div>'
<!-- END switch_user_logged_in -->

linkset[1]+='<div class="menuitems"><a href="nieuwsbrief.php">Nieuwsbrief</a></div>'

linkset[1]+='<div class="menuitems"><a href="rules.php">Regels</a></div>'

linkset[2]='<div class="menuitems"><a href="activity.php">Spelletjes</a></div>'

linkset[2]+='<div class="menuitems"><a href="fsports.php">Voorspel wedsrtijd</a></div>'

linkset[2]+='<div class="menuitems"><a href="radplay.php">Online radio</a></div>'

linkset[2]+='<div class="menuitems"><a href="game%20van%20de%20week.php">Game van de week</a></div>'

linkset[2]+='<div class="menuitems"><a href="article.php">Reviews enzo</a></div>'

linkset[2]+='<div class="menuitems"><a href="vault.php">Bank(points)</a></div>'

linkset[3]='<div class="menuitems"><a href="links.php">Links</a></div>'
linkset[3]+='<div class="menuitems"><a href="search.php">Zoeken</a></div>'
linkset[3]+='<div class="menuitems"><a href="statistics.php">Statistieken</a></div>'

linkset[3]+='<div class="menuitems"><a href="ranking.php">Ranks</a></div>'

linkset[3]+='<div class="menuitems"><a href="report.php">Aangeraden</a></div>'
linkset[3]+='<div class="menuitems"><a href="tellafriend.php">Vertel een vriend</a></div>'
linkset[3]+='<div class="menuitems"><a href="faq.php">FAQ</a></div>'

////No need to edit beyond here

var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&!document.all
var ns4=document.layers

function showmenu(e,which){

if (!document.all&&!document.getElementById&&!document.layers)
return

clearhidemenu()

menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : ""
menuobj.thestyle=(ie4||ns6)? menuobj.style : menuobj

if (ie4||ns6)
menuobj.innerHTML=which
else{
menuobj.document.write('<layer name=gui bgColor=#E6E6E6 width=165 onmouseover="clearhidemenu()" onmouseout="hidemenu()">'+which+'</layer>')
menuobj.document.close()
}

menuobj.contentwidth=(ie4||ns6)? menuobj.offsetWidth : menuobj.document.gui.document.width
menuobj.contentheight=(ie4||ns6)? menuobj.offsetHeight : menuobj.document.gui.document.height
eventX=ie4? event.clientX : ns6? e.clientX : e.x
eventY=ie4? event.clientY : ns6? e.clientY : e.y

//Find out how close the mouse is to the corner of the window
var rightedge=ie4? document.body.clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie4? document.body.clientHeight-eventY : window.innerHeight-eventY

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX-menuobj.contentwidth : ns6? window.pageXOffset+eventX-menuobj.contentwidth : eventX-menuobj.contentwidth
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX : ns6? window.pageXOffset+eventX : eventX

//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.thestyle.top=ie4? document.body.scrollTop+eventY-menuobj.contentheight : ns6? window.pageYOffset+eventY-menuobj.contentheight : eventY-menuobj.contentheight
else
menuobj.thestyle.top=ie4? document.body.scrollTop+event.clientY : ns6? window.pageYOffset+eventY : eventY
menuobj.thestyle.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.thestyle.visibility=(ie4||ns6)? "hidden" : "hide"
}

function dynamichide(e){
if (ie4&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
if (ie4||ns6||ns4)
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

function highlightmenu(e,state){
if (document.all)
source_el=event.srcElement
else if (document.getElementById)
source_el=e.target
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
else{
while(source_el.id!="popmenu"){
source_el=document.getElementById? source_el.parentNode : source_el.parentElement
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
}
}
}

if (ie4||ns6)
document.onclick=hidemenu

</script>
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)">
</div>

<div align="center">
  <center>
  <table border="0" width="70%">
    <tr>
      <td align="center" width="25%">

<a onMouseover="showmenu(event,linkset[0])" onMouseout="delayhidemenu()"><IMG src="http://members.lycos.nl/ajcied/button%20op%20het%20forum/algemeen.gif">

</td>
      <td align="center" width="25%">
<a onMouseover="showmenu(event,linkset[1])" onMouseout="delayhidemenu()"><IMG src="http://members.lycos.nl/ajcied/button%20op%20het%20forum/leden.gif">

         </td>
      <td align="center" width="25%">
<a onMouseover="showmenu(event,linkset[2])" onMouseout="delayhidemenu()"><P><IMG src="http://members.lycos.nl/ajcied/button%20op%20het%20forum/extra.gif"></P>

           </td>
      <td align="center" width="25%">
<a onMouseover="showmenu(event,linkset[3])" onMouseout="delayhidemenu()"><P><IMG src="http://members.lycos.nl/ajcied/button%20op%20het%20forum/overige.gif"></P>

      </td>
    </tr>
  </table>
  </center>
</div> </a>
        </td> 
        </tr> 
        </span></font></td> 
        </tr>
</TABLE> 



<table width="760" cellspacing="0" cellpadding="10" border="0" align="center"> 
 
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> 
{PORTAL_HEADER}
<td width="10"><img src="images/spacer.gif" alt="" width="10" height="30" /></td>
<td valign="top">

Geplaatst: 15 sep 2004, 20:55
door WebSiteNet
"IK heb een menu script gebruikt en dat werkt niet"

Wat voor menu script? En zou je dat bestand in een .txt'je willen zetten en de link geven? Dat schept een hoop ruimte. :roll:

Re: Overall_header probleem!

Geplaatst: 16 sep 2004, 18:59
door ajcied
ajcied schreef:ik heb een script gebruikt waarbij een menu naar beneden komt! alleen staat er nu bij de tweede: undefined
Lukt helaas niet in een .txt file kan ie dan niet vinden!
Dit is het menu script!
http://members.lycos.nl/ajcied5/script.txt

Geplaatst: 16 sep 2004, 19:14
door WebSiteNet
Ja, dat staat ook in dat bestand.

Waar heb je hem vandaan? Url? Wat heb je allemaal aangepast?

En ik bedoelde het bestand overall_header.tpl dat je hierboven gepost had om in een .txt te doen, de link te geven en hem hierboven weg halen.

Geplaatst: 16 sep 2004, 19:42
door ajcied
WebSiteNet schreef:Ja, dat staat ook in dat bestand.

Waar heb je hem vandaan? Url? Wat heb je allemaal aangepast?

En ik bedoelde het bestand overall_header.tpl dat je hierboven gepost had om in een .txt te doen, de link te geven en hem hierboven weg halen.
Dat lukte niet in een .txt te doen(overall_head.tpl)
wanr dan zegt ie kan niet vinden! :?
ik heb hem vandaan: http://www.leejoo.nl/
javascript en dan menu met de titel: Multi-top-menu
Helaas kan ik niet de link meteen gevan waar hij staat omdat ie beveiligd is!

Geplaatst: 16 sep 2004, 20:06
door WebSiteNet
Ik kan hem niet vinden.

Maar dat maakt weinig uit. Leejoo.nl is een paar jaar oud en de scripts kunne verouderd zijn. De scripts zijn meestal nogal omslachtig. Ik raad dynamicdrive.com aan. Die zijn wel up-to-date!

//edit: Ik heb hem gevonden met google. Je hebt zo te zien niet gedaan wat er op die pagina stond.

Geplaatst: 16 sep 2004, 20:31
door ajcied
TNX precies wat ik zoch vond een leuk scriptje kijke of het morgen wel lukt!