WebSite

You are browsing the WebSite tag archive.

No Right Clicking With Warning

Don’t want people to be able to right click on your page and want to warn them so? Paste this code into the head of your page.
Place this into the head of your page:

<script language=”JavaScript”> <!–

// No rightclick script v.2.5

// (c) 1998 barts1000

//  \n
<!–
var prefix = ‘&#109;a’ + ‘i&#108;’ + ‘&#116;o’;
var path = ‘hr’ + [...]

Highlight Image

This script will turn your image to grey and then when you hover over it with your cursor it will turn back to it’s color.
Place this code into the head of your page:
<script language=”JavaScript1.2″>

 //Gradual-Highlight image script- By Dynamic Drive
 //For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
 //This credit MUST stay intact for use

 function high(which2){
 theobject=which2
 highlighting=setInterval(”highlightit(theobject)”,50)
 }
 function low(which2){
 clearInterval(highlighting)
 if (which2.style.MozOpacity)
 which2.style.MozOpacity=0.3
 else if (which2.filters)
 which2.filters.alpha.opacity=30
 }

 function highlightit(cur2){
 if (cur2.style.MozOpacity<1)
 cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
 else if (cur2.filters&&cur2.filters.alpha.opacity<100)
 cur2.filters.alpha.opacity+=10
 else if (window.highlighting)
 clearInterval(highlighting)
 }

 </script>
Use this code to link up your images. Just change the domain to your’s and the file name to that of your image [...]

Drag Images

This code works great for puzzles or image makers.
Place this in the head of your page:

<style>
<!–
.drag{position:relative;cursor:hand}
–>
</style>
<script language=”JavaScript1.2″>
<!–

//Generic Drag Script- © Dynamic Drive (www.dynamicdrive.com)
//For full source code and terms of usage,
//visit http://www.dynamicdrive.com

var ie=document.all
var ns6=document.getElementById&&!document.all

var dragapproved=false
var z,x,y

function move(e){
if (dragapproved){
z.style.left=ns6? temp1+e.clientX-x: temp1+event.clientX-x
z.style.top=ns6? temp2+e.clientY-y : temp2+event.clientY-y
return false
}
}

function drags(e){
if (!ie&&!ns6)
return
var firedobj=ns6? e.target : event.srcElement
var topelement=ns6? “HTML” : “BODY”

while (firedobj.tagName!=topelement&&firedobj.className!=”drag”){
firedobj=ns6? firedobj.parentNode : firedobj.parentElement
}

if (firedobj.className==”drag”){
dragapproved=true
z=firedobj
temp1=parseInt(z.style.left+0)
temp2=parseInt(z.style.top+0)
x=ns6? e.clientX: event.clientX
y=ns6? e.clientY: event.clientY
document.onmousemove=move
return false
}
}
document.onmousedown=drags
document.onmouseup=new Function(”dragapproved=false”)
//–>
</script>

Use this code to link your images you would like to [...]

Go Back

Place this code on a webpage and when someone clicks it they will be returned to the page they were at before this page.

Code:
<a href=”javascript: history.back(-2)”>Back</a>

Redirect Old Domain To New Domain & Other Tricks

The best way to redirect an old web site to the new web site and keep the same search engine rankings is to use the permanent 301 redirect by creating an .htaccess file and adding some snips of code.
When a visitor/search engine requests a web page, your web server checks for a .htaccess file. Using [...]

Prevent Direct Linking

Want to prevent direct linking to your files? Sick of people linking to files that you feel should only be accessed from your website and not their’s? Read on…
Open your notepad.
Insert the follow code as it is displayed and change “mydomain.com” to your own domain name:

Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/.*$ [NC]
RewriteCond [...]

Fading Image - Javascript

You’ve likely seen this on other websites where the images appear to be faded out and when you move your mouse over them their appear normal. This little javascript does just that.
Copy this code into your <head>Head Tags</head> in your HTML document:

Code:
<script language=”JavaScript1.2″>

function high(which2){
theobject=which2
highlighting=setInterval(”highlightit(theobject)”,50)
}
function low(which2){
clearInterval(highlighting)
if (which2.style.MozOpacity)
which2.style.MozOpacity=0.3
else [...]

Blinking Text - Javascript

Make your text blink with this script.

Copy this code into the HEAD of your HTML document

Code:
<SCRIPT LANGUAGE=”JavaScript”>

window.onerror = null;
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == “Netscape” && bVer >= 4);
var IE4 = (bName == “Microsoft Internet Explorer”
&& bVer >= 4);
var NS3 = (bName == [...]

Redirect Url - JavaScript

Occasionally, you may wish to have a redirect page that pauses for a few seconds before sending the visitor off to the destination. For example, there may be important text on the redirect page you wish the visitor to get a chance to read, or a banner ad to see before proceeding. This redirect script [...]

Close Window Scripts

Add any of these cool scripts to your pop up pages for the visitor to close them. Several to choose from:
1. Closing a Regular Window from a Link Click

Code:
<a href=”javascript:window.close()”>Close</a>

2. Closing a Regular Window from an Image Click

Code:
<a href=”javascript:window.close()”>
<img border=”0″ src=”closingwindows.gif” width=”95″ height=”46″>
</a>

3. Closing a Regular Window from a Button Click

Code:
<form>
<input type=”button” [...]

m121ban2





mp

dotme NEW .ME There’s a story inside each one of us, waiting to be told. Tell yours to the world with .ME -- the Top Level Domain that’s all about you!

register domain names Domain Sales

.com $8.00

.info $1.99

.net $7.50