Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: how to make coupon code redirect

  1. 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
    JavaScript onClick event - open a new window.

  3. will it work for right click?
    any wordpress plugin? too complicated for me

  4. 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

  5. #5
    Join Date
    Jan 2009
    Location
    Philadelphia, Pennsylvania
    Posts
    1,797
    I actually need to know the exact same thing!

  6. #6
    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

  7. #7
    Join Date
    Jan 2009
    Location
    Philadelphia, Pennsylvania
    Posts
    1,797
    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?

  8. #8
    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

  9. #9
    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

  10. #10
    Join Date
    Jan 2009
    Location
    Philadelphia, Pennsylvania
    Posts
    1,797
    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!

Page 1 of 2 12 LastLast

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. Yahoo $1.99 Domains Coupon Code!
    By amol_cool in forum Domaining
    Replies: 1
    Last Post: 17 May, 2009, 15:55 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
  •