SmartMenus DHTML Menu / JavaScript Menu - Forums

forums

You are not logged in.

#1 2012-Jul-02 07:59:15

Topshed
Member
From: Melbourne Australia
Registered: 2011-Jul-01
Posts: 6
Website

I must be getting old ...

I have been trying to get this working most of the day with no result

I get this error no matter what

Warning: include(./menu_def.php) [function.include]: failed to open stream: No such file or directory in /home/topshed/public_html/britishsteam.com/odds/nbiblio.php on line 20

I have tried moving the files to my root DIR but it still fails

The Menu-def.php  file in the root called from /biblio/nbiblio.php.

Code:

    <script language="JavaScript" type="text/javascript">
            var objNavMenu = null;
            var prevObjNavMenu = null;
            var prevObjDropMenu = null;
            var numDropMenu = 10;
            ////// link styles
            var bgLinkColor = 'blue';
            var bgLinkHover = 'blue'
            var bgLinkActive = 'grey'
            var linkColor = 'white'
            var linkHover = 'yellow'
            var linkActive = 'white'
            var isIE = null;
            if (navigator.appName.indexOf('Microsoft Internet Explorer') != -1) isIE=1;

            function initDropMenu () {
                document.onclick = hideDropMenu;
                for (i=1; i<=numDropMenu; i++) {
                    menuName = 'dropMenu' + i;
                    navName = 'navMenu' + i;
                    objDropMenu = document.getElementById(menuName);
                    objNavMenu = document.getElementById(navName);
                    objDropMenu.style.visibility = 'hidden';
                    objNavMenu.onmouseover =  menuHover;
                    objNavMenu.onmouseout = menuOut;
                    objNavMenu.onclick = showDropMenu;
                }
                objNavMenu = null;
                return;
            }

            function  menuHover(e) {
                document.onclick = null;
                hoverObjNavMenu = document.getElementById(this.id);
                if (hoverObjNavMenu != objNavMenu) {
                    hoverObjNavMenu.style.color = linkHover;
                    hoverObjNavMenu.style.backgroundColor = bgLinkHover;
                }        
            }
            
            function menuOut (e) {
                document.onclick = hideDropMenu;
                outObjNavMenu = document.getElementById(this.id);
                if (outObjNavMenu != objNavMenu) {
                    outObjNavMenu.style.color = linkColor;
                    outObjNavMenu.style.backgroundColor = bgLinkColor;
                }
            }
            
            function showDropMenu(e) {
                menuName = 'drop' + this.id.substring(3,this.id.length);
                objDropMenu = document.getElementById(menuName);
                if (prevObjDropMenu == objDropMenu) {
                        hideDropMenu();
                    return;
                }
                if (prevObjDropMenu != null) hideDropMenu();
                objNavMenu = document.getElementById(this.id);
                if ((prevObjNavMenu != objNavMenu ) || (prevObjDropMenu == null)) {
                    objNavMenu.style.color = linkActive;
                    objNavMenu.style.backgroundColor = bgLinkActive;
                }
                
                if (objDropMenu) {
                    xPos = objNavMenu.offsetParent.offsetLeft + objNavMenu.offsetLeft;
                    yPos = objNavMenu.offsetParent.offsetTop + objNavMenu.offsetParent.offsetHeight;
                    if (isIE) {
                        yPos -= 1;
                        xPos -= 6;
                    }
                    objDropMenu.style.left = xPos + 'px';
                    objDropMenu.style.top = yPos + 'px';
                    objDropMenu.style.visibility = 'visible';
                    prevObjDropMenu = objDropMenu;
                    prevObjNavMenu = objNavMenu;
                }
            
            }
            
            function hideDropMenu() {
                document.onclick = null;
                if (prevObjDropMenu) {
                    prevObjDropMenu.style.visibility = 'hidden';
                    prevObjDropMenu = null;
                    prevObjNavMenu.style.color = linkColor;
                    prevObjNavMenu.style.backgroundColor = bgLinkColor;
                }
                objNavMenu = null;
            }
        </script>
        
        <style type="text/css" media="screen">
        <!--
body {
    margin: 0px;
    padding: 0px;
}

#page {
    margin: 10px;
}

#menuBar {
    color: #FFF;
    font-size: 10pt;
    font-family: arial, Helvetica, sans-serif;
    font-weight: bold;
    text-align: center;
    text-transform: capitalize;
    display: block;
    margin-bottom: 5px;
    position: relative;
    top: 5px;
    left: 5px;
    right: 5px;
    width: 99%;
    overflow: hidden;
    vertical-align: middle;
    border: 1px none #000000;
    background-color: #03F;
    line-height: 100%;
    list-style-type: square;
    cursor: auto;
    padding: 10px;
    }

.menuHeader {
    color: #FFF;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    padding: 5px;
    margin: 0px;
    padding-right: 15px;
    display: inline;
    position: relative;
    border-right: 1px solid #000000;
    word-spacing: .1em;
    }

a.menuLink {
    display: block;
    padding: 2px 5px;
    border-top: 1px solid #cccccc;
    background-color: #FFF;
    letter-spacing: 3px;
    word-spacing: normal;
    color: #09F;
    }

a.menuLink:link {
    color: #000000;
    text-decoration: none
    }

a.menuLink:visited {
    color: #000;
    text-decoration: none
    }

a.menuLink:hover {
    color: #F00;
    background-color: #000000;
    text-decoration: none
    }

a.menuLink:active {
    color: #ffffff;
    text-decoration: none;
    background-color:  transparent;
    }

.menuDrop {
    color: #00F;
    font-size: 10px;
    font-family: arial, Helvetica, sans-serif;
    background-color: #ffffff;
    background-repeat: repeat;
    visibility: hidden;
    margin: 0;
    padding: 0;
    position: absolute;
    z-index: 1000;
    top: 60px;
    left: 0;
    width: 175px;
    height: auto;
    border-style: solid;
    border-width: 0 1px 1px;
    border-color: #003365
    }

-->
        </style>
    </head>

    <body bgcolor="#ccc" onload="initDropMenu()">
  <div id="menuBar">
            <div id="navMenu1" class="menuHeader"> Home </div>
            <div id="navMenu2" class="menuHeader"> About </div>
            <div id="navMenu3" class="menuHeader"> BR Standards </div>
            <div id="navMenu4" class="menuHeader"> G.W.R. </div> 
            <div id="navMenu5" class="menuHeader"> L.M.S. </div>
            <div id="navMenu6" class="menuHeader"> L.N.E.R. </div>
            <div id="navMenu7" class="menuHeader"> S.R. </div>
            <div id="navMenu8" class="menuHeader"> W.D. </div>
            <div id="navMenu9" class="menuHeader">Guestbook</div>
        </div>
        
<div id="dropMenu1" class="menuDrop"> 
            <a class="menuLink" href="../index-14.php" onfocus="if(this.blur)this.blur();">Home</a>
        </div>
        
<div id="dropMenu2" class="menuDrop"> 
            <a class="menuLink" href="../odd/link.php" onfocus="if(this.blur)this.blur();">Links</a>
            <a class="menuLink" href="../odd/biblio.php" onfocus="if(this.blur)this.blur();">Bibliography</a>
            <a class="menuLink" href="../php_lner/usr.whatnew.php" onfocus="if(this.blur)this.blur();">Updates</a>
            <a class="menuLink" href="../Contact/Concact.php" onfocus="if(this.blur)this.blur();">Email Roy</a>
            <a class="menuLink" href="../odds/sitemap.htm" onfocus="if(this.blur)this.blur();">Site Map</a>
            
        </div>
        
        <div id="dropMenu3" class="menuDrop">  
            <a class="menuLink" href="../php_br/user_stds.php" onfocus="if(this.blur)this.blur();">BR DataBase</a>
            <a class="menuLink" href="../br_std/2-10-0/BR21100frame.htm" onfocus="if(this.blur)this.blur();">2-10-0 Gallery</a>
            <a class="menuLink" href="../br_std/4-6-0/BR460frame.htm" onfocus="if(this.blur)this.blur();">4-6-0 Gallery</a>
            <a class="menuLink" href="../br_std/4-6-2/BR462frame.htm" onfocus="if(this.blur)this.blur();">4-6-2 Gallery</a>
            <a class="menuLink" href="../br_std/AllTanks/BrFrameTank.htm" onfocus="if(this.blur)this.blur();">Tanks Gallery</a>
            <a class="menuLink" href="../br_std/brnotes.php" onfocus="if(this.blur)this.blur();">The Standards</a>
        </div>
        
        <div id="dropMenu4" class="menuDrop"> 
            <a class="menuLink" href="../php_gwr/usr.gwr.php" onfocus="if(this.blur)this.blur();">GWR Database</a>
            <a class="menuLink" href="../gwr/Tanks/gwrframe.htm" onfocus="if(this.blur)this.blur();">GWR Tanks Gallery</a>
            <a class="menuLink" href="../gwr/Tender/gwrframe.htm" onfocus="if(this.blur)this.blur();">GWR Tender Gallery</a>
            <a class="menuLink" href="../gwr/Tender/GWstory.php" onfocus="if(this.blur)this.blur();">GWR Notes</a>
               </div>
        
        <div id="dropMenu5" class="menuDrop">  
            <a class="menuLink" href="../__DHTML/php_lms/q" onfocus="if(this.blur)this.blur();">LMS DataBase</a>
            <a class="menuLink" href="../lms/0-6-0/060frame.htm" onfocus="if(this.blur)this.blur();">0-6-0 Gallery</a>
            <a class="menuLink" href="../lms/2-6-0/260frame.htm" onfocus="if(this.blur)this.blur();">2-6-0 Gallery</a>
            <a class="menuLink" href="../lms/2-6-2/262frame.htm" onfocus="if(this.blur)this.blur();">2-6-2 Gallery</a>
            <a class="menuLink" href="../lms/2-8-0/280frame.htm" onfocus="if(this.blur)this.blur();">2-8-0 Gallery</a>
            <a class="menuLink" href="../lms/4-6-0/460frame.htm" onfocus="if(this.blur)this.blur();">4-6-0 Gallery</a>
            <a class="menuLink" href="../lms/4-6-2/462frame.htm" onfocus="if(this.blur)this.blur();">4-6-2 Gallery</a>
        </div>
        
            <div id="dropMenu6" class="menuDrop">  
            <a class="menuLink" href="../php_lner/usr.lner.php" onfocus="if(this.blur)this.blur();">LNER DataBase</a>
            <a class="menuLink" href="../lner/0-0-0/A00frame.htm" onfocus="if(this.blur)this.blur();">Odds Gallery</a>
            <a class="menuLink" href="../lner/0-4-0/040frame.htm" onfocus="if(this.blur)this.blur();">0-4-0 Gallery</a>
            <a class="menuLink" href="../lner/0-6-0/060frame.htm" onfocus="if(this.blur)this.blur();">0-6-0 Gallery</a>
            <a class="menuLink" href="../lner/0-6-25/062frame.htm" onfocus="if(this.blur)this.blur();">0-6-2 Gallery</a>
            <a class="menuLink" href="../lner/2-6-0/260frme.htm" onfocus="if(this.blur)this.blur();">2-6-0 Gallery</a>
            <a class="menuLink" href="../lner/2-6-2/262frame.htm" onfocus="if(this.blur)this.blur();">2-6-2 Gallery</a>
            <a class="menuLink" href="../lner/2-8-0/280frame.htm" onfocus="if(this.blur)this.blur();">2-8-X Gallery</a>            
            <a class="menuLink" href="../lner/4-4-0/440frame.htm" onfocus="if(this.blur)this.blur();">4-4-0 Gallery</a>
            <a class="menuLink" href="../lner/4-6-0/460frame.htm" onfocus="if(this.blur)this.blur();">4-6-0 Gallery</a>
            <a class="menuLink" href="../lner/4-6-2/462Frame.htm" onfocus="if(this.blur)this.blur();">4-6-2 Gallery</a>
            <a class="menuLink" href="../lner/A3/A3frame.htm" onfocus="if(this.blur)this.blur();">A3 Gallery</a>            
            <a class="menuLink" href="../lner/A4/A4frame.htm" onfocus="if(this.blur)this.blur();">A4 Gallery</a>
            <a class="menuLink" href="../lner/Railcar/RCframe.htm" onfocus="if(this.blur)this.blur();">Railcar Gallery</a>            
        </div>

        <div id="dropMenu7" class="menuDrop">  
            <a class="menuLink" href="../php_sr/sr.usr.php" onfocus="if(this.blur)this.blur();">Southern DataBase</a>
            <a class="menuLink" href="../sr/srTender/Tendframe.htm" onfocus="if(this.blur)this.blur();">Tender Gallery</a>
            <a class="menuLink" href="../sr/srTank/tankframe.htm" onfocus="if(this.blur)this.blur();">Tank Gallery</a>
            <a class="menuLink" href="../sr/srPacific/462Frame.htm" onfocus="if(this.blur)this.blur();">Pacific Gallery</a>
            <a class="menuLink" href="../sr/srbod.php" onfocus="if(this.blur)this.blur();">SR Notes</a>
        </div>
        
        <div id="dropMenu8" class="menuDrop">  
            <a class="menuLink" href="../php_wd/user-wd2.php" onfocus="if(this.blur)this.blur();">WD DataBase</a>
            <a class="menuLink" href="../wd2/wdframe.htm" onfocus="if(this.blur)this.blur();">WDGallery</a>
        </div>

        <div id="dropMenu9" class="menuDrop">  
            <a class="menuLink" href="../Gbook/Gbook.php" onfocus="if(this.blur)this.blur();">Guest Book</a>
        </div>

biblio.php code

Code:

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 <html xmlns="http://www.w3.org/1999/xhtml"   xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="Keywords" content="Locomotive,Mallard,GWR,LMS,LNER,Database,Gresley,London Bus,BR" />
<meta name="Description" content="On-line Locomotive Database for the Big Four" />
<meta name="author" content="Roy Vandersteen" />
<meta name="contact" content="topshed@britishsteam.com" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bibliography</title>
<link rel="stylesheet" type="text/css" href="../css/BS1020.css"/>
<link rel="stylesheet" type="text/css" href="../css/lnall.css"/>
</head>
<body>
<!-- SmartMenus 6 config and script core files -->
<script type="text/javascript" src="c_config.js"></script>
<script type="text/javascript" src="c_smartmenus.js"></script>
<!-- SmartMenus 6 config and script core files -->
<?php
    include '../menu_def.php';
?>
<div>
  <h2><u>Bibliography</u></h2>
  <h4>The sources of the information contained in these databases are many and varied, I am especially indebted to :</h4>
  <ul>
  <li><strong>John Chalcott</strong> for access to his wonderfull site <a href="http://www.railphotoprints.co.uk/home.php" target="_blank">Rail Photoprints Collection</a></li>
    <li><b>Raymond Townsin(UK) </b>for his superbly accurate detail on the LMS Jubilee's </li>
    <li><b>Andrew James Scott</b> for many details on some of the harder to source LNER Stock from his Yeadon's Books </li>
    <li><b>Barry Heath(UK)</b> for his excellent notes on the BR Standards now a very good read</li>
    <li><b>Tom Jenkins(UK) for details of the </b><a href="http://www.tom.jenkins.5u.com/Index.html" target="_self">Cleator &amp; Workington Railway</a> </li>
    <li><b>Tony(UK)</b>, for access to the Engine Shed Society Database</li>
    <li><b>John Roberts(AUS)</b>,For access to his Magnificent collection of books and Spotting Diaries.Thanks Mate !</li>
    <li><b>John Roberts(AUS)</b>for many of his <b>original photograph he</b> has generously allowed me to use:</li>
    <li><b>Peter Kellett(UK)</b>for many of his <b>original photograph he</b> has generously allowed me to use:</li>
    <li><b>Peter Kellett(UK)</b>,Without him the amount of withdrawal and scrapping detail would be less than half of what it is. Thank you Peter</li>
    <li><b>Bob Scott(UK)</b>, For finding help with data and Gallery Locations</li>
    <li><b>Bob Lewis(UK)</b>, For finding many errors and omissions</li>
    <li><b>Andrew Lait(UK)</b>, who's meticulous research added much to the previously sketchy GWR detail .</li>
    <li><b>Alan J.Hampson</b>, another who took a great deal of trouble to help enormously with build and withdrawal details for all regions</li>
    <li><b>Geoff Coward</b>(UK) who gave me the idea for this project</li>
    <li><em>Mad</em><b> Martin Blanchard(AUS)</b>(Adelaide).Who told me it was possible </li>
    <li><b>Peter Chadderton(AUS)</b>for the loan of some of his Valuable RCTS Greenie's. when I had none</li>
    <li><b>Terry Heeley</b>(UK)for his help with the Southern &amp; GWR &amp; some lovely pictures </li>
    <li><b>Peter Mills</b>(AUS) for help and data input from GWR RCTS</li>
    <li><b>Michael McManus(UK)</b>for detail from his excellent<b> 'Ultimate Allocations'</b></li>
    <li><b>John Arden Smith(UK)</b>for his assistance with many details</li>
    <li><b>Peter Richards(UK)</b>of the SEMG Southern Rail site for some tremendous information which has helped make the SR database one of the most complete.</li>
    <li><b>Alistair Balderstone(UK)</b>for help with the 9F's</li>
    <li><b>Ron Healey(NZ)</b>for many of his <b>original photographs</b> has generously allowed me to use:</li>
    <li>Members of the<b> LNER - GWR and Southern E-groups</b>, for their helpful information</li>
    <li>The many places on the World Wide Web too numerous to remember where snippets have been picked up and incorporated.</li>
    <li>My own and some friends considerable library of books and magazines have proved an invaluable source especially those from;</li>
  </ul>
  <strong>The Railway Observer</strong>
  <ul>
    <li>Full years from 1930 to 1968</li>
  </ul>
      <strong> Redgauntlet Publications</strong>
 <ul>
    <li>Steam Days</li>
  </ul>
  <strong>Ian Allen Publications</strong>
  <ul>
    <li>Locomotives Illustrated</li>
    <li>Combined ABC Locomotives 1948/50,1953,1956,1959,1962/63</li>
  </ul>
  <b>Irwell Press Publications</b>
  <ul>
    <li>British Railways Illustrated</li>
    <li>BR Standards</li>
    <li>Coronation Pacific's</li>
  </ul>
  <b> and the following Authors &amp; Publications</b>
  <ul>
    <li><b>The Railway Magazine 1950-1968 </b>for allowing scans of their information to be published on the web</li>
    <li>Willie Yeadons<b> &quot;<em>Locomotives of the LNER (50+ Volumes)&quot;</em></b></li>
    <li>J.W.P Rowledge<b> &quot;<em> GWR Locomotives allocations 1922-1967</em>&quot;</b></li>
    <li>JWP Rowledge<b> &quot;<em>GWR Loco Allocations (1922)</em>&quot;</b></li>
    <li>JWP Rowledge<b> &quot;<em>LMS Loco Allocations (1923)&quot;</em></b></li>
    <li>JWP Rowledge <b>&quot;<em>Stanier 4-6-0 of the LMS&quot;</em></b></li>
    <li>JWP Rowledge <em><b>&quot;War Department 2-8-0 / 2-10-0 Loco's&quot;</b></em></li>
    <li>Paul Teal<b> &quot;<em>BR Motive power allocations BR Standards &amp; Austerities</em>&quot;</b></li>
    <li>Nigel Trevena<b> &quot;<em>Steam for scrap Vol's 1-3</em>&quot;</b></li>
    <li>Michael McManus<b> &quot;<em>Ultimate Allocations</em>&quot;</b></li>
    <li>RCTS<b> &quot;<em>Locomotives of the LNER</em>&quot;</b></li>
    <li>RCTS<em><b> Locomotive Stock Books</b></em> (Various)</li>
    <li>RCTS<em><b> Railway Observer </b></em> (1929-1968 complete)</li>
    <li>O.S. Knock various LNER Books</li>
    <li>Brian Haresnape</li>
    <li>Richard Derry<b> "<em>The BR Standards</em>"</b></li>
    <li><em><b>'The Power of.."</b></em> series various</li>
    <li>Chris Banks <b>"<em>BR Locomotives</em>"</b></li>
    <li>N.Groves / RCTS <b>&quot;<em>Great Northern Loco History</em>"</b></li>
    <li>John Marshall<b> &quot;<em>Lancashire and Yorkshire Railway</em>&quot;</b></li>
    <li>Ken Hoole<b> &quot;<em>Locomotive Stock of the NER (1920)</em>&quot;</b></li>
    <li>S.Summerson<b> &quot;<em>Midland Railway Loco's</em>&quot;</b></li>
    <li>H.C.Casserley<b> &quot;<em>London &amp; South Western Locomotives</em>&quot;</b></li>
    <li>H.C.Casserley<b> &quot;<em>Steam Loco's of British Railways</em>&quot;</b></li>
    <li>H C Casserley &amp; S W Johnson <b>&quot;<em>Locomotives at the Grouping GWR </em>&quot;</b></li>
    <li>H C Casserley &amp; S W Johnson <b>&quot;<em>Locomotives at the Grouping LMS</em>&quot;</b></li>
    <li>H C Casserley &amp; S W Johnson <b>&quot;<em>Locomotives at the Grouping Southern</em>&quot;</b></li>
    <li>W.S.Beckett <b>&quot;<em>Express Loco Registers</em>&quot;</b></li>
    <li>Beyer Peacock Engine Books</li>
    <li>P.N. Townend<b> &quot;<em>Top Shed</em>&quot;</b></li>
    <li>Bertram Baxter <b>&quot;British Locomotive Catalogue 1825 - 1923&quot;</b></li>
  </ul>
  All of the above were all a gold mine of information and I heartily recommend any and all of them for further reading
  <hr />
  </div>
  <?php
include "br_footer.php";
?>

No matter where I put the .def file or how I set up the link  it appears to be elusive

I am possibly missing something stupid but I cannot see what !

you help would be much appreaciated


G.W@.R.  =  Gresley Was Right

Offline

 

Board footer

Powered by FluxBB