Here's another option...

http://searchwestnorfolk.110mb.com/map/map.php?cat_id=1

Click a sidebar entry and then Route planner: ADD

Repeat for one or more sidebar entries until you have 2 or more
locations in the Route planner.

Now click Go and the directions are retrieved and displayed.

If you now click Print directions, a new window is created on the fly,
and the contents of the element containing the directions are copied
to the new window.
An attempt is made to print the new window - will fail if no printer
is installed.
Finally the new window is closed.

All happens without leaving the original map page.

Barry's solution produces a better formatted page - my map is in the
early stages of development so i might improve upon it's formatting at
a later date.

Martin.


On 28 Oct, 17:49, Andy R <[EMAIL PROTECTED]> wrote:
> Another option is to use media specific CSS for your print. This way,
> your visitors can use the browsers print button and you do not force
> them to leave your page. A little more work, but very flexible...
>
> > ... CSS EXAMPLE (inline)
> >     <style type="text/css">
> >           @media all
> >           {
> >            .noscreen {display:none;}
> >           }
> >           @media print {
> >           #header,
> >           #footer,
> >           #subcontent,
> >           #scontrol,
> >           .noprint  {display:none;}
> >           .noscreen {display:block;}
> >    </style>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to