How to include clickable icons for "Print Page", "Bookmark", etc

D

Dick

The subject line says it all, I have seenwebpages where at the bottom of the
page there are tiny icons of a printer, envelope, book, that let you print
the page, bookmark it etc. Does anyone know how to do this? (dunb question,
sure somone does )

Thanks, Dick
 
S

Steve Easton

You create an image and insert it in the page. You then assign a javascript "Onclick" event to
"fire" what you want do do.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
D

Dick

Thanks Steve, I would have to find a premade java script because of my
limited java ability.
 
M

Murray

Don't bother doing one for print. It will fail on IE5/Mac.

Or, you could use this -

Put this in the head of the document -

<script type="text/javascript">
function print_page(where){
var is_mac=(navigator.platform.indexOf("ac") != -1);
(document.all && is_mac)?
alert("Select \"Print\" from the menu") : where? where.window.print() :
window.print();
}
</script>

Put this in the body of the document -

<a href="javascript:print_page()">Print this</a>
 
D

Dick

Thank you Murray, appreciate yuur help.

Dick

Murray said:
Don't bother doing one for print. It will fail on IE5/Mac.

Or, you could use this -

Put this in the head of the document -

<script type="text/javascript">
function print_page(where){
var is_mac=(navigator.platform.indexOf("ac") != -1);
(document.all && is_mac)?
alert("Select \"Print\" from the menu") : where? where.window.print() :
window.print();
}
</script>

Put this in the body of the document -

<a href="javascript:print_page()">Print this</a>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top