473,239 Members | 1,505 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,239 software developers and data experts.

Mouseover and print and screen shot

Is it possible, when a user or viewer of your Web page, prints or
takes a screen shot of a Web page with mousover (roll-over) text in
it, to have that text printed or captures as part of the screen shot?
If so, how?

Thanks,
Jun 27 '08 #1
5 3391
bd*******@gmail.com wrote:
Is it possible, when a user or viewer of your Web page, prints or
takes a screen shot of a Web page with mousover (roll-over) text in
it, to have that text printed or captures as part of the screen shot?
If so, how?
Using the pointing device for the rollover and the keyboard for the screen
shot (Windows: Print oder Alt+Print). I'm not sure about printing, but
there is a shortcut for this as well (usually Ctrl+P); or they could print
the screen shot.

For Firefox, ScreenGrab! provides advanced screen shot options. ScreenGrab!
is written in JavaScript[tm] and uses Gecko components which might give you
some idea how to accomplish this in a controlled environment.

Anything else is not possible with scripting, at least not cross-browser.
PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Jun 27 '08 #2
On May 20, 5:08*pm, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
bdy120...@gmail.com wrote:
Is it possible, when a user or viewer of your Web page, prints or
takes a screen shot of a Web page with mousover (roll-over) text in
it, to have that text printed or captures as part of the screen shot?
If so, how?

Using the pointing device for the rollover and the keyboard for the screen
shot (Windows: Print oder Alt+Print). *I'm not sure about printing, but
there is a shortcut for this as well (usually Ctrl+P); or they could print
the screen shot.

For Firefox, ScreenGrab! provides advanced screen shot options. *ScreenGrab!
is written in JavaScript[tm] and uses Gecko components which might give you
some idea how to accomplish this in a controlled environment.

Anything else is not possible with scripting, at least not cross-browser.

PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
* -- from <http://www.vortex-webdesign.com/help/hidesource.htm>
OK, yes, I should have made it clear that I wanted to do it through
scripting. So, my question is, can I do the aforementioned via script?
When you say cross-browser, do you mean, for IE but not for Firefox,
or for Firefox but not for IE, or do you mean not at the script-level?
Can you set a control for the page to perform an action, which in this
case would be to make visible the rollover text, when a combination of
keys are pressed, or when one key is pressed. Say, when someone
presses "print screen" or ctrl+ p? Thanks

Thanks,
Jun 27 '08 #3
bd*******@gmail.com wrote:
Thomas 'PointedEars' Lahn wrote:
>bdy120...@gmail.com wrote:
>>Is it possible, when a user or viewer of your Web page, prints or
takes a screen shot of a Web page with mousover (roll-over) text in
it, to have that text printed or captures as part of the screen shot?
If so, how?
Using the pointing device for the rollover and the keyboard for the screen
shot (Windows: Print oder Alt+Print). I'm not sure about printing, but
there is a shortcut for this as well (usually Ctrl+P); or they could print
the screen shot.

For Firefox, ScreenGrab! provides advanced screen shot options. ScreenGrab!
is written in JavaScript[tm] and uses Gecko components which might give you
some idea how to accomplish this in a controlled environment.

Anything else is not possible with scripting, at least not cross-browser.
[...]

OK, yes, I should have made it clear that I wanted to do it through
scripting. So, my question is, can I do the aforementioned via script?
Depends. See above.
When you say cross-browser, do you mean, for IE but not for Firefox,
or for Firefox but not for IE,
Yes.
or do you mean not at the script-level?
Scripting alone cannot do it, you can only use it to use an API that can
do it. Like the Gecko (XPCOM) components I mentioned before. However, they
are not available from within the sandbox without requesting further privileges.
Can you set a control for the page to perform an action, which in this
case would be to make visible the rollover text, when a combination of
keys are pressed, or when one key is pressed. Say, when someone
presses "print screen" or ctrl+ p? Thanks
It is possible to recognize if PrintScr or Ctrl+P were used in Firefox, and
Ctrl+P in IE. Then, in the keyboard event listener, you can make the text
visible. However, for Ctrl+P I suggest you use a print stylesheet instead.

See e.g. http://www.brain4.de/programmierecke/js/tastatur.php for the test
case and the source code.

Please trim your quotes.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>
Jun 27 '08 #4
Please trim your quotes.
When you say trim quotes, do you mean do what I did in this message:
only using the quote relevant to my post rather than the entire
previous discussion? I haven't been using discussion groups as a
resource for a long time and as frequently as one might think, so this
question is not sarcastic in any way.

Thanks again for all the info. you've provided

Jun 27 '08 #5
bd*******@gmail.com wrote:
>Please trim your quotes.

When you say trim quotes, do you mean do what I did in this message:
only using the quote relevant to my post rather than the entire
previous discussion?
Exactly, but while trimming please keep the attribution line. It is
important for assigning a quoted text to its author, thus making it
possible even for the casual reader to follow the discussion easily.
I haven't been using discussion groups as a resource for a long time
and as frequently as one might think, so this question is not sarcastic
in any way.
The FAQ and FAQ Notes of this newsgroup, among other Usenet manuals, provide
further information regarding this subject:

http://jibbering.com/faq/#FAQ2_3
http://www.jibbering.com/faq/faq_notes/clj_posts.html

I would also like to suggest you either "Subscribe" to this newsgroup in
Google Groups, allowing you to post under your real name, or to use a
locally installed newsreader application instead to facilitate this, which
would provide even more benefits to you and your readers (GG's Web interface
has a number of nasty bugs and is frequently used by spammers, therefore
subject to user's filter rules). For the latter, I can recommend Mozilla
Thunderbird (which I am using now) or KNode (which I have used before).

http://getthunderbird.com/
http://kontact.kde.org/knode/
Thanks again for all the info. you've provided
You are welcome.
Regards,

PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee
Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Eric Petruzzelli | last post by:
I would like to know if there is any way for me to print my GUI screen. I am in the middle of development and I need to show my customers / future clients how things are coming along. Some are...
14
by: J. Makela | last post by:
Hallo. This should be a pretty entertaining question for you *real* javascript writers.. I, being the lowly photoshop guy at an ad agency made the mistake of actually saying "HTML" in a...
2
by: chriswalls0024 | last post by:
I am using a very simple mousover script for the buttons at this URL - http://www.amrinc.net/lhsBand/mouseoverProblem.cfm In Firefox, the ON state of the buttons includes a 1-pixel hairline gap...
2
by: G Moore | last post by:
I am trying to print out a table in the design mode... any ideas/help? Gordon Moore paragon_st@yahoo.com
3
by: Bryan Shaw | last post by:
I do not want my users to be able to copy and paiste anything on these web pages, which will be on an internal web site. Is there a way to prevent the printing of a web page? Is there a way to...
1
by: Jason Huang | last post by:
Hi, I have no problem in printing the C# Windows Form codes. However, when it comes to print the Form, the "Print" button is greyed out and I can't print the form directly from the Visual Studio...
0
by: Ian Ceicys | last post by:
I’ve been tasked with doing documentation on the project I’ve recently joined. Here’s what I’m looking for in terms of documentation. I want to generate a diagram from a huge .net 1.1...
6
by: CSharpguy | last post by:
In my gridview I have 2 -3 template fields which are hyperlinks. I allow the user to print this grid. When the grid prints it also prints the links, how can I take the user to a print preview page...
2
by: Brad Pears | last post by:
I have a vb.net 2005 application and am using the print preview screen. This screen has a printer icon on it that the user can use to print the document currently being viewed. It uses the default...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.