Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:27

Print Layout (Netscape 4.77 & IE 6)


Poster: tv2n
Dated: Wednesday August 14 2002 - 22:01:15 BST

I am doing some print layout with the menu on Netscape 4.77, IE 6 on window 2000 and IE 6 on the Mac.

On the Mac, the printout is perfect. The menu showed where it's supposed to show.

But on Window IE 6, the menu moved to the right .... how much to the right depended on the screen size.

And onto Netscape, the menu doesn't show at all in netscape .. don't know why .... but hope someone know about this.

http://www.virginia.edu/pswebtest/DEV/Thuy/psweb/

thanks,
Tanya

Print Layout in IE 6


Poster: nev
Dated: Thursday August 15 2002 - 20:59:15 BST

I get the same problem. Does anyone know how to fix this please...

Nev

Printing a page with the menu on it in Windows


Poster: pavia
Dated: Friday August 16 2002 - 14:48:19 BST

I too am having the same problem and was not aware of it because everything printed fine on my Macintosh. I always check my work on the Windows platform but it never occurred to me to try printing out a page. I just really need to know if there is a solution to this problem because for my purposes, having the menu print in the middle of the page (as opposed to the left -hand side where it is relatively positioned and where it's supposed to be) is unacceptable and means I get to start a 15 page web site from scratch.

Somebody? Is there a fix and what is it??


Poster: Andy
Dated: Friday August 16 2002 - 14:50:29 BST

Hi,

This is a duplicate from another post.

You can Show and Hide menus with this custom function.

This Hides a menu by it's name
Code:
function hide_menu(mnu){
   mn=getMenuByName(mnu)
   SDiv("menu"+mn,0)
}
hide_menu("mainmenu")


This displays a menu by it's name
Code:
function show_menu(mnu){
   mn=getMenuByName(mnu)
   SDiv("menu"+mn,1)
}
show_menu("mainmenu")


Hope this helps
Andy

Show/Hide menu for printing purposes


Poster: pavia
Dated: Friday August 16 2002 - 17:17:21 BST

Thanks Andy. Problem is I saw this original post but, um, didn't understand what it meant or how to implement it. Sorry for being confused. It comes naturally. 8O

If what I want to accomplish is to have the menu visible at all times except when someone goes to print a web page, exactly what do I do with those custom functions? And where would I put them? And am I neglecting to ask anything else that I would need to know to make this work?

Thank you.


Poster: Andy
Dated: Monday August 19 2002 - 14:03:20 BST

Hi,

You need to include a button on your site that executes the functions and passes a print() action to initiate the print dialog.

Code:
self.print()


Will do just that.

Cheers
Andy


Poster: tv2n
Dated: Monday August 19 2002 - 21:07:54 BST

Can you give us/me an example of this? i still don't quite understand what I have to do to make it align right for IE printout... and show for netscape :cry:

thanks

Hiding Menu


Poster: nev
Dated: Tuesday August 20 2002 - 21:36:54 BST

Simply....

Add to head section...

<script>
function hide_menu(mnu){
mn=getMenuByName(mnu)
SDiv("menu"+mn,0)
}

function show_menu(mnu){
mn=getMenuByName(mnu)
SDiv("menu"+mn,1)
}
</script>

Then I just created a link within the page for "Printer Friendly"

<a href='javascript:hide_menu("mainmenu");self.print();show_menu("mainmenu")'>Printer Friendly</a>


I'm sure theres a much better way, but it did the trick for me.

Nev


Poster: tv2n
Dated: Tuesday August 20 2002 - 22:05:11 BST

Helloe Nev --

Thank you for replying ...

I put that code on my page. The only different I see is that when clicking on that "Print Friendly" in IE ... the menu hides itself. Nothing change in Netscape. (Even when I have <a href='javascript:show_menu("mainmenu");self.print();show_menu("mainmenu")'>Printer Friendly</a>). In netscape even the form element is not printed b/c I put that DIV in so that the box does not appear on top of the menu.

So, is the purpose of the code is to hide the menu when printing? is that what we want?? .. or am i missing some important piece here??