This Message Forum is no longer in use

Please use the new Bravenet Help Forums FOUND HERE

General Forum
This Forum is Locked
Author
Comment
Drop down menu 1

I'm trying to insert your drop down menu 1 into a new webpage which I intend to do for school. But I'm not successful. I still did not put it online as I need to solve some basic problems. I'm sending all the page source.



School Website



',
-10, 16, 80, defOver, defBack, 'itemBorder', 'itemText');
menu = new Item('Cut', '#', '', defLength, 0, 0);
menu = new Item('Copy', '#', '', defLength, 0, 0);
menu = new Item('Paste', '#', '', defLength, 0, 0);
// Help menu
menu = new Array();
menu = new Menu(true, '<', -10, 16, 80, defOver, defBack,
'itemBorder', 'itemText');
menu = new Item('Contents', '#', '', defLength, 0, 0);
menu = new Item('Index', '#', '', defLength, 0, 0);
menu = new Item('About', '#', '', defLength, 0, 5);
// SUB-SUB MENU:: Reopen menu
menu = new Array();
// This is across but not down...
menu = new Menu(true, '>', 79, 0, 100, '#1A5C9F',
'#004891', 'crazyBorder', 'crazyText');
menu = new Item('Recent Doc 1:', '#', '', 22, 0, 0);
menu = new Item('Recent Doc 2:', '#', '', 22, 0, 0);
menu = new Item('Etc. etc...', '#', '', defLength, 0, 0);
// SUB-SUB MENU:: Help About popout
menu = new Array();
// Leftwards popout with a negative x and y relative to its trigger.
menu = new Menu(true, '>', -79, -22, 80, defOver, defBack,
'itemBorder', 'itemText');
menu = new Item('and up!', '#', '', 22, 0, 0);
menu = new Item('Leftwards!', '#', '', 20, 0, 0);
// *** OPTIONAL CODE FROM HERE DOWN ***
// These two lines handle the window resize bug in NS4. See

.
// I recommend you leave this here as otherwise when you resize NS4's
width menus are hidden.
var popOldWidth = window.innerWidth;
nsResizeHandler = new Function('if (popOldWidth != window.innerWidth)
location.reload()');
// This is a quick snippet that captures all clicks on the document and
hides the menus
// every time you click. Use if you want.
if (isNS4) document.captureEvents(Event.CLICK);
document. = clickHandle;
function clickHandle(evt)
{
if (isNS4) document.routeEvent(evt);
hideAllBut(0);
}
// This is just the moving command for the example.
function moveRoot()
{
with(menu .ref) left = ((parseInt(left) < 100) ? 100 : 5);
}
// End -->































School Website















Re: Drop down menu 1

the code I sent was strangely cut in half!



School Website



',
-10, 16, 80, defOver, defBack, 'itemBorder', 'itemText');
menu = new Item('Cut', '#', '', defLength, 0, 0);
menu = new Item('Copy', '#', '', defLength, 0, 0);
menu = new Item('Paste', '#', '', defLength, 0, 0);
// Help menu
menu = new Array();
menu = new Menu(true, '<', -10, 16, 80, defOver, defBack,
'itemBorder', 'itemText');
menu = new Item('Contents', '#', '', defLength, 0, 0);
menu = new Item('Index', '#', '', defLength, 0, 0);
menu = new Item('About', '#', '', defLength, 0, 5);
// SUB-SUB MENU:: Reopen menu
menu = new Array();
// This is across but not down...
menu = new Menu(true, '>', 79, 0, 100, '#1A5C9F',
'#004891', 'crazyBorder', 'crazyText');
menu = new Item('Recent Doc 1:', '#', '', 22, 0, 0);
menu = new Item('Recent Doc 2:', '#', '', 22, 0, 0);
menu = new Item('Etc. etc...', '#', '', defLength, 0, 0);
// SUB-SUB MENU:: Help About popout
menu = new Array();
// Leftwards popout with a negative x and y relative to its trigger.
menu = new Menu(true, '>', -79, -22, 80, defOver, defBack,
'itemBorder', 'itemText');
menu = new Item('and up!', '#', '', 22, 0, 0);
menu = new Item('Leftwards!', '#', '', 20, 0, 0);
// *** OPTIONAL CODE FROM HERE DOWN ***
// These two lines handle the window resize bug in NS4. See

.
// I recommend you leave this here as otherwise when you resize NS4's
width menus are hidden.
var popOldWidth = window.innerWidth;
nsResizeHandler = new Function('if (popOldWidth != window.innerWidth)
location.reload()');
// This is a quick snippet that captures all clicks on the document and
hides the menus
// every time you click. Use if you want.
if (isNS4) document.captureEvents(Event.CLICK);
document. = clickHandle;
function clickHandle(evt)
{
if (isNS4) document.routeEvent(evt);
hideAllBut(0);
}
// This is just the moving command for the example.
function moveRoot()
{
with(menu .ref) left = ((parseInt(left) < 100) ? 100 : 5);
}
// End -->































School Website















Re: Drop down menu 1

Over to the left, it says "html allowed". That means if you paste HTML code into a post, our browser will try to interpret it -- but Bravenet's software will filter some of it out, because it could cause problems. That feature is so you can place links in your message, or include small images.

If you want to paste HTML code in, you need to do the same thing you would do if you wanted the code to appear on your page: change < into <, for example.

But pasting all your code into a post here isn't going to get you an answer. You need to place the code in a page on your site, and post the URL of that page.

Re: Drop down menu 1

The problem is that as I'm still tackling teething problems so I cannot publish my website!

Re: Drop down menu 1

I posted it online at: http://wysifauthoring.informe.com/forum/viewtopic.php?p=9190#9190

Re: Drop down menu 1

No, you need to paste the code, as code, not as text.

Re: Drop down menu 1

How ?

Re: Drop down menu 1

You said:

"I'm trying to insert your drop down menu 1 into a new webpage which I intend to do for school"

OK, paste it, upload the page, give us the URL.

Re: Drop down menu 1

You should tell us where you found the script you're trying to use, because either the source site has errors, or you copied it incorrectly.

For example, the tag is in the wrong place. That's a killer.

You have no body tag. That should not be a big problem, but it indicates something else may be wrong.

Re: Drop down menu 1

OK, I found it:

http://resources.bravenet.com/scripts_archive/javascript_dhtml/menus/drop_down_1/

and yes, you copied it incorrectly.

Re: Drop down menu 1

http://stpaulsbay.bravehost.com/index.html



Thanks for your time and patience!

Re: Drop down menu 1

First, clean out the code you have pasted in.

Then, go back to the Bravenet page:

http://resources.bravenet.com/scripts_archive/javascript_dhtml/menus/drop_down_1/

and follow the instructions again.

The biggest error is, you have the closing /script tag right next to the script tag.

Re: Drop down menu 1

The next-biggest error is, you didn't set up your body tag per the instructions: