Print Layout (Netscape 4.77 & IE 6)

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
User avatar
tv2n
Advanced
Advanced
Posts: 21
Joined: Thu Aug 08, 2002 3:45 pm
Location: VA
Contact:

Print Layout (Netscape 4.77 & IE 6)

Post by tv2n »

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
nev
Beginner
Beginner
Posts: 3
Joined: Thu Aug 15, 2002 12:47 am

Print Layout in IE 6

Post by nev »

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

Nev
pavia
Super Advanced
Super Advanced
Posts: 39
Joined: Fri Aug 16, 2002 2:39 pm

Printing a page with the menu on it in Windows

Post by pavia »

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??
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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: Select all

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

Code: Select all

function show_menu(mnu){
	mn=getMenuByName(mnu)
	SDiv("menu"+mn,1)
}
show_menu("mainmenu")
Hope this helps
Andy
pavia
Super Advanced
Super Advanced
Posts: 39
Joined: Fri Aug 16, 2002 2:39 pm

Show/Hide menu for printing purposes

Post by pavia »

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.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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: Select all

self.print() 
Will do just that.

Cheers
Andy
User avatar
tv2n
Advanced
Advanced
Posts: 21
Joined: Thu Aug 08, 2002 3:45 pm
Location: VA
Contact:

Post by tv2n »

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
nev
Beginner
Beginner
Posts: 3
Joined: Thu Aug 15, 2002 12:47 am

Hiding Menu

Post by nev »

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
User avatar
tv2n
Advanced
Advanced
Posts: 21
Joined: Thu Aug 08, 2002 3:45 pm
Location: VA
Contact:

Post by tv2n »

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??
Post Reply