Problems using a Dreamweaver Template...

This is a discussion on "Problems using a Dreamweaver Template..." within the Web Page Design section. This forum, and the thread "Problems using a Dreamweaver Template... are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 16th, 2007, 12:13
New Member
Join Date: Jan 2007
Location: Sandhurst, Berkshire
Age: 41
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Problems using a Dreamweaver Template...

Hi,

Trying to construct a new site, and am using Dreamweaver, my problem is, I am using a standard template,
and I cannot get the menu to work correctly.
I am using a pop up, when click over a link in the menu, it causes a sub-menu to pop-up,
BUT, as soon as I try to move the mouse to the sub menu, is dissapears!
Sorry if I am being dense, but I am new to this! Copy of the relevant code below....
Code: Select all
//menu constructor
function menu(allitems,thisitem,startstate){ 
  callname= "gl"+thisitem;
  divname="subglobal"+thisitem;  
  this.numberofmenuitems = 7;
  this.caller = document.getElementById(callname);
  this.thediv = document.getElementById(divname);
  this.thediv.style.visibility = startstate;
}

//menu methods
function ehandler(event,theobj){
  for (var i=1; i<= theobj.numberofmenuitems; i++){
    var shutdiv =eval( "menuitem"+i+".thediv");
    shutdiv.style.visibility="hidden";
  }
  theobj.thediv.style.visibility="visible";
}
                
function closesubnav(event){
  if ((event.clientY <48)||(event.clientY > 107)){
    for (var i=1; i<= numofitems; i++){
      var shutdiv =eval('menuitem'+i+'.thediv');
      shutdiv.style.visibility='hidden';
    }
  }
}
// -->
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
</head>
<body onmousemove="closesubnav(event);"> 
<div class="skipLinks">skip to: <a href="#content">page content</a> | <a href="pageNav">links on this page</a> | <a href="#globalNav">site navigation</a> | <a href="#siteInfo">footer (site information)</a> </div>
<div id="masthead"> 
  <h1 id="siteName">&nbsp;</h1> 
  <div id="globalNav"> 
    <img alt="" src="http://www.webforumz.com/images/gblnav_left.gif" height="32" width="4" id="gnl"> <img alt="" src="http://www.webforumz.com/images/glbnav_right.gif" height="32" width="4" id="gnr"> 
    <div id="globalLink"> 
      <a href="#" id="gl1" class="glink" onmouseover="ehandler(event,menuitem1);">Home Page</a><a href="#" id="gl2" class="glink" onmouseover="ehandler(event,menuitem2);">Live Traffic </a><a href="#" id="gl3" class="glink" onmouseover="ehandler(event,menuitem3);">History of the M25 </a><a href="#" id="gl4" class="glink" onmouseover="ehandler(event,menuitem4);">Looking to the Future </a><a href="#" id="gl5" class="glink" onmouseover="ehandler(event,menuitem5);">Junctions</a><a href="#" id="gl6" class="glink" onmouseover="ehandler(event,menuitem6);">Forums</a><a href="#" id="gl7" class="glink" onmouseover="ehandler(event,menuitem7);">Links</a>

Last edited by Lchad; Jul 16th, 2007 at 12:27. Reason: added code tags for easier viewing
Reply With Quote

Reply

Tags
css, dreamweaver, template

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
dreamweaver template? adfnoobman Web Page Design 4 Jan 14th, 2008 19:55
[SOLVED] Dreamweaver Template JIM_genius5 Web Page Design 7 Nov 1st, 2007 18:09
CSS problems with zen template jonbcheshire Web Page Design 9 Feb 23rd, 2007 08:07
problems with layout in dreamweaver 8 CSS andyseaton2003 Web Page Design 4 Oct 2nd, 2006 17:58
Layout and template problems The Hick Man Web Page Design 3 Sep 1st, 2006 17:32


All times are GMT. The time now is 03:52.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43