|
Computer
Tips |
|
Many
people often email me asking for help about how add scripts such
as the colored scroll bar, the famous snow effect script etc,
so I will try to help. I do not have any intentions to make any
tutorial site, I'm just trying to help those who ask me for a
little help. Sometimes I cannot reply all emails so quickly,
so I created this page where you may find some useful information. |
The script that adds
color to the scroll bar is one of my favorite and I use it in
all my pages. I often match the scroll bar colors with the backgrounds,
so it looks very nice. It is a lot of work if you have hundreds
of pages and uses different backgrounds like me, but I think
the result is very nice, so it is worth doing it.
Scripts
such as the snow script is nice in some pages, but it is better
if you do not set the number of images that will fall to more
than 8 or 10. Some scripts may also slow down other people's
computer. A long time ago, when I used dial up connection, all
pages I tried to visit that had some particular scripts normally
froze my screen and I had to restart the computer, so every time
I went to a site and that happened, I had to leave because I
couldn't visit it. So it is advisable not
to have too many scripts running on a single page or you may
have many visitors quitting.
Below
there are a few things people often ask me. Please, do not forget
to give credit to the sites where I got the scripts from, do
not give the credit to me because I did not create them. :o)
Thank you !
In red
is the script you are going to copy and paste and in dark yellow all the information you will need
to change
in the script when inserting it in your document.
How
to put a subject in the e-mail when people click on the email
link
Write this in your email link:
mailto:yourname@youraddress?subject=Write your subject here
(i.e.: mailto:emailaddressATirenescornerDOTcom?subject=Irene's
Country Corner)
Click
HERE if you want to copy
this code.
from
Lissa Explains it All.
How
to add color to the scroll bar
Write this in the BODY of your document:
<style>
<!--
BODY{
scrollbar-face-color:#294A5A;
scrollbar-arrow-color:#FFFFFF;
scrollbar-track-color:#4A5A5A;
scrollbar-shadow-color:#5A6363;
scrollbar-highlight-color:#5A6363;
scrollbar-3dlight-color:#294242;
scrollbar-darkshadow-Color:#294242;
}
--></style> |
Click HERE if you want to copy
this code.
I got
this script at Lissa Explains it All.
How
to use the silent no-right click script
Write this in the HEAD of your document before the title of your
page:
<SCRIPT language="JavaScript">
<!--
//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all))
{
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</SCRIPT> |
Click HERE if you want to copy
this code.
This
code is for a silent no-right click. It works much better than
the one with a pop-up message, however you can use both at the
same time in case you want to display a message with your own
text when people right-click on your pages. If you do not know
the difference between them, right click anywhere on this page.
You will see the no-right click script with the pop-up message.
When you use the silent script, the message window does not pop-up.
:o)
I got
this script at Dynamic Drive.
How
to use the no-right click script with a pop-up message
Write this in the BODY of your document:
<SCRIPT LANGUAGE="JavaScript1.1"><!--
Original: Martin Webb (martin@irt.org) --><!-- This script
and many more are available free online at --><!-- The
JavaScript Source!! http://javascript.internet.com --><!--
Begin
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Function
disabled. This is *not* Public Domain.\n\nContents and Web Page
Design Copyright ©
Write your
name here.\n\nThank
you and enjoy your stay ! ");
return false;
}
return true;
}
document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
// End --></SCRIPT> |
Click HERE if you want to copy
this code.
I got
this script at The Java Script Source.
How
to use the no-highlight script (disable text select)
Write this in the HEAD of your document and before the tile of
your page:
<SCRIPT language="JavaScript1.2">
//Disable select-text script (IE4+, NS6+)- By Andy Scott
//Exclusive permission granted to Dynamic Drive to feature script
//Visit http://www.dynamicdrive.com for this script
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</SCRIPT> |
Click HERE if you want to copy
this code.
The no
high-light script will keep people from high-lighting your text
and clicking on copy on their browser. If used together with
the no-right click, it will make it more difficult for people
to copy your pages. Of course, there are many other ways for
dishonest people to do copy and steal things, but...
I got
this script at Dynamic Drive.
How
to disable the image tool bar in Internet Explorer 6.0
Write these two tags in the BODY of your document and before
the title of your page:
<META HTTP-EQUIV="imagetoolbar"
CONTENT="no">
<META NAME="MSSmartTagsPreventParsing" CONTENT="TRUE"> |
Click HERE if you want to copy
these tags.
People
who have use Internet Explorer 6 can easily save graphics from
pages with the no-right click script. A small window appears
when the cursor is pointed to an image and people have the option
to save it. I did not know how it happened until I installed
IE6 in my computer in March 2002, but I use this tag in all my
pages since 2001. It was sent to me by a friend. Feel free to
copy and paste it into the HEAD of your document.
How
to prevent people from dragging a image to save it in the browser
Write this code in the "head" of your document.
<span oncontextmenu="return
false;" ondragstart="return false";> |
Click HERE if you want to copy
this code.
How
to make the triple backgrounds
Write this code in your webpage document.
<html>
<head>
<title>The Title of Your Page goes here</title>
</head>
<body background="background1.gif">
<br>
<p><center><table width="90%" cellpadding=20
cellspacing=0 border=0 background="background2.gif">
<tr>
<td width="100%">
<p><center><table width="100%" border=0
background="background3.gif">
<tr>
<td width="100%">The Content of Your Page Goes
Here
</td>
</tr>
</table>
</center>
</td>
</tr>
</table>
</center>
</body>
</html> |
Click HERE if you want to copy
this code.
How
to place images in guest books
Write this code in the guest book:
<p align"center"><a
href="http://www.yoururl.com"target="_blank"><img
src="http://www.yoururl.com/name_of_the_folder_you_uploaded_the
_image_to/yourimage.gif" border="0"></a></center> |
Click HERE if you want to copy
this code. |
|