Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old July 16th, 2007, 08:13 AM   #1
New Member
 

Join Date: Jan 2007
Location: Sandhurst, Berkshire
Age: 43
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 berkshirebowman is on a distinguished road
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:
//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; July 16th, 2007 at 08:27 AM.. Reason: added code tags for easier viewing
berkshirebowman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
css , dreamweaver , template


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 HTML, XHTML and CSS 4 January 14th, 2008 03:55 PM
[SOLVED] Dreamweaver Template JIM_genius5 HTML, XHTML and CSS 7 November 1st, 2007 03:09 PM
CSS problems with zen template jonbcheshire HTML, XHTML and CSS 9 February 23rd, 2007 04:07 AM
problems with layout in dreamweaver 8 CSS andyseaton2003 HTML, XHTML and CSS 4 October 2nd, 2006 01:58 PM
Layout and template problems The Hick Man HTML, XHTML and CSS 3 September 1st, 2006 01:32 PM


Search Engine Optimization by vBSEO 3.2.0 RC8