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

google showing your wrong page? Use this if you dare

Discussion in 'Black Hat SEO' started by partymarty4870, Apr 30, 2012.

  1. partymarty4870

    partymarty4870 Elite Member

    Joined:
    Jul 7, 2010
    Messages:
    2,034
    Likes Received:
    1,690
    Location:
    I come from a land downunder
    Now this comes with no guarantee's - so no whinging if it doesn't work, or has negative effects

    This code will redirect your customers to the correct page. I have made a couple of sales today using this. (this site didn't matter much to me though)

    Code:
    <script src="[URL]https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script[/URL]>
    <script>$(document).ready(function() {setTimeout("location.href='http://www.yourredirectedpage.com'", 12000);});</script>
    obviously replace the yourredirectedpage.com with where you want them to land and the 12000 is 12 seconds, so set that however long you want.

    Again I stress - use at your own risk.
     
  2. Nightstalker

    Nightstalker Newbie

    Joined:
    Apr 26, 2012
    Messages:
    33
    Likes Received:
    1
    ", 12000);} what is this 12000 ?
     
  3. ron.ray

    ron.ray Jr. VIP Jr. VIP Premium Member

    Joined:
    May 24, 2010
    Messages:
    878
    Likes Received:
    401
    Home Page:
    Thats miliseconds, 12000=12 seconds as far as i understand
     
  4. partymarty4870

    partymarty4870 Elite Member

    Joined:
    Jul 7, 2010
    Messages:
    2,034
    Likes Received:
    1,690
    Location:
    I come from a land downunder
    exactly - 12 seconds after page load it'll redirect.

    it probably should be set at 1 or 2 seconds - I had my reasons for 12 when I originally used it.
     
  5. dracony2

    dracony2 Regular Member

    Joined:
    Mar 5, 2010
    Messages:
    350
    Likes Received:
    321
    Location:
    Jupiter
    there is no need for waiting for document.ready
    actually no need for jquery at all

    just use this:
     
  6. jdwurn

    jdwurn Registered Member

    Joined:
    Mar 22, 2012
    Messages:
    60
    Likes Received:
    10
    you don't need to use set timeout. settimeout is a function used for animations and things like that where you need to continuously call a function every certain number of seconds. Just redirect the page onload.

    <script>
    window.onload = redirectfunction;


    function redirectfunction()
    {
    window.location = "http://www.newpage.com";
    }
    </script>