Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
problem alligning menu made in cofecup dhtml menu builder
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Re: problem alligning menu made in cofecup dhtml m...
problem alligning menu made in cofecup dhtml menu builder
26-05-2008 5:55 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
hi people
just a quick question
www.stakesbyarmsfc.co.uk
i am testing this for use on a different site but how can i alter the code so the image is at the top of the page and the menu as close to underneath as possible?
the builde gies you choice of top middle bottom or static which areno good
can it be alterted?
just a quick question
www.stakesbyarmsfc.co.uk
i am testing this for use on a different site but how can i alter the code so the image is at the top of the page and the menu as close to underneath as possible?
the builde gies you choice of top middle bottom or static which areno good
can it be alterted?
Message 1 of 9
(2,402 Views)
8 REPLIES 8
Re: problem alligning menu made in cofecup dhtml menu builder
26-05-2008 6:58 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
The first thing I would do is put the script in a file separate to the html, as including it makes the html much bigger and harder to follow. Save the script as, for example, menu.js, and add a line to the html to say,
<script src="menu.js" type="text/javascript"></script>
In the scrpit is a line
var MenuVerticalCentered='middle'; // Menu vertical position 'top', 'middle','bottom' or static
Presumably this is the one you refer to? What happens if you change 'middle' to 'top'?
<script src="menu.js" type="text/javascript"></script>
In the scrpit is a line
var MenuVerticalCentered='middle'; // Menu vertical position 'top', 'middle','bottom' or static
Presumably this is the one you refer to? What happens if you change 'middle' to 'top'?
Message 2 of 9
(782 Views)
Re: problem alligning menu made in cofecup dhtml menu builder
26-05-2008 7:17 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
OK, I have just had a play with it. Try this.
Change the 'middle' to 'top' as above. Then in this line
var StartTop=1; // Menu offset x coordinate
change the 1 to 230. This aligns it at the top, but spaces it 230 pixels down, just missing your header image.
Change the 'middle' to 'top' as above. Then in this line
var StartTop=1; // Menu offset x coordinate
change the 1 to 230. This aligns it at the top, but spaces it 230 pixels down, just missing your header image.
Message 3 of 9
(782 Views)
Re: problem alligning menu made in cofecup dhtml menu builder
27-05-2008 1:52 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
hi denzil cheers for the rapdi response
i am going to try that now
one problem , i did what you said made the java script a separate file but now it wont load up anywhere
can you advise why
i added your line of code but it doesnt work look on www.stakesbyarmsfc.co.uk
thanks
i am going to try that now
one problem , i did what you said made the java script a separate file but now it wont load up anywhere
can you advise why
i added your line of code but it doesnt work look on www.stakesbyarmsfc.co.uk
thanks
Message 4 of 9
(782 Views)
Re: problem alligning menu made in cofecup dhtml menu builder
27-05-2008 3:53 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
The line <script src="menu.js" type="text/javascript"></script> should be after the <img border... line but before the </body>.
Also have you uploaded the js file to your webspace? It will need to be in the same folder as your index.html so the script line can find it.
Also, have you given the file the same name as the link, i.e. menu.js?
Also, forgive me if you think I am asking the obvious, but when you saved the script it should not include any html tags, just the java code.
Another big advantage of having a separate js file is that it is much easier to reproduce the menu on different pages, because you only need to add the single <script>...</script> line to each page.
If you are still having problems send me a PM with your email address and I'll send you the two files (js and html).
Also have you uploaded the js file to your webspace? It will need to be in the same folder as your index.html so the script line can find it.
Also, have you given the file the same name as the link, i.e. menu.js?
Also, forgive me if you think I am asking the obvious, but when you saved the script it should not include any html tags, just the java code.
Another big advantage of having a separate js file is that it is much easier to reproduce the menu on different pages, because you only need to add the single <script>...</script> line to each page.
If you are still having problems send me a PM with your email address and I'll send you the two files (js and html).
Message 5 of 9
(782 Views)
Re: problem alligning menu made in cofecup dhtml menu builder
27-05-2008 5:30 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
As requested I have sent you the two files. Let's hope it works!
Message 6 of 9
(782 Views)
Re: problem alligning menu made in cofecup dhtml menu builder
28-05-2008 1:07 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
hi DEnzil
files not received mate
files not received mate
Message 7 of 9
(782 Views)
Re: problem alligning menu made in cofecup dhtml menu builder
28-05-2008 1:20 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Umm, OK. I'll check when I get home later. I have just had a look at your menu.js anyway and I think I see the problem. You have included the html tags at the beginning and end. Open menu.js in Notepad and remove these lines from the top:
<html><head></head><body>
<script type='text/javascript'>
and these lines from the bottom:
</script>
<noscript>Your browser does not support script</noscript>
<!-- REST OF BODY CONTENT BELOW HERE -->
</body></html>
Then open your index.html in Notepad and move the line
<script src="menu.js" type="text/javascript"></script>
one line up so it is above the </body>
That should work. I will check I sent the email correctly as well.
<html><head></head><body>
<script type='text/javascript'>
and these lines from the bottom:
</script>
<noscript>Your browser does not support script</noscript>
<!-- REST OF BODY CONTENT BELOW HERE -->
</body></html>
Then open your index.html in Notepad and move the line
<script src="menu.js" type="text/javascript"></script>
one line up so it is above the </body>
That should work. I will check I sent the email correctly as well.
Message 8 of 9
(782 Views)
Re: problem alligning menu made in cofecup dhtml menu builder
28-05-2008 5:49 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Fool that I am, I just hit "Reply", thus sending the email to the forum and not to you. Apologies for that. However, suddenly you seem to have a whole website, so I guess you gave up on the menu and don't need it any more?
Message 9 of 9
(782 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Re: problem alligning menu made in cofecup dhtml m...