Home > Panele > Panel Promuj strone

Panel Promuj strone

Dodane przez: piciu
opis:
Panel Promuj strone
Kod:
  1. $banner_url = 'adres_strony/images/banner/button_nasz.jpg'; // Use full URL to image - change to your image
  2. $banner_width = '120';
  3. $banner_height = '60';
  4.  
  5. openside('Dodaj');
  6. echo '<div align="center">Jeśli spodobał Ci się nasza strona i chcesz ją polecić odwiedzającym Twoją stronę internetową, dodaj do niej poniższy kod HTML.
  7. <br /><br />
  8. <a href="#" onclick="jQuery(\'#my_btn\').slideToggle(\'normal\');jQuery(\'#give_c\').slideUp(\'normal\');return false;">
  9. <img src="'.$banner_url.'" width="'.$banner_width.'" height="'.$banner_height.'" border="1" />
  10. <span class="small" id="give_c"><br />Pobierz kod!</span>
  11. </a>
  12. <br /><br />
  13. <div id="my_btn"><span class="small">Nasze 2 kody<br />
  14. (<a href="#" onclick="jQuery(\'#mybtncode\').html(mbtn_c);return false;" >Button</a> | <a href="#" onclick="jQuery(\'#mybtncode\').html(mlink_c);return false;" >Link</a>)</span>
  15. <br />
  16. <textarea onFocus="this.select()" onClick="this.select()" name="mybtn" id="mybtncode" readonly class="textbox" cols="30" rows="5" style="width: 140px;">
  17. &lt;a href="'.$settings["siteurl"].'" target="_blank"&gt;&lt;img width="'.$banner_width.'" height="'.$banner_height.'" title="'.$settings["sitename"].'" alt="'.$settings["sitename"].'" src="'.$banner_url.'" border="0" /&gt;&lt;/a&gt;
  18. </textarea></div></div>
  19. <script type="text/javascript">
  20. <!--
  21. show_hide("my_btn");
  22. var mbtn_c = jQuery(\'#mybtncode\').html();
  23. var mlink_c = \'&lt;a href="'.$settings["siteurl"].'" target="_blank"&gt;'.$settings["sitename"].'&lt;/a&gt;\'
  24. //-->
  25. </script>';
  26. closeside();

©