Welcome guest, is this your first visit? Create Account now to join.
  • Login:

Members in Chat:
+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Dec 2008
    Posts
    429
    $NetBucks
    1,383
    Blog Entries
    1
    Thanked 27 Times in 24 Posts

    how to make coupon code redirect

    hi
    how to make an affiliate coupon site
    where a person clicks the coupon to copy it, and in the background the affiliate link opens up too

  2. #2
    Unknown's Avatar
    Unknown is offline Unknown Net Builder
    Join Date
    Dec 2009
    Posts
    3
    $NetBucks
    107
    Thanked 2 Times in 1 Post
    JavaScript onClick event - open a new window.

  3. Thanked by:

    Aziz (19 December, 2009), MeetHere (20 December, 2009)

  4. #3
    Join Date
    Dec 2008
    Posts
    429
    $NetBucks
    1,383
    Blog Entries
    1
    Thanked 27 Times in 24 Posts
    will it work for right click?
    any wordpress plugin? too complicated for me

  5. #4
    Join Date
    Dec 2008
    Posts
    429
    $NetBucks
    1,383
    Blog Entries
    1
    Thanked 27 Times in 24 Posts
    Quote Originally Posted by Unknown View Post
    JavaScript onClick event - open a new window.
    but i want to open 2 windows - one showing coupon code and another opening the site..
    or a click just unhide the coupon and opens the site simultaneously

    plz help this noob

  6. #5
    Kovich's Avatar
    Kovich is offline Community Guardian Recent Blog: Identifying your Target Audience
    Join Date
    Jan 2009
    Location
    Pennsylvania, United States
    Posts
    1,808
    $NetBucks
    6,578
    Blog Entries
    60
    Thanked 418 Times in 278 Posts
    I actually need to know the exact same thing!

  7. #6
    Aussie's Avatar
    Aussie is offline Unknown Net Builder
    Join Date
    Oct 2009
    Posts
    138
    $NetBucks
    414
    Thanked 46 Times in 36 Posts
    Ok I think this is what you want it to do.

    Put this in the head section of your page or a js file and link to it.

    Code:
    <script language="javascript">
    <!--
    var state = 'hidden';
    
    function showhide(layer_ref) {
    
    if (state == 'visible') {
    state = 'hidden';
    }
    else {
    state = 'visible';
    }
    if (document.all) { //IS IE 4 or 5 (or 6 beta)
    eval( "document.all." + layer_ref + ".style.visibility = state");
    }
    if (document.layers) { //IS NETSCAPE 4 or below
    document.layers[layer_ref].visibility = state;
    }
    if (document.getElementById && !document.all) {
    hiddencode = document.getElementById(layer_ref);
    hiddencode.style.visibility = state;
    }
    }
    //-->
    </script>
    And this is the code to show the coupon code and open a site (godaddy in this example) in another window (IE) or tab (FF)

    Code:
    <a onclick="showhide('coupon_code'),window.open('http://www.godaddy.com','popup');return false;">-->>click here<<--</a> to see the coupon code!
            
    <!-- START - HIDDEN INFORMATION TO BE SHOWN ONCLICK --> 
    <div id="coupon_code" style="visibility:hidden;">
    <strong>Coupon Code</strong>
    </div>
    <!-- END - HIDDEN INFORMATION TO BE SHOWN ONCLICK -->
    I put this together from various sources.

    You'll need to work on the link style as it isn't a visible link as it is now so if you style it with blue and an underline it would appear as a link.



    Hope it helps or at least puts you on the right path to find what you need.



    Aus

  8. Thanked by:

    Snak3 (26 December, 2009)

  9. #7
    Kovich's Avatar
    Kovich is offline Community Guardian Recent Blog: Identifying your Target Audience
    Join Date
    Jan 2009
    Location
    Pennsylvania, United States
    Posts
    1,808
    $NetBucks
    6,578
    Blog Entries
    60
    Thanked 418 Times in 278 Posts
    Hmm. That just seems to open a new window/tab.

    What I'm trying to do is make it so that someone clicks say, a submit button - but when they do, they're also getting a pop-up window that is totally separate. Is this possible?

  10. #8
    Aussie's Avatar
    Aussie is offline Unknown Net Builder
    Join Date
    Oct 2009
    Posts
    138
    $NetBucks
    414
    Thanked 46 Times in 36 Posts
    Quote Originally Posted by MeetHere View Post
    but i want to open 2 windows - one showing coupon code and another opening the site..
    or a click just unhide the coupon and opens the site simultaneously

    plz help this noob
    The code I posted was in response to this question. Well the 2nd part of it anyway. which if you want an example you can see it at http://www.parkzu.com/fb.php

    And what you want is more than likely possible also and I'll see if I can figure it out for you.

    Aus

  11. Thanked by:

    MeetHere (26 December, 2009)

  12. #9
    Aussie's Avatar
    Aussie is offline Unknown Net Builder
    Join Date
    Oct 2009
    Posts
    138
    $NetBucks
    414
    Thanked 46 Times in 36 Posts
    ok this will open a new window on a submit

    Code:
     <script>
      function popup(popupType) {
       window.open("http://www.tech_faq.com");
      }
     </script>
     <form method="post" action="http://netbuilders.org" onSubmit="popup()">
      <input type="text" name="q"/>
      <input type="submit"/>
     </form>
    In this example it would open a new window/tab with tech_faq and insert netbuilders into whatever you were trying to do..

    Aus

    Aus

  13. Thanked by:

    Kovich (26 December, 2009)

  14. #10
    Kovich's Avatar
    Kovich is offline Community Guardian Recent Blog: Identifying your Target Audience
    Join Date
    Jan 2009
    Location
    Pennsylvania, United States
    Posts
    1,808
    $NetBucks
    6,578
    Blog Entries
    60
    Thanked 418 Times in 278 Posts
    Quote Originally Posted by Aussie View Post
    ok this will open a new window on a submit

    Code:
     <script>
      function popup(popupType) {
       window.open("http://www.tech_faq.com");
      }
     </script>
     <form method="post" action="http://netbuilders.org" onSubmit="popup()">
      <input type="text" name="q"/>
      <input type="submit"/>
     </form>
    In this example it would open a new window/tab with tech_faq and insert netbuilders into whatever you were trying to do..
    Yes! This is everything I need.

    Donating all the NB$ I have to you now. Thanks a ton!


 

Similar Threads

  1. [WTS] $100 Google AdWords Coupon Code
    By salamanderds in forum Marketplace
    Replies: 0
    Last Post: 11 February, 2010, 14:37 PM
  2. [WTS] $100 Google AdWords Coupon Code
    By Kovich in forum Marketplace
    Replies: 4
    Last Post: 27 January, 2010, 06:45 AM
  3. [Free] RackSpace Cloud coupon code: REF-YY
    By yangyang in forum Hosting
    Replies: 0
    Last Post: 27 June, 2009, 17:33 PM
  4. Yahoo $1.99 Domains Coupon Code!
    By amol_cool in forum Domaining
    Replies: 1
    Last Post: 17 May, 2009, 16:55 PM
  5. [WTS] TmzHosting | VPS Plans are here | 15% OFF with coupon code
    By TmzHosting in forum Hosting
    Replies: 4
    Last Post: 18 February, 2009, 14:38 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts