WebSite

You are browsing the WebSite tag archive.

Redirect out of your secret folders - ex images

Want to keep prying eyes out of your images folder or any other folder for that matter? Your images folder and some other folders can be looked at if you do not have an index.html in there. We suggest you do the following instead of a plain index.html file.
Create your index.html file that you will [...]

Break Out of Frames

How would you like to ensure that your visitors are viewing your website without being inside someone else’s frames? Add this simple piece of javascript to the head section your your HTML file:

Code:
<script language=”JavaScript”>
if (top.location.href != location.href)
top.location.href = location.href;
</script>

Simple webpage counter

Here’s a very simple webpage counter which can be used in any html page:
First open your notepad. Copy and paste this piece of code inside:

Code:
<?php
$myfile = fopen(”counter.txt”,”r”);
$count = fgets($myfile,10);
fclose($myfile);
$count+=1;
$myfile = fopen(”counter.txt”,”w”);
fwrite($myfile, $count);
echo “document.write(’You are visitor number $count’)”;
fclose($myfile);
?>

Go to Edit then “save as”. Before saving, make sure the format drop down tab is set for any [...]

Randomize Your Button Friends

Got alot of friends you link to? Want to randomize their small buttons? You can randomize anything really with this script. Check it out… Have some fun!

Code:
<?
$Buttons = 5; // # of button to show
$Img[] = “<a href=’http://www.friend1.com’><IMG src=’images/1.gif’></a>”;
$Img[] = “<a href=’http://www.friend2.com’><IMG src=’images/2.gif’></a>”;
$Img[] = “<a href=’http://www.friend3.com’><IMG src=’images/3.gif’></a>”;
//over and over like [...]

Automatic Redirection

Have you ever wanted to redirect your visitors to another website? Like for instance - if your website moved from a free site to your own domain name. Of course, you could put a simple hyperlink on your old page, but that doesn’t guarantee people will go to your new page.
One option is to simply [...]

Users online - on your site

You must have seen this on some sites where they display the number of users online. This scripts exactly does that. It displays number of users currently browsing your website.
The table structure
Code:

CREATE TABLE useronline (
timestamp int(15) DEFAULT ‘0′ NOT NULL,
ip varchar(40) NOT NULL,
file varchar(100) NOT NULL,
PRIMARY KEY (timestamp),
KEY ip (ip),
KEY file (file)
);

User’s Online Displays the [...]

Paths - URLs - and URIs

Learn some more webmaster lingo today. Here we’ll show you paths, urls, and uri’s. Check out the rest…

Paths
A path specifies the location of a file or directory (folder) on a computer. A simple path looks like this:
/user/jones/notes
The components of a path are separators (the “/” character) and file or directory names. There is always [...]

Keep Your Site Looking Fresh With Rotating Images

1.) You will need 6 graphics that are preferably the same size.
2.) Upload those images to a directory on your website.
3.) Place this piece of code below your opening body tag:

Code:

<script language=”JavaScript” type=”text/javascript”>
// This script is free to use
<!–
// JavaScript to interpolate random images into a page.
var ic = 6; [...]

Trailing Mouse

Want some words to follow your cursor on your site? How about a phrase? This little handy script allows you to do just that.
Copy and paste the following into your <HEAD> tags:

Code:
<script language=”Javascript”>

/*
Cheesy Mouse Trails
Copyright Al Sparber (www.projectseven.com)
*/

var x,y
var step=20
var [...]

No Right Click

Help protect your images from people who want to steal them. Use this no right click script. It won’t stop them from using other methods of stealing, but it will help ward off some of them.
Copy and paste the following code right after your <head> tag and before your </head> tag. Edit only the popup [...]

m121ban2





mp

Star Resell Our Services As Your Own
Basic Reseller
Pro Reseller
Reseller Login

register domain names
Domain Sales
.com $8.99 (Now-Sept)

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!