1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Redirect code please help!

Discussion in 'Programming' started by emil2k, Sep 29, 2005.

  1. #1
    Can somebody add code to this code that would make this redirection based on homepage, also ba able to be used in firefox.
    <HTML XMLNS:IE>
    <HEAD>
    <STYLE>
    @media all {
       IE\:HOMEPAGE {behavior:url(#default#homepage)}
    }
    </STYLE>
    
    <SCRIPT>
    function fnVerify()
    {
       if (oHomePage.isHomePage("http://www.gig4free.com/"))
          navigate("http://www.gig4free.com/_______.htm");
       else
          navigate("http://www.gig4free.com/______.htm");
    }
    </SCRIPT>
    </HEAD>
    <BODY onload="fnVerify()">
    <IE:HOMEPAGE ID="oHomePage" />
    </BODY>
    </HTML>
    
    Code (markup):
    Please help, I have no idea how to do it
    SEMrush
    PS If you know how to make it work for any other browser please tell me
     
    emil2k, Sep 29, 2005 IP
    SEMrush
  2. imaginemn

    imaginemn Peon

    Messages:
    20
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I am not sure what you are trying to accomplish but you could try something like this.

    <SCRIPT>
    var mainURL = 'http://yourMainPageURLhere';

    if (document.referrer != mainURL) {
    top.location.href = "newpage.htm";
    } else {
    top.location.href = mainURL;
    }
    </SCRIPT>
     
    imaginemn, Oct 3, 2005 IP