Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery('.tpcoupon-reveal').click( function() {
- jQuery('.inner-code').css('background-color','#FFF');
- jQuery('.inner-code').text(jQuery(this).attr('caption'));
- visitstore = jQuery(this).attr('url');
- window.open(visitstore);
- });
- $newText = '
- <div class="tpcoupon-code-wrapper">
- <span class="tpcoupon-msg"> '.tpbox2_unhtmlentities($content).'</span>
- <span class="tpcoupon-reveal" caption="'.$couponcode.'" url="'.$url.'">Vis koden & besøg siden</span>
- <span class="tpcoupon-code-show">
- <span class="inner-code"></span>
- </span>
- </div>
- <div class="clr"></div>
- ';
- $(this).parent().find('.inner-code')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement