15 replies [Last post]
gossamer.
Offline
newbie
australia.
Last seen: 14 years 21 weeks ago
australia.
Joined: 2006-05-27
Posts: 6
Points: 0

now, i am aware that i need to look through FAQ's and such to find the answer, & as far as i could see, i couldn't find one. there was one topic on it, but it didn't answer much.

now i am using CSS on my page, but i am unable to use javascript. i have found many javascript scripts on no-right clicking, but unable to find anything on CSS.

is there a code for CSS or are they made for javascript only.

much help would be appreciated.

Chris..S
Chris..S's picture
Offline
Moderator
Last seen: 8 years 4 weeks ago
Timezone: GMT+1
Joined: 2005-02-22
Posts: 6078
Points: 173

no right click.

CSS is about how your page looks - its appearance and style.

Right mouse clicks aren't anything to do with that - so no, CSS can not affect the right mouse click.

Right mouse clicks are most likely OS and browser dependent things anyway. Some OS (e.g. Mac) don't have right mouse buttons...

stonewall
stonewall's picture
Offline
Enthusiast
between a rock and a hard place
Last seen: 14 years 28 weeks ago
between a rock and a hard place
Timezone: GMT-5
Joined: 2006-04-06
Posts: 93
Points: 0

no right click.

Chris, Apple's mighty mouse (now shipping with current Macs) does have a right button. Mac OS has supported multi button mice for some time now. Even with a single button mouse, a control key modifier would emulate a right click.

gossamer.
Offline
newbie
australia.
Last seen: 14 years 21 weeks ago
australia.
Joined: 2006-05-27
Posts: 6
Points: 0

no right click.

thankyou guys.
i'm just sick of people always stealing my stuff.
i know they can go to view source & get it anyways.
it's just frustrating.

Anonymous
Anonymous's picture
Guru

no right click.

gossamer. wrote:
i'm just sick of people always stealing my stuff.
What is it that they're taking? If it's worth stealing it's worth looking at. Smile

gossamer.
Offline
newbie
australia.
Last seen: 14 years 21 weeks ago
australia.
Joined: 2006-05-27
Posts: 6
Points: 0

no right click.

i am a photograpgher,
& yes i can watermark my images & what not,
but is really the point?
i don't think so.

Anonymous
Anonymous's picture
Guru

no right click.

I was trying to say I wanted to see your page. Smile

gossamer.
Offline
newbie
australia.
Last seen: 14 years 21 weeks ago
australia.
Joined: 2006-05-27
Posts: 6
Points: 0

no right click.

oh okay.
i've just been re-doing it.
so it's at it's bare minimum & stuff.

http://gossamer.bappy.com/main.html

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 30 weeks 6 days ago
Joined: 2004-06-30
Posts: 9668
Points: 801

no right click.

<style type="text/css">
font, td, a, body, input, textarea, table{color:000000; font-family: tahoma; font-size: 7pt; font-weight:none}
body, td, li, p, div, textarea, li, h1, h2, p, br {font-family: tahoma; font-size: 7pt; color: 000000; font-weight:none }
.btext {font-family: tahoma; font-size: 7pt; color: 000000; font-weight: none;}
.blacktext10 {font-family: tahoma; font-size: 7pt; color: 000000; font-weight: none;}
.blacktext12 {font-family: tahoma; font-size: 7pt; color: 000000; font-weight: none;}
.lightbluetext8 {font-family: tahoma; font-size: 7pt; color: 000000; font-weight: none;}
.nametext {font-family: tahoma; font-size: 7pt; color: 000000; font-weight: none;}
.orangetext15 {font-family: tahoma; font-size: 7pt; color: 000000; font-weight: none;}

.text {font-family: tahoma; font-size: 7pt; color: 000000; }
.whitetext12 {font-family: tahoma; font-size: 7pt; color: 000000; font-weight: none;}

a:link, a.man:link, a.navbar:link, a.text:link, a.footer:link {font-family: Tahoma; font-size: 7pt; color: 000000; font-weight:none }
a:hover, a.man:hover, a.navbar:hover, a.text:hover, a.footer:hover {font-family: Tahoma; font-size: 7pt; color: 000000; text-decoration:none; font-weight:none; background-color:FFFFFF}
a:visited, a.man:visited, a.navbar:visited, a.text:visited, a.footer:visited {font-family: Tahoma; font-size: 7pt; color: 000000; font-weight:none} 
</style>
<style>
b, strong{
font: bold 13px georgia;
color:000000;
background: url();}</style>

<table width="500" cellpadding="0" cellspacing="4" border="0"><tr><td valign="top">

<div style="overflow:auto;
width:230;
height:500;
background-color:89AD74;
border:1px solid;
border-color:333333;">
<Center>GOSSAMER;<br>
<img src="http://www.filehigh.com/serve/15426/137073.jpg">
<br>
<br>
MY NAME ISN'T IMPORTANT,<BR>
SO GOSSAMER IT IS.<BR>
<BR>
19 AUSTRALIA.<BR><BR>
PHOTOGRAPHY.<BR><BR>
WATCH THIS SPACE.<bR>I UPDATE TOO OFTEN.



</DIV></td><td valign="top">
<div style="overflow:auto;
width:500;
height:500;
background-color:A1C19C;
border:1px solid;
border-color:333333;"><center>

Shock

Shock Shock Shock

Shock Shock Shock Shock Shock Shock Shock Shock

Have you even TRIED creating a structured, valid html page? That's a bit of a mess.

And research into php, it can generate a watermark on the fly on your images.

Verschwindende wrote:
  • CSS doesn't make pies

gossamer.
Offline
newbie
australia.
Last seen: 14 years 21 weeks ago
australia.
Joined: 2006-05-27
Posts: 6
Points: 0

no right click.

if i can read it & understand it,
it works for me.
right?

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 30 weeks 6 days ago
Joined: 2004-06-30
Posts: 9668
Points: 801

no right click.

I don't mean so much that it's formatted awkwardly, I mean the fact that there is NO <head> and <body> section, no doctype, no semblance of valid css or html, it's all a bit of a mess really.

And the table.

http://validator.w3.org/check?uri=http://gossamer.bappy.com/main.html

You might want to get reading some basic HTML tutorials first Wink

Verschwindende wrote:
  • CSS doesn't make pies

Anonymous
Anonymous's picture
Guru

no right click.

The code is bad but the site is nice. Nice pics. If you read around the forums you can easily fix the code.

I would also recommend adding a copyright to each picture.

This is not a "no right click" technique but what you could do (this would bloat your css a bit since each picture would need an ID) is have each picture defined in your css as a background for a single pixel transparent gif defined to the size of each picture.

That way if someone right clicks and downloads the image they will just get the transparent gif that is over the image.

DanA
DanA's picture
Offline
Elder
Last seen: 10 years 24 weeks ago
Timezone: GMT+2
Joined: 2004-08-14
Posts: 1087
Points: 2

no right click.

gossamer.
Offline
newbie
australia.
Last seen: 14 years 21 weeks ago
australia.
Joined: 2006-05-27
Posts: 6
Points: 0

no right click.

thepineapplehead wrote:
I don't mean so much that it's formatted awkwardly, I mean the fact that there is NO <head> and <body> section, no doctype, no semblance of valid css or html, it's all a bit of a mess really.

And the table.

http://validator.w3.org/check?uri=http://gossamer.bappy.com/main.html

You might want to get reading some basic HTML tutorials first Wink

the reason it isn't great html. or even valid,
is because it is also my myspace layout.
therefore i cheated,
& only done the basics.
i didn't understand one thing that link said.

Anonymous
Anonymous's picture
Guru

no right click.

gossamer. wrote:
the reason it isn't great html. or even valid,
is because it is also my myspace layout.
therefore i cheated,
& only done the basics.
i didn't understand one thing that link said.
That link contains one of the main reasons this forum exists. This is a forum for learning how to properly code a web site with valid and semantic html using CSS to control layout.

Perhaps a quick loook at a few HTML and CSS tutorials would do you some good. Smile

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 30 weeks 6 days ago
Joined: 2004-06-30
Posts: 9668
Points: 801

no right click.

If you want to get into webdev, you'd do well to construct your pages properly. You had no doctype, no <head> or <body> sections, and a lot of unnecessary code.

But it's up to you Wink

Verschwindende wrote:
  • CSS doesn't make pies