...

View Full Version : Script Alterations



Grantmitch1
07-22-2008, 12:47 AM
Okay,

Well in practising web scripting I decided to make a website, it came out okay, looks great.

But I had problems with the Navigation. It didnt hold enough information, so I tried to create one that had drop downs when you hover over it.

Example:
http://www.exigence.meermajik.co.uk/images/navigation.bmp

So I tried making one. It worked fine. I put the script into my current site and the navigation failed to operate.

if anyone can give me a hand that would be great.

note: To be helpful I made a .zip file of the test page and the scripts: Click Here to download (http://www.exigence.meermajik.co.uk/download/site.zip)

aimerzz4
07-22-2008, 02:16 AM
It's because you don't have the menu/menu.js and menu/menu.css in the header of the index.html file. I fixed for you, but you're going to have to restyle the menu/menu.css according to your needs.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>.: South West Alliance :.</title>
<meta name="keywords" content="Exigence, exigence, Travian, travian, home">
<meta name="description" content="We are Exigence, a group of people with some IT skills bulding helpful files -for no charge">
<meta http-equiv="Content-Type" content="text/html charset=ISO-8859-1" />
<style type="text/css" media="all">@import url('style/main.css');</style>
<link rel="shortcut icon" href="favicon.ico" >
<link rel="stylesheet" type="text/css" href="menu/menu.css">
<script type="text/javascript" language="javascript" src="menu/menu.js"></script>

</head>
<body id="top">
<div id="header" class="suckertreemenu">
<ul id="treemenu1">
<li id="home"><a href="#" accesskey="h">#</a></li>
<li id="service"><a href="#" accesskey="s">#</a></li>
<li id="bios"><a href="#" accesskey="b">#</a></li>
<li id="forum"><a href="#" accesskey="f">#</a></li>
<li id="contact"><a href="#" accesskey="c">#</a></li>
</ul>
</div>
<div id="border-top"></div>
<div id="border-left">
<div id="border-right">
<div id="wrapper">
<!-- Don't Edit Any Thing Above This Line -->
<h1>Welcome to the South West Alliance Website</h1>
<div id="section">
<p align="center"><img border="0" src="images/swa.jpg" width="229" height="153"><p align="center">
<font face="ShockThick" size="7">Enter Here</font></div>
<p>
<!-- Don't Edit Any Thing Below This Line -->
</div>
</div>
</div>
<div id="border-bottom"></div>
<H8>
<script type="text/javascript">
if (navigator.appName == "Microsoft Internet Explorer")
{
document.write('<font size="2"><font color="red"> If you are using an outdated version of internet explorer your browser may not show the images correctly. In order to prevent this please download the latest version of Microsoft Internet Explorer:<a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=9AE91EBE-3385-447C-8A30-081805B2F90B&displaylang=en">Click Here for the latest release</font></a>');
}
</script>
</H8>
<p>&nbsp;</p>
</body>
</html>

Just replace that with the current index.html file you have.

Grantmitch1
07-22-2008, 03:23 PM
The menu.js being in the head made no different.

nor did the code you gave me.

Thanks for the help anyway, Im gonna mess around with it until it works...

*prepares for 100 years of work*

aimerzz4
07-22-2008, 07:06 PM
The menu.js being in the head made no different.

nor did the code you gave me.

Thanks for the help anyway, Im gonna mess around with it until it works...

*prepares for 100 years of work*

You need to add sub-items into the <li>,etc., for the menu to work.

Grantmitch1
07-22-2008, 07:21 PM
I did :) lol

Didnt work.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum