Log in

View Full Version : Loading script for a list from another file



Kypri
01-13-2008, 05:06 PM
I am currently working on a project that can only utilise html, css and javascript...it has many windows and I have been struggling with the navigation menu.

How do I set it up so that I can have one central file with the contents of the menu, and thus the ability to update all files at the same time??

The code is:

<html>
<head>
<link rel="stylesheet" href="C:\Documents and Settings\Petros\My Documents\WORK/styles.css">
</head>
<body>

<div id="masthead4">
<ul id="qm0" class="qmmc">

<li><a class="qmparent" href="JavaScript:void(0);">Generic</a>

<ul>
<li><a href="JavaScript:void(0);"></a></li>
<li><a href="JavaScript:void(0);"></a></li>
<li><a href="JavaScript:void(0);"></a></li>
<li><a href="JavaScript:void(0);"></a></li>
<li><a href="JavaScript:void(0);"></a></li>
</ul>
</li>

<li><a class="qmparent" href="JavaScript:void(0);">LCS</a>

<ul>
<li><a href="JavaScript:void(0);"></a></li>
<li><a href="JavaScript:void(0);"></a></li>
<li><a href="JavaScript:void(0);"></a></li>
<li><a href="JavaScript:void(0);"></a></li>
<li><a href="JavaScript:void(0);"></a></li>
</ul>
</li>

<li class="qmclear">&nbsp;</li>
</ul>
</div>
</body>
</html>



I want those two <li> lists to be in other files.

How can I make IE go look for them somewhere else? without php etc?

Any help would be muchly appreciated, i hope that makes sense?

BLiZZaRD
01-13-2008, 05:44 PM
javascript include (http://dscripts.awardspace.com/scripts.php?id=34)

Kypri
01-14-2008, 08:17 AM
Anyone else??

I am using pure CSS menus and when you mouseover the tabs a sub menu animates across. Thanks Blizzard but that didnt work :S

????