Code is Viewable ?

N

Nomad

Using MS FP2000. When I add code (java for example), why do I " see" the
code instead of seeing what the code "does". ie: Tried to add some code
(from one of the many free code sites) for "no right click" to a page I've
been experimenting with. When I either preview the page or even upload it,
I "see" the raw code on the page when I should not be seeing the code, but
what the code's supposed to be doing (not allowing right-click). I'm sure
this is something simple, but hey, I'm real new to FP. Can anyone help?
 
J

JoAnn Paules [MSFT MVP]

I can't answer your question but I can tell you that if you're disabling the
right click to prevent people from snagging your pictures off of your site,
don't bother. Your pictures can still be "borrowed" - and it's no more
troublesome than doing a right-click.
 
N

Nomad

Thanks for your reply JoAnn, I've been told this before as well. Yes, I am
doing it for the reason you've stated, but it will stop the average,
relatively dumb computer user (like me) from taking any of the pics. It
doesn't really matter if they do take a pic or two as they're not
professional nor copywrited. I just wanted to delay someone else in doing
the work (in the short term) I've already done. A PC savy pers will take
the pics no matter what and if they want them that bad...take them. Also,
I'm really just playing with FP, trying to learn what I can. Once I've
added the code, who knows, perhaps I'll also try to "borrow" the pics, just
to see how easy it really is. Again, thanks for you reply though.
--
Nomad



JoAnn Paules said:
I can't answer your question but I can tell you that if you're disabling the
right click to prevent people from snagging your pictures off of your site,
don't bother. Your pictures can still be "borrowed" - and it's no more
troublesome than doing a right-click.
 
M

Martin Chantler

Hi Nomad,

Are you inserting the code in the HTML view?

All the best,
Martin.
 
N

Nomad

Yes Martin (thanks for replying by the way...), I choose the HTML tab on the
bottom, find the place where I want to insert the code and insert the code.
At this point, I either save it, upload it and view it on-line, or I just
coose the Preview tab on the bottom after I've inserted the code and see it
from there. Either way, I "see" the raw code vice the finished product of
the code.
--
Nomad


Martin Chantler said:
Hi Nomad,

Are you inserting the code in the HTML view?

All the best,
Martin.
 
M

Martin Chantler

Hi Nomad,

You have to put the code between the <Head> and </Head> tags. And the
activation part after the <Body> tag.

I have downloaded a Disable Right Click JavaScript form another site
(French) and pasted below:-

Put this code between the <Head> and </Head> Tags.
---------------------

<script type="text/javascript">
<!-- script créé par le webmaster de : -->
<!-- www.creation-de-site.net -->
<!-- vous y trouverez des javascripts, des images, des tutoriaux et des
ressources gratuites. -->
<!--
function bloque_clic()
{
alert('Votre message, si il contient des apostrophes, placez un \ devant');
return false;
}
//-->
</script>
__________________________________

Put this code after the <Body> tag.
--------------

onContextMenu="return bloque_clic();"



The code should not be displayed if between the <Head> and </Head> tags as
not part of the main document.

Hope this helps?

All the best,
Martin.


Nomad said:
Yes Martin (thanks for replying by the way...), I choose the HTML tab on
the
bottom, find the place where I want to insert the code and insert the
code.
At this point, I either save it, upload it and view it on-line, or I just
coose the Preview tab on the bottom after I've inserted the code and see
it
from there. Either way, I "see" the raw code vice the finished product of
the code.
 
N

Nomad

Martin, you saint you...I (certainly not the PC litterate person) had no
idea that there was to be TWO parts to the code. "I" only had the part
that's inserted into the <head> </head> tags, NOT the part inserted between
the <body></body> tags. Thx.

Martin, vous saint vous... Je (certainement pas la personne de PC) n'avez eu
aucune idée qu'il y devait être DEUX sections au code. J'ai seulement
employé la pièce qui est insérée dans les étiquettes <head></head> tags, PAS
la pièce insérée entre les étiquettes <body></body>. Merci much. Salut!
 
T

Terry Stockdale

Using MS FP2000. When I add code (java for example), why do I " see" the
code instead of seeing what the code "does". ie: Tried to add some code
(from one of the many free code sites) for "no right click" to a page I've
been experimenting with. When I either preview the page or even upload it,
I "see" the raw code on the page when I should not be seeing the code, but
what the code's supposed to be doing (not allowing right-click). I'm sure
this is something simple, but hey, I'm real new to FP. Can anyone help?

It sounds like you are in FP2000's "HTML View". To add code, rather
than characters to show on the page, you need to be in the Code View
or the top part of the Split View.

Terry
Visit my computer tips, coffee pages, forums and more at:
http://www.terrystockdale.com
 

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