EasyTricks - For Life

    Social Items


This time I am sharing a cool blogger widget NewsTicker! This cool widget inspired from a blog from Namina Kikky. We are using css html & a little bit of JS for this cool widget. So why waiting! Let's get started.

Go To Blogger > Click menu Theme Then Click Edit HTML > Add This CSS Before </head>

<style type='text/css'>
/* Breaking News */
#breakingwrapper{position:relative;background-color:#fff;color:#ccc;display:block;margin:20px auto 0 auto;overflow:hidden;border-radius:5px;box-shadow:0 2px 3px -2px rgba(0,0,0,0.1)}#breakingnews{width:100%;max-width:990px;display:block;margin:0 auto;line-height:42px;height:42px;overflow:hidden;font-size:13px;padding:0}#breakingnews .tulisbreaking{background:#e74c3c;color:#fff;display:block;padding:0 15px;font-size:13px;font-weight:600;height:28px;line-height:28px;float:left;margin:7px 14px 0 7px;text-align:center;border-radius:3px}#recentbreaking{float:left;margin:0;font-size:13px;color:#222;font-weight:600}#recentbreaking ul,#recentbreaking li{list-style:none;margin:0;padding:0}#recentbreaking li a{color:#222}#recentbreaking li a:hover{color:#222;text-decoration:underline}.blog-date{display:inline-block;float:right;margin:0 20px 0 0;font-size:13px;border-radius:2px;cursor:pointer}#recentbreaking li i{margin:0 10px 0 0}
@media screen and (max-width:768px) {
#breakingwrapper{background-color:#e74c3c;color:#fff;margin:10px auto 20px auto;border-radius:0}#breakingnews{padding:0 20px;color:#fff;overflow:hidden;text-overflow:ellipsis}#recentbreaking{color:#fbc531;text-align:center;float:none;margin:0 auto}#breakingnews .tulisbreaking .breakhidden,#breakingnews .tulisbreaking{display:none}#recentbreaking li a,#recentbreaking li a:hover{color:#fff}}
</style>

After That Add This JS Before </body>

<script type='text/javascript'>
//<![CDATA[
// Breaking News
$(document).ready(function(){var e="https://www.easytricks.blogspot.com/",t=10;$.ajax({url:"/feeds/posts/default?alt=json-in-script&amp;max-results="+t,type:"get",dataType:"jsonp",success:function(e){function t(){$("#recentbreaking li:first").slideUp(function(){$(this).appendTo($("#recentbreaking ul")).slideDown()})}var n,r,a="",i=e.feed.entry;if(void 0!==i){a="<ul>";for(var l=0;l<i.length;l++){for(var s=0;s<i[l].link.length;s++)if("alternate"==i[l].link[s].rel){n=i[l].link[s].href;break}r=i[l].title.$t,a+='<li><i class="fa fa-check-square"></i><a href="'+n+'" target="_blank">'+r+"</a></li>"}a+="</ul>",$("#recentbreaking").html(a),setInterval(function(){t()},5e3)}else $("#recentbreaking").html("<span>There nothing here?</span>")},error:function(){$("#recentbreaking").html("<strong>Error Loading Feed!</strong>")}})});
//]]>
</script>

Change the code marked with your blog address and change the number 10 according to the number of posts you want to display.

Then Add The Code Wherever You Want to Install The Newsticker Between <body> And </body>

<div id='breakingwrapper'>
   <div id='breakingnews'>
     <span class='tulisbreaking'>News Update<span class='breakhidden'/></span>
      <div id='recentbreaking'>Loading...</div>
      <div class='blog-date'>
         <script language='Javascript'>
            var dayName = new Array(&quot;Sunday&quot;, &quot;Monday&quot;, &quot;Tuesday&quot;, &quot;Wednesday&quot;, &quot;Thursday&quot;, &quot;Friday&quot;, &quot;Saturday&quot;);
            var monName = new Array(&quot;January&quot;, &quot;February&quot;, &quot;March&quot;, &quot;April&quot;, &quot;May&quot;, &quot;June&quot;, &quot;July&quot;, &quot;August&quot;, &quot;September&quot;, &quot;October&quot;, &quot;November&quot;, &quot;December&quot;);
            var now = new Date();
            document.write(&quot;&quot; + &quot; &quot; + dayName[now.getDay()] + &quot;,&quot; + &quot; &quot; + now.getDate() + &quot; &quot; + monName[now.getMonth()] + &quot;&quot;);
         </script>
      </div>
   </div>
</div>
<div class='clear'/>

After That Click Save Button And Your Done.


Now your blog have a cool Newsticker.
How To Make A Cool NewsTicker Widget On Blogger

How To Make A Cool NewsTicker Widget On Blogger

Hello Guys! Today I Am Sharing A Very Important Article.

Now A Days People Stealing Articles From Site By Coping & Today I Am Here To stop Them. So If You Want To Stop Copying Articles From Your Site Follow My Article.


We Are Doing It With JS. So All You Have To Do Is Go To Blogger & Add This Code Before </body> Of Your Blog. That's All.


<script>
function thang_cuong_matlon() { var ditmecuong = document.getElementsByTagName('body')[0]; var cuongnunglon; cuongnunglon = window.getSelection(); var cuonglon = "Stop Stealing Others Content. Don't You Have Your Brain!"; var copdiditmecuong = cuonglon; var thangmatloncuongcopdi = document.createElement('div'); thangmatloncuongcopdi.style.position='absolute'; thangmatloncuongcopdi.style.left='-99999px'; ditmecuong.appendChild(thangmatloncuongcopdi); thangmatloncuongcopdi.innerHTML = copdiditmecuong; cuongnunglon.selectAllChildren(thangmatloncuongcopdi); window.setTimeout(function() { body_element.removeChild(thangmatloncuongcopdi); },0);} document.oncopy = thang_cuong_matlon;
</script>

So Now Your Sites Content Is Free From Stealing.

Thanks To Niguen Dien.

How To Stop Copying Your Article

How To Stop Copying Your Article


Hello Guys Welcome To EasyTrks. Today I Will Show You How To Make A Navigation Bar Using Bootstrap 4. So Stay Tuned.

Introduction : Bootstrap Probably The Best Way Of Making Navigation Bar For New Bees. Bootstrap Is A Program That Have Huge Css Inside It. It's Known World Wide & Beings Used By Many Sites. But The Most Important Thing Is It's Absolutely Free To Use.

We Will Use Pooper Js & Jquery To.


So Let's Get Started .

> Go To Your Site & Add This Bootstrap In The Middle Of <head> & </head> Section.


<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

> This Was The css & Now Let's Add The Jquery & Popper Js.


<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>

For Wapkiz Go To Panel Mode > Meta Header & Add All Of This Codes.
After Installing All Of This Code You Are Ready For Installing Navigation Bar. Just Add This Html Code  Where You Want To Install Navigation Bar.


<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <a class="navbar-brand" href="#">Navbar</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>

  <div class="collapse navbar-collapse" id="navbarSupportedContent">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item active">
        <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="#">Link</a>
      </li>
      <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          Dropdown
        </a>
        <div class="dropdown-menu" aria-labelledby="navbarDropdown">
          <a class="dropdown-item" href="#">Action</a>
          <a class="dropdown-item" href="#">Another action</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="#">Something else here</a>
        </div>
      </li>
      <li class="nav-item">
        <a class="nav-link disabled" href="#">Disabled</a>
      </li>
    </ul>
    <form class="form-inline my-2 my-lg-0">
      <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
      <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
    </form>
  </div>
</nav>

And Now Your Done.
Wanna See Demo!



Special Thanks To GetBootstrap.Com
How To Make A Bootstrap 4 Navigation Bar

How To Make A Bootstrap 4 Navigation Bar

Subscribe To Our Newsletter