Advanced Code


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 [...]

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 [...]

Image Fireworks

To create image fireworks you will need to create 10 tiny pictures first. Below, we will show you how to use those 10 tiny pictures as a fireworks display. Any time someone clicks anywhere inside your webpage, the 10 tiny images will look like a fireworks display scene. Cool, eh?
First, copy and paste this between [...]

Popunder Power

This powerful little script opens a “smart” pop-under window that that can remember if your site’s visitor has already seen it once. It’s resizeable, and you can even specify random URL’s to pop under, with or without toolbars, menu, etc. Get paid by your advertisers without annoying your visitors!
Copy the following code into your HEAD [...]

Reload your page automatically or load visitors to another

Here are two examples for auto loading a page - your’s or another’s. Have some fun!
To reload your webpage automatically place this piece of code between your header tags as shown in the example:
Code:
<HEAD>
<META HTTP-EQUIV=REFRESH CONTENT=5>
</HEAD>
CONTENT=5 means wait for 5 seconds to reload the page. You can change this to [...]

Number of People on a Page

Open up your notepad and save the current BLANK document as usersonline.txt (do not put anything in this document) - click edit->save as and place it in a folder where you can upload it later.
Close that document.
Open up notepad again and add the following script:
Code:
<?
$remote = $_SERVER["REMOTE_ADDR"];
$file = “usersonline.txt”;
$timeoutseconds [...]

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!