1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Please, need help and input with a script

Discussion in 'HTML & JavaScript' started by cyber74, Apr 16, 2009.

  1. cyber74

    cyber74 Newbie

    Jan 30, 2008
    Likes Received:
    I work for myself, so my boss is only a Jerk half
    North / Central Maine

    On a couple of pages I use this script below to redirect to another site.

    I like it as it goes between the </head> and <body tags.

    I am actually able to run this with content/ images in the body which gets spidered.
    First, will something like this get me the Big Google Slap?

    Secondly, I only get a redirect from this and I would like to keep my own URL in the browser window
    and then have it break out on the second click.

    Obviously I'm no kind of webmaster since I only know enough to get me in trouble. LOL

    Is there someone here who can point me in the right direction to,
    either alter this so it does what I want it to do, Or another script that would work as I'd like.

    Lastly, is it possible to get this to run inside a template (like a main index page) so I can include links to my other site pages.

    I've searched for a workaround for this and can't seem to find anything.

    Thanks to all who can help.


    //Browser redirect Script- © Dynamic Drive ()
    //For full source code, 100's more DHTML scripts, and Terms Of Use,
    //visit dynamicdrive

    var browser_type=navigator.appName
    var browser_version=parseInt(navigator.appVersion)

    //if NS 6
    if (browser_type=="Netscape"&&browser_version>=5)
    //if IE 4+
    else if (browser_type=="Microsoft Internet Explorer"&&browser_version>=4)
    //if NS4+
    else if (browser_type=="Netscape"&&browser_version>=4)
    //Default goto page (NOT NS 4+ and NOT IE 4+)
    window.location=". dynamicdrive.com"