Javascript source

Here's a way for those with GeoPlus to keep the watermark from displaying on their pages and not violate GeoCities rules! The javascript checks to see if the page is using the normal URL and if it is it will automatically load the page using the vanity URL--and we all know that the GeoPlus vanity URL doesn't add the watermark to the page.

One thing to keep in mind when you use this script....if the vanity URLs are down the visitor will get the oops page. It's a little more work, but definitely worth it to provide two versions of your site (just like some folks provide framed and unframed versions). If you see the watermark in this frame, then you should also see a link under the menu to fix the oops page. Clicking there will reload the entire page so it bypasses the script to refresh to the vanity URL. Since the watermark only displays in the largest frame I don't need a script-free version of the pages used in the menu and tunes frames--only those displayed in this frame. With all the space GeoPlus users have, I'm not worried about running out of room!

This isn't my script, but the author doesn't mind it being used as long as his credits stay intact  :-)

See how it's used       Grab the source

See more javascripts
<SCRIPT>
<!-- start hiding
// Author: Nicolas @ http://www.javascript-page.com

// replace membername with your GeoCities member name
var membername = "membername"

// if the page is your index page, you can leave subpage.html blank (but keep the quote marks)
// otherwise put the path and page name like "pics/thumbs.html"
var subpage = "subpage.html"

var gc = "http://www.geocities.com/~"
var sl = "/"
var url = document.location.href

if (url.indexOf("~") == -1)
{
document.location = gc + membername + sl + subpage
}
// stop hiding -->
</SCRIPT>







Copyright ©1997-2001  Charlene C. Schaar
All rights reserved.

Hosted by www.Geocities.ws

1