با سلام
من یع قطعه کدی دارم که در گوشه باز میشه
میخوام باتنی بزارم و وقتی کلیک بکنم ای کد اجرا بشه و نشون داده بشه .
نمیدونم چیکار کنم .
<script type="text/javascript"> $(document).ready(function () { var unique_id = $.gritter.add({ // (string | mandatory) the heading of the notification title: 'Welcome to Dashgum!', // (string | mandatory) the text inside the notification text: 'Hover me to enable the Close Button. You can hide the left sidebar clicking on the button next to the logo. Free version for <a href="http://blacktie.co" target="_blank" style="color:#ffd777">BlackTie.co</a>.', // (string | optional) the image to display on the left image: 'assets/img/ui-sam.jpg', // (bool | optional) if you want it to fade out on its own or just sit there sticky: true, // (int | optional) the time you want it to be alive for before fading out time: '', // (string | optional) the class name you want to apply to that specific message class_name: 'my-sticky-class' }); return false; }); </script>
یه راهنمایی بفرمایید و اینکه متنش رو چجوری عوض کنم با دستور ؟
میتونید یک function درست کنید و اسکریپت ها را در اون قرار دهید
بعد یک button قرار دهید در رویداد onclick میتونید function را صدا بزنید
هیچ کاربری تا کنون از این پست تشکر نکرده است
با ما تماس بگیرید تا در این مسیر همراهتان باشیم :)