Thanks,Murray
I put the button with code you show below into the page because the
print icon from the image toolbar is not working. This print button
calls print() - as you say- and works O.K.
It is only the icon in the image toolbar which doesn't work. It is,
of course, not critical as I have the other print button. I just
wonder why it doesn't work, i.e. what does it try to execute and why
does it fail ? --
Cheers,
Trevor L., WIP (Web Interested Person)
Website:
http://tandcl.homemail.com.au
Murray wrote:
Could it be because you call print() and you should be calling
print_page()?
<input type="button" class="hidden"
value="Print"
onClick="print()">
</div> <!-- end "Slidepos" -->
Functions:
On external.js
==============
qsobj() Gets passed parameters
check() Redirects to index.html if this page called without
parameter print_page() Prints page
getPic() Loads specified picture
showPage() Hides div id = "wait" Displays div id="mainpage"
However, I don't see print_page() defined on the external js.
Here's what I use -
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
![Stick Out Tongue :p :p](/styles/default/custom/smilies/tongue.gif)
rint_page()">Print this</a>
--
Murray
============
On my site, go to Picture Album, click on any thumbnail and in the
enlarged picture, hover over the top left.
All icons work *except* print
--
Cheers,
Trevor L., WIP (Web Interested Person)
Website:
http://tandcl.homemail.com.au
Murray wrote:
This makes no sense, Trevor. Show me a page where that is the
case, please.
--
Murray
============
Thanks,
Kathleen
I will bear this in mode if I want a global suppression. At the
moment, I use this in each page
<meta http-equiv="imagetoolbar" content="no">
But what I found is that when I allow the toolbar, not all
facilities work, e.g. print.
Any ideas what would be causing this?
--
Cheers,
Trevor L., WIP (Web Interested Person)
Website:
http://tandcl.homemail.com.au
Kathleen Anderson [MVP - FrontPage] wrote:
Here's a link with instructions on how to disable the toolbar on
your PC:
http://www.theeldergeek.com/internet_explorer_my_pictures_toolbar.htm
IIRC, there is (or was) one to chnage the image size for which
the image toolbar would be displayed.
I believe the group policy is part of being in a domain (at
work, for example).
--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
web:
http://www.spiderwebwoman.com/resources/
Kathleen,
Thank you for your reply.
I was curious as to why it doesn't work for me. Can you supply
or refer me to more details.?
I an not afraid of updating the registry. But I have never
understood group policy. In fact I don't think it is available
on my PC (running XP Home SP2 and networked to a laptop runing
XP Pro SP2) --
TIA,
Trevor L., WIP (Web Interested Person)
Website:
http://tandcl.homemail.com.au
Kathleen Anderson [MVP - FrontPage] wrote:
The way the Image Toolbar works on your own PC can be
customized by tweaking the registry and/or group policy.
--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
web:
http://www.spiderwebwoman.com/resources/
Yeah, looks O.K. But I am sure the experts here will tell you
that disabling the mouse click is not 100% protection
(possibly it is 0%) Anyway, to answer a simple question :
To disable that image tool bar place this in the<head>
section <!-- No Image toolbar -->
<meta http-equiv="imagetoolbar" content="no">
Actually I found that it doesn't work anyway. But that's just
me. Maybe I have some setting wrong.
--
Cheers,
Trevor L., WIP (Web Interested Person)
Website:
http://tandcl.homemail.com.au
Liftcharge wrote:
Actually you can use this Javascript to help deter theft,
but its not foolproof. People can still use small menu that
may appear on image to print and save image. (if they are
smart enough) I don't know how to get rid of that.
You need to place the script inbetween the <HEAD> and
</HEAD> section of the html source.
As has already been said, a watermark is probably the best
thing to use (in addition to the script
Dave
<script language="JavaScript">
<!--
ns4=(navigator.appName=="Netscape" &&
parseInt(navigator.appVersion)>3) ? true:false
function mdn(e) {
if ((ns4?e.which:event.button)!=1) {alert(Sorry, you can't
have my photo'); return false;}
return true;
}
document.onmousedown=mdn;
if (ns4) document.captureEvents(Event.MOUSEDOWN);
//-->
</script>