<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>| Blogger Tips And Tricks|Latest Tips For Bloggers</title>
	<atom:link href="https://www.bloggertipandtrick.net/tutorials/java-script/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Blogger Tips And Tricks&#124;Latest Tips For Bloggers</description>
	<lastBuildDate>Tue, 16 Sep 2025 04:13:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>How to Add a Calendar to Blogger</title>
		<link>https://www.bloggertipandtrick.net/add-calendar-to-blogger/</link>
					<comments>https://www.bloggertipandtrick.net/add-calendar-to-blogger/#respond</comments>
		
		<dc:creator><![CDATA[Lasantha Bandara]]></dc:creator>
		<pubDate>Tue, 26 Aug 2025 08:32:00 +0000</pubDate>
				<category><![CDATA[css]]></category>
		<category><![CDATA[gadget]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[java script]]></category>
		<guid isPermaLink="false">http://www.bloggertipandtrick.net/2009/09/how-to-add-a-calender-to-bloggerblogspot.html</guid>

					<description><![CDATA[<p>This guide shows how to add a simple monthly calendar to your Blogger blog. It uses one HTML/JavaScript gadget and a small script. No external files are required. 1. Open your Blogger dashboard. 2. Go to Layout. 3. Click Add a Gadget in the area where you want the calendar. 4. Choose HTML/JavaScript. 5. Add [&#8230;]</p>
<p>The post <a href="https://www.bloggertipandtrick.net/add-calendar-to-blogger/">How to Add a Calendar to Blogger</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" src="https://www.bloggertipandtrick.net/wp-content/uploads/2025/08/How-to-Add-a-Calendar-to-Blogger.jpg" alt="How to Add a Calendar to Blogger" width="1200" height="630" class="alignnone size-full wp-image-7464 singular-featured-image" srcset="https://www.bloggertipandtrick.net/wp-content/uploads/2025/08/How-to-Add-a-Calendar-to-Blogger.jpg 1200w, https://www.bloggertipandtrick.net/wp-content/uploads/2025/08/How-to-Add-a-Calendar-to-Blogger-768x403.jpg 768w" sizes="(max-width: 1200px) 100vw, 1200px" /></p>
<p>This guide shows how to add a simple monthly calendar to your Blogger blog. It uses one HTML/JavaScript gadget and a small script. No external files are required.</p>
<p>1. Open your <strong>Blogger</strong> dashboard.</p>
<p>2. Go to <strong>Layout</strong>.</p>
<p>3. Click <strong>Add a Gadget</strong> in the area where you want the calendar.</p>
<p>4. Choose <strong>HTML/JavaScript</strong>.</p>
<p>5. Add the code given below into the content box and click <strong>Save</strong>.</p>
<pre><code>&lt;div id=&quot;btt-basic-calendar&quot;&gt;&lt;/div&gt;
&lt;script type='text/javascript'&gt;
//&lt;![CDATA[

(function() {
  function generateCalendar(id) {
    var today = new Date();
    var month = today.getMonth();
    var year = today.getFullYear();
    var firstDay = new Date(year, month, 1).getDay();
    var daysInMonth = new Date(year, month + 1, 0).getDate();
    
    var monthNames = [
      &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 calendar = &quot;&lt;table class='btt-basic-calendar'&gt;&quot;;
    calendar += &quot;&lt;thead&gt;&lt;tr&gt;&lt;th colspan='7'&gt;&quot; + monthNames[month] + &quot; &quot; + year + &quot;&lt;/th&gt;&lt;/tr&gt;&quot;;
    calendar += &quot;&lt;tr&gt;&lt;th&gt;Sun&lt;/th&gt;&lt;th&gt;Mon&lt;/th&gt;&lt;th&gt;Tue&lt;/th&gt;&lt;th&gt;Wed&lt;/th&gt;&lt;th&gt;Thu&lt;/th&gt;&lt;th&gt;Fri&lt;/th&gt;&lt;th&gt;Sat&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&quot;;
    
    // Empty cells before first day
    for (var i = 0; i &lt; firstDay; i++) {
      calendar += &quot;&lt;td&gt;&lt;/td&gt;&quot;;
    }
    
    // Fill days
    var day = 1;
    for (var i = firstDay; i &lt; 7; i++) {
      calendar += &quot;&lt;td&quot; + (day === today.getDate() ? &quot; class='today'&quot; : &quot;&quot;) + &quot;&gt;&quot; + day + &quot;&lt;/td&gt;&quot;;
      day++;
    }
    calendar += &quot;&lt;/tr&gt;&quot;;
    
    // Remaining weeks
    while (day &lt;= daysInMonth) {
      calendar += &quot;&lt;tr&gt;&quot;;
      for (var i = 0; i &lt; 7 &amp;&amp; day &lt;= daysInMonth; i++) {
        calendar += &quot;&lt;td&quot; + (day === today.getDate() ? &quot; class='today'&quot; : &quot;&quot;) + &quot;&gt;&quot; + day + &quot;&lt;/td&gt;&quot;;
        day++;
      }
      calendar += &quot;&lt;/tr&gt;&quot;;
    }
    
    calendar += &quot;&lt;/tbody&gt;&lt;/table&gt;&quot;;
    document.getElementById(id).innerHTML = calendar;
  }

  // Run on load if a container with id=&quot;btt-basic-calendar&quot; exists
  window.onload = function() {
    var container = document.getElementById(&quot;btt-basic-calendar&quot;);
    if (container) {
      generateCalendar(&quot;btt-basic-calendar&quot;);
    }
  };
})();

//]]&gt;
&lt;/script&gt;
&lt;style&gt;
.btt-basic-calendar {border-collapse:collapse;width:100%;text-align:center;font-family:Arial,sans-serif;font-size:14px;}
.btt-basic-calendar th {background:#f5f5f5;padding:5px;}
.btt-basic-calendar td {border:1px solid #ddd;padding:5px;}
.btt-basic-calendar .today {background:#ffeb3b;font-weight:bold;}
&lt;/style&gt;</code></pre>
<p><strong>Tip:</strong> You can add a title for the gadget, such as Calendar, to show a header above the widget.</p>
<p>6. Save your layout and refresh your blog. The current month will appear, and today's date will be highlighted.</p>
<p><strong>Note:</strong> This calendar code is not limited to Blogger. You can also use it on any other website by pasting the same snippet into your HTML where you want the calendar to appear.</p>
<p>The post <a href="https://www.bloggertipandtrick.net/add-calendar-to-blogger/">How to Add a Calendar to Blogger</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bloggertipandtrick.net/add-calendar-to-blogger/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Add jQuery to Blogger</title>
		<link>https://www.bloggertipandtrick.net/add-jquery-to-blogger/</link>
					<comments>https://www.bloggertipandtrick.net/add-jquery-to-blogger/#comments</comments>
		
		<dc:creator><![CDATA[Lasantha Bandara]]></dc:creator>
		<pubDate>Sun, 24 Aug 2025 03:08:00 +0000</pubDate>
				<category><![CDATA[html]]></category>
		<category><![CDATA[java script]]></category>
		<category><![CDATA[jquery]]></category>
		<guid isPermaLink="false">http://www.bloggertipandtrick.net/2009/07/how-to-add-jquery-on-blogger-blogspot-blogs.html</guid>

					<description><![CDATA[<p>Some Blogger templates or gadgets require jQuery to work properly. If your theme does not already load it, you can easily add it by following these steps. Steps Open your Blogger Dashboard and go to Theme. Click Edit HTML to open the code editor. Search for the closing tag &#60;/head&#62;. Paste the script below just [&#8230;]</p>
<p>The post <a href="https://www.bloggertipandtrick.net/add-jquery-to-blogger/">How to Add jQuery to Blogger</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" src="https://www.bloggertipandtrick.net/wp-content/uploads/2025/08/How-to-Add-jQuery-to-Blogger.jpg" alt="How to Add jQuery to Blogger" width="1536" height="806" class="alignnone size-full wp-image-7460 singular-featured-image" srcset="https://www.bloggertipandtrick.net/wp-content/uploads/2025/08/How-to-Add-jQuery-to-Blogger.jpg 1536w, https://www.bloggertipandtrick.net/wp-content/uploads/2025/08/How-to-Add-jQuery-to-Blogger-768x403.jpg 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></p>
<p>Some Blogger templates or gadgets require jQuery to work properly. If your theme does not already load it, you can easily add it by following these steps.</p>
<h2>Steps</h2>
<ol>
<li>Open your <strong>Blogger Dashboard</strong> and go to <strong>Theme</strong>.</li>
<li>Click <strong>Edit HTML</strong> to open the code editor.</li>
<li>Search for the closing tag <strong>&lt;/head&gt;</strong>.</li>
<li>Paste the script below <em>just before</em> <strong>&lt;/head&gt;</strong>.</li>
<li>Click <strong>Save</strong> to update your theme.</li>
</ol>
<h2>jQuery Script</h2>
<pre><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"&gt;&lt;/script&gt;</code></pre>
<h2>Optional: Add jQuery Migrate</h2>
<p>If your template or old gadgets stop working after adding the latest jQuery, you can also include jQuery Migrate. Place it <em>immediately after</em> the jQuery script tag:</p>
<pre><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"&gt;&lt;/script&gt;
&lt;script src="https://code.jquery.com/jquery-migrate-3.4.1.min.js"&gt;&lt;/script&gt;</code></pre>
<p><strong>Tip:</strong> Only add jQuery Migrate if you notice errors with older scripts. For most modern templates, the main jQuery script is enough.</p>
<h2>Final Step</h2>
<p>After saving your theme, refresh your blog and check if everything works correctly. If you see errors in the console, consider adding the optional jQuery Migrate script.</p>
<p>The post <a href="https://www.bloggertipandtrick.net/add-jquery-to-blogger/">How to Add jQuery to Blogger</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bloggertipandtrick.net/add-jquery-to-blogger/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to Change or Disable Blogger Cookies Notification</title>
		<link>https://www.bloggertipandtrick.net/change-blogger-cookies-notification/</link>
					<comments>https://www.bloggertipandtrick.net/change-blogger-cookies-notification/#comments</comments>
		
		<dc:creator><![CDATA[Lasantha Bandara]]></dc:creator>
		<pubDate>Sat, 19 Jul 2025 15:52:04 +0000</pubDate>
				<category><![CDATA[browser]]></category>
		<category><![CDATA[cookies]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[java script]]></category>
		<guid isPermaLink="false">http://www.bloggertipandtrick.net/?p=6344</guid>

					<description><![CDATA[<p>Blogger automatically displays a cookies consent banner for European Union (EU) visitors to comply with GDPR regulations. This banner appears at the top of your blog and informs users that your site uses cookies, especially for Google services and personalized ads. If you're located outside the EU and want to preview the cookies notification, you [&#8230;]</p>
<p>The post <a href="https://www.bloggertipandtrick.net/change-blogger-cookies-notification/">How to Change or Disable Blogger Cookies Notification</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" src="https://www.bloggertipandtrick.net/wp-content/uploads/2025/07/How-to-Change-or-Disable-Blogger-Cookies-Notification.jpg" alt="How to Change or Disable Blogger Cookies Notification" width="1536" height="806" class="singular-featured-image alignnone size-full wp-image-7280" srcset="https://www.bloggertipandtrick.net/wp-content/uploads/2025/07/How-to-Change-or-Disable-Blogger-Cookies-Notification.jpg 1536w, https://www.bloggertipandtrick.net/wp-content/uploads/2025/07/How-to-Change-or-Disable-Blogger-Cookies-Notification-768x403.jpg 768w" sizes="(max-width: 1536px) 100vw, 1536px" /></p>
<p>Blogger automatically displays a cookies consent banner for <strong>European Union (EU)</strong> visitors to comply with GDPR regulations. This banner appears at the top of your blog and informs users that your site uses cookies, especially for Google services and personalized ads.</p>
<p><a href="https://www.bloggertipandtrick.net/wp-content/uploads/2025/07/Blogger-Cookies-Notification.png" target="_blank"><img loading="lazy" decoding="async" src="https://www.bloggertipandtrick.net/wp-content/uploads/2025/07/Blogger-Cookies-Notification.png" alt="Blogger Cookies Notification" width="1053" height="92" class="alignnone size-full wp-image-7283" srcset="https://www.bloggertipandtrick.net/wp-content/uploads/2025/07/Blogger-Cookies-Notification.png 1053w, https://www.bloggertipandtrick.net/wp-content/uploads/2025/07/Blogger-Cookies-Notification-768x67.png 768w" sizes="auto, (max-width: 1053px) 100vw, 1053px" /></a></p>
<p>If you're located outside the EU and want to preview the cookies notification, you can no longer use region-specific domains like <strong>.co.uk</strong> as they now redirect to <strong>.com</strong>.</p>
<p>Instead, use a VPN, browser extension, or an online tool like "GeoPeeker" to simulate a visit from an EU country. This allows you to see how the cookie banner appears to EU-based visitors, regardless of whether your blog uses a *.blogspot.com address or a custom domain.</p>
<p>The cookie banner in Blogger is automatically managed by Google and is designed to inform visitors about the use of cookies on your site. It highlights how Google uses cookies for services such as personalized advertising and traffic analysis, while also fulfilling the legal requirement to obtain user consent under GDPR regulations.</p>
<p>However, the default message may not align with your blog's tone or design, and some users choose to customize or disable it entirely. This should be done with caution, as it may lead to compliance risks.</p>
<h2>How to Change the Blogger Cookies Notification Message</h2>
<p>You can customize the cookie banner text and buttons. Go to the theme's "<strong>Edit HTML</strong>" page and add this code just before the <strong>&lt;/head&gt;</strong> tag:</p>
<pre style="border:1px solid black;overflow:auto;">&lt;script type=&quot;text/javascript&quot;&gt;
    cookieOptions = {
        msg: &quot;<span style='color:#ff0000'>This site uses cookies from Google to deliver its services, to personalize ads and to analyze traffic. Information about your use of this site is shared with Google. By using this site, you agree to its use of cookies.</span>&quot;,
        link: &quot;https://policies.google.com/technologies/cookies&quot;,
        close: &quot;Got it&quot;,
        learn: &quot;Learn More&quot;
    };
&lt;/script&gt;</pre>
<p><strong>Note:</strong> You need to change the <span style="color:#0cb30c;"><strong>msg</strong></span> text to better fit your blog's language or tone.</p>
<h2>How to Disable the Blogger Cookies Notification</h2>
<p><strong>Important:</strong> Use this <strong>only if</strong> you fully understand your region's legal responsibilities. Disabling the banner may lead to <strong>non-compliance</strong> with privacy laws like GDPR.</p>
<p>To completely disable the banner, add the following code just before the closing <strong>&lt;/head&gt;</strong> tag in your theme's Edit HTML page:</p>
<pre style="border:1px solid black;overflow:auto;">&lt;script type=&quot;text/javascript&quot;&gt;
    cookieOptions = {};
&lt;/script&gt;</pre>
<p><strong>Note:</strong> For most users, customizing the banner (rather than removing it) is the safest and most compliant choice.</p>
<p>For more information: <a href="https://support.google.com/blogger/answer/6253244" target="_blank" rel="nofollow">https://support.google.com/blogger/answer/6253244</a></p>
<p>The post <a href="https://www.bloggertipandtrick.net/change-blogger-cookies-notification/">How to Change or Disable Blogger Cookies Notification</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bloggertipandtrick.net/change-blogger-cookies-notification/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>How to Create an Auto-Highlight Textarea on Mouse Hover</title>
		<link>https://www.bloggertipandtrick.net/auto-highlight-textarea-on-hover/</link>
					<comments>https://www.bloggertipandtrick.net/auto-highlight-textarea-on-hover/#comments</comments>
		
		<dc:creator><![CDATA[Lasantha Bandara]]></dc:creator>
		<pubDate>Tue, 08 Jul 2025 16:05:00 +0000</pubDate>
				<category><![CDATA[html]]></category>
		<category><![CDATA[java script]]></category>
		<guid isPermaLink="false">http://www.bloggertipandtrick.net/2009/06/how-to-make-text-area-with-auto-highlight-on-mouse-over.html</guid>

					<description><![CDATA[<p>If you want to add a textarea to your Blogger blog that automatically highlights its content when hovered over with the mouse, this simple tutorial will show you how to do it. This is useful for displaying copyable code, affiliate links, or tips that visitors can easily select and copy. 1. Login to your Blogger [&#8230;]</p>
<p>The post <a href="https://www.bloggertipandtrick.net/auto-highlight-textarea-on-hover/">How to Create an Auto-Highlight Textarea on Mouse Hover</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" src="https://www.bloggertipandtrick.net/wp-content/uploads/2014/08/How-to-Create-an-Auto-Highlight-Textarea-on-Mouse-Hover.jpg" alt="How to Create an Auto-Highlight Textarea on Mouse Hover" width="1536" height="806" class="singular-featured-image alignnone size-full wp-image-7242" srcset="https://www.bloggertipandtrick.net/wp-content/uploads/2014/08/How-to-Create-an-Auto-Highlight-Textarea-on-Mouse-Hover.jpg 1536w, https://www.bloggertipandtrick.net/wp-content/uploads/2014/08/How-to-Create-an-Auto-Highlight-Textarea-on-Mouse-Hover-768x403.jpg 768w" sizes="auto, (max-width: 1536px) 100vw, 1536px" /></p>
<p>If you want to add a textarea to your Blogger blog that automatically highlights its content when hovered over with the mouse, this simple tutorial will show you how to do it. This is useful for displaying copyable code, affiliate links, or tips that visitors can easily select and copy.</p>
<p>1. Login to your Blogger account and go to the "<strong>Layout</strong>" page of your blog.</p>
<p>2. Click the "<strong>Add a Gadget</strong>" link in the section where you want to add it.</p>
<p>3. Select "<strong>HTML/JavaScript</strong>", paste the code provided below, and click "<strong>Save</strong>".</p>
<pre style="overflow: auto; border: 1px solid black;">&lt;textarea rows=&quot;5&quot; cols=&quot;50&quot; onfocus=&quot;this.select()&quot; onmouseover=&quot;this.focus()&quot; onclick=&quot;this.focus();this.select()&quot;&gt;

Enter Your Content Here

&lt;/textarea&gt;</pre>
<p><strong>Note:</strong> Remember to replace "<strong>Enter Your Content Here</strong>" with your actual content.</p>
<p>Example:</p>
<pre style="width: 90%; overflow: auto; border: 1px solid black;">&lt;textarea rows=&quot;5&quot; cols=&quot;50&quot; onfocus=&quot;this.select()&quot; onmouseover=&quot;this.focus()&quot; onclick=&quot;this.focus();this.select()&quot;&gt;

Tips for Bloggers for easy blogging and Making Money.blogger,blogspot tips and tricks.A dummies guide, templates,designs,widgets, JavaScript,HTML codes,SEO,Google AdSense,gadgets,how to monetize Blogger or blogspot blogs.

&lt;/textarea&gt;</pre>
<p>Look at the result below:</p>
<p><textarea rows="5" cols="50" onfocus="this.select()" onmouseover="this.focus()" onclick="this.focus();this.select()">Tips for Bloggers for easy blogging and Making Money.blogger,blogspot tips and tricks.A dummies guide, templates,designs,widgets, JavaScript,HTML codes,SEO,Google AdSense,gadgets,how to monetize Blogger or blogspot blogs.</textarea></p>
<p><strong>Note:</strong></p>
<ul>
<li>If you don't want to add it as a gadget and just need it inside a post, open the post editor, switch to the "HTML view," and paste the code right where you want it to appear.</li>
<li>The above code works not only on Blogger but also on any other website.</li>
</ul>
<p>The post <a href="https://www.bloggertipandtrick.net/auto-highlight-textarea-on-hover/">How to Create an Auto-Highlight Textarea on Mouse Hover</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bloggertipandtrick.net/auto-highlight-textarea-on-hover/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>How to Use Prettify Syntax Highlighter With Blogger</title>
		<link>https://www.bloggertipandtrick.net/prettify-syntax-highlighter-for-blogger-blogspot/</link>
					<comments>https://www.bloggertipandtrick.net/prettify-syntax-highlighter-for-blogger-blogspot/#comments</comments>
		
		<dc:creator><![CDATA[Lasantha Bandara]]></dc:creator>
		<pubDate>Tue, 08 Jul 2025 03:05:44 +0000</pubDate>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[java script]]></category>
		<guid isPermaLink="false">http://www.bloggertipandtrick.net/?p=3922</guid>

					<description><![CDATA[<p>If you're a developer, tech blogger, or just love sharing code on your Blogger (Blogspot) blog, adding a good syntax highlighter is a must for readability and professional presentation. One of the lightweight tools you can still use is Google Code Prettify, a JavaScript-based syntax highlighter. This tutorial shows how to easily integrate the Prettify [&#8230;]</p>
<p>The post <a href="https://www.bloggertipandtrick.net/prettify-syntax-highlighter-for-blogger-blogspot/">How to Use Prettify Syntax Highlighter With Blogger</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" src="https://www.bloggertipandtrick.net/wp-content/uploads/2014/02/How-to-Use-Prettify-Syntax-Highlighter-With-Blogger.jpg" alt="How to Use Prettify Syntax Highlighter With Blogger" width="1536" height="924" class="singular-featured-image alignnone size-full wp-image-7232" srcset="https://www.bloggertipandtrick.net/wp-content/uploads/2014/02/How-to-Use-Prettify-Syntax-Highlighter-With-Blogger.jpg 1536w, https://www.bloggertipandtrick.net/wp-content/uploads/2014/02/How-to-Use-Prettify-Syntax-Highlighter-With-Blogger-768x462.jpg 768w" sizes="auto, (max-width: 1536px) 100vw, 1536px" /></p>
<p>If you're a developer, tech blogger, or just love sharing code on your Blogger (Blogspot) blog, adding a good syntax highlighter is a must for readability and professional presentation. One of the lightweight tools you can still use is <strong>Google Code Prettify</strong>, a JavaScript-based syntax highlighter.</p>
<p>This tutorial shows how to easily integrate the <strong>Prettify</strong> into your Blogger blog, with live examples and alternate skin options.</p>
<p><span style="color:#009688"><strong>Step 1:</strong></span> Login to your Blogger account and go to the "<strong>Edit HTML</strong>" page of your blog.</p>
<p><span style="color:#009688"><strong>Step 2:</strong></span> You can load the JavaScript and CSS for prettify via one URL. Add this code just below <strong>&lt;head&gt;</strong> tag:</p>
<pre style="border:1px solid black;overflow:auto;font-size:120%;padding:15px 10px;"><strong>&lt;script src='https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js'&gt;&lt;/script&gt;</strong></pre>
<p><img loading="lazy" decoding="async" src="https://www.bloggertipandtrick.net/wp-content/uploads/2025/07/Add-Google-Code-Prettify-Auto-Loader.png" alt="Add Google Code Prettify Auto Loader" width="1011" height="411" class="alignnone size-full wp-image-7238" srcset="https://www.bloggertipandtrick.net/wp-content/uploads/2025/07/Add-Google-Code-Prettify-Auto-Loader.png 1011w, https://www.bloggertipandtrick.net/wp-content/uploads/2025/07/Add-Google-Code-Prettify-Auto-Loader-768x312.png 768w" sizes="auto, (max-width: 1011px) 100vw, 1011px" /></p>
<p><span style="color:#009688"><strong>Step 3:</strong></span> Save your template. You have successfully added <strong>Prettify auto-loader</strong> to your Blogger blog. Above code will load the entire system and schedule the prettifier to run on page load.</p>
<p><span style="color:#009688"><strong>Step 4:</strong></span> Now when you want to display a code snippet in your blogger post, go to the Blogger post editor and select "<strong>HTML view</strong>".</p>
<p><span style="color:#009688"><strong>Step 5:</strong></span> Wrap your code snippet inside a <span style="color: #0000ff;"><strong>&lt;pre&gt;</strong></span> tag with the <span style="color: #ff00ff;"><strong>prettyprint</strong></span> class like this:</p>
<pre style="border: 1px solid black; overflow: auto;"><strong>&lt;pre class="<span style="color: #ff00ff;">prettyprint</span>"&gt;
source code here
&lt;/pre&gt;</strong></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3924" alt="Add Source Code to Post Editor HTML" src="https://www.bloggertipandtrick.net/wp-content/uploads/2014/02/add-source-code-to-post-editor-html.jpg" width="664" height="365" /></p>
<p>Code Example:</p>
<pre style="border: 1px solid black; overflow: auto;">&lt;pre class="prettyprint"&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
// Say hello world until the user starts questioning
// the meaningfulness of their existence.
function helloWorld(world) {
  for (var i = 42; --i &amp;gt;= 0;) {
    alert('Hello ' + String(world));
  }
}
&amp;lt;/script&amp;gt;
&amp;lt;style&amp;gt;
p { color: pink }
b { color: blue }
u { color: &amp;quot;umber&amp;quot; }
&amp;lt;/style&amp;gt;
&lt;/pre&gt;</pre>
<p><strong>Note:</strong> You must <a href='https://www.bloggertipandtrick.net/tools/html-encoder/' target='_blank'><strong>escape special characters</strong></a> in your code snippet before adding it to the HTML. This ensures the browser displays the code correctly instead of interpreting it as actual markup.</p>
<p><span style="color:#009688"><strong>Step 6:</strong></span> Publish/Update your post and view your post. It will look like this:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3925" alt="Google Code Prettify Default Skin" src="https://www.bloggertipandtrick.net/wp-content/uploads/2014/02/google-code-prettify-default-skin.jpg" width="522" height="302" /></p>
<h2>How to Add Different Code Styles</h2>
<p>Only you need to do is, replace "<span style="color:#009688"><strong>Step 2</strong></span>" code with below codes.</p>
<h3>Desert Skin:</h3>
<pre style="border: 1px solid black; overflow: auto;">&lt;script src='https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js?skin=<span style="color: #ff00ff;">desert</span>'&gt;&lt;/script&gt;</pre>
<p>Result:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3926" alt="Prettify Desert Skin" src="https://www.bloggertipandtrick.net/wp-content/uploads/2014/02/google-code-prettify-desert-skin.jpg" width="522" height="302" /></p>
<h3>Sunburst Skin:</h3>
<pre style="border: 1px solid black; overflow: auto;">&lt;script src='https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js?skin=<span style="color: #ff00ff;">sunburst</span>'&gt;&lt;/script&gt;</pre>
<p>Result:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3927" alt="Prettify Sunburst Skin" src="https://www.bloggertipandtrick.net/wp-content/uploads/2014/02/google-code-prettify-sunburst-skin.jpg" width="522" height="323" /></p>
<h3>Sons-Of-Obsidian Skin:</h3>
<pre style="border: 1px solid black; overflow: auto;">&lt;script src='https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js?skin=<span style="color: #ff00ff;">sons-of-obsidian</span>'&gt;&lt;/script&gt;</pre>
<p>Result:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3928" alt="Prettify Sons-Of-Obsidian Skin" src="https://www.bloggertipandtrick.net/wp-content/uploads/2014/02/google-code-prettify-sons-of-obsidian-skin.jpg" width="522" height="298" /></p>
<h3>Doxy Skin:</h3>
<pre style="border: 1px solid black; overflow: auto;">&lt;script src='https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js?skin=<span style="color: #ff00ff;">doxy</span>'&gt;&lt;/script&gt;</pre>
<p>Result:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3929" alt="Prettify Doxy Skin" src="https://www.bloggertipandtrick.net/wp-content/uploads/2014/02/google-code-prettify-doxy-skin.jpg" width="518" height="321" /></p>
<h2>How to Specify the Language of Your Code</h2>
<p>File extensions supported by default include: "<strong>bsh</strong>", "<strong>c</strong>", "<strong>cc</strong>", "<strong>cpp</strong>", "<strong>cs</strong>", "<strong>csh</strong>", "<strong>cyc</strong>", "<strong>cv</strong>", "<strong>htm</strong>", "<strong>html</strong>", "<strong>java</strong>", "<strong>js</strong>", "<strong>m</strong>", "<strong>mxml</strong>", "<strong>perl</strong>", "<strong>pl</strong>", "<strong>pm</strong>", "<strong>py</strong>", "<strong>rb</strong>", "<strong>sh</strong>", "<strong>xhtml</strong>", "<strong>xml</strong>", "<strong>xsl</strong>"</p>
<p>The <span style="color: #0000ff;"><strong>lang-*</strong></span> class specifies the language file extensions.</p>
<p>You can specify other languages by specifying the language extension along with the prettyprint class.</p>
<p>For example, The syntax-highlighting functions contained in lang-css.js will not be called without adding the class "<span style="color: #ff00ff;"><strong>lang-css</strong></span>" to the &lt;pre&gt; tag. So you can add your CSS codes like this:</p>
<pre style="border: 1px solid black; overflow: auto;"><strong>&lt;pre class="prettyprint <span style="color: #ff00ff;">lang-css</span>"&gt;
CSS code here
&lt;/pre&gt;</strong></pre>
<p>Example:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3932" alt="Prettify Add CSS Codes" src="https://www.bloggertipandtrick.net/wp-content/uploads/2014/02/google-code-prettify-add-css-codes.jpg" width="664" height="365" /></p>
<p>View the <a href="https://github.com/googlearchive/code-prettify/tree/master/src" target="_blank" rel="nofollow">complete list of Prettify language handlers</a> on GitHub.</p>
<h2>How to Display Codes with Line Numbers</h2>
<p>To display line numbers, use "<span style="color: #ff00ff;"><strong>linenums</strong></span>" class like this:</p>
<pre style="border: 1px solid black; overflow: auto;"><strong>&lt;pre class="prettyprint <span style="color: #ff00ff;">linenums</span>"&gt;
source code here
&lt;/pre&gt;</strong></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3930" alt="Prettify with Line Numbers" src="https://www.bloggertipandtrick.net/wp-content/uploads/2014/02/google-code-prettify-add-line-numbers.jpg" width="664" height="365" /></p>
<p>Code Example:</p>
<pre style="border: 1px solid black; overflow: auto;">&lt;pre class="prettyprint linenums"&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
// Say hello world until the user starts questioning
// the meaningfulness of their existence.
function helloWorld(world) {
  for (var i = 42; --i &amp;gt;= 0;) {
    alert('Hello ' + String(world));
  }
}
&amp;lt;/script&amp;gt;
&amp;lt;style&amp;gt;
p { color: pink }
b { color: blue }
u { color: &amp;quot;umber&amp;quot; }
&amp;lt;/style&amp;gt;
&lt;/pre&gt;</pre>
<p>Result:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3931" alt="Prettify Default Skin with Line Numbers" src="https://www.bloggertipandtrick.net/wp-content/uploads/2014/02/google-code-prettify-default-skin-with-line-numbers.jpg" width="515" height="300" /></p>
<p>Below code will display a CSS code with line numbers:</p>
<pre style="border: 1px solid black; overflow: auto;">&lt;pre class="<span style="color: #0000ff;">prettyprint</span> <span style="color: #ff00ff;">lang-css</span> <span style="color: #ff0000;">linenums</span>"&gt;
body{background:#000000 url(http://3.bp.blogspot.com/-vB6rbTuTh34/UEw9OyUKQJI/AAAAAAAAIoQ/A3dwg6dKC_g/s1600/background.jpg) center top no-repeat;color:#555555;font-family: Arial, Helvetica, Sans-serif;font-size: 13px;margin:0px;padding:0px;}
a:link,a:visited{color:#C11112;text-decoration:underline;outline:none;}
a:hover{color:#FE3D36;text-decoration:none;outline:none;}
a img{border-width:0}
#body-wrapper{margin:0px;padding:0px;}
&lt;/pre&gt;</pre>
<p><strong>Note:</strong> The codes above work not only on Blogger but also on other websites. Simply add the code from <span style="color:#009688"><strong>Step 2</strong></span> right after the <strong>&lt;head&gt;</strong> tag of your webpage, then use any of the provided examples to display syntax-highlighted code.</p>
<p>Google Code Prettify is still a great choice for lightweight syntax highlighting on Blogger or any other website, especially if you don't want to use third-party script builders. It works out-of-the-box, <strong>supports multiple languages</strong>, and <strong>has various themes</strong> you can apply in seconds.</p>
<p>The post <a href="https://www.bloggertipandtrick.net/prettify-syntax-highlighter-for-blogger-blogspot/">How to Use Prettify Syntax Highlighter With Blogger</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bloggertipandtrick.net/prettify-syntax-highlighter-for-blogger-blogspot/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to Create Auto Select Textarea on Hover</title>
		<link>https://www.bloggertipandtrick.net/create-auto-select-textarea-on-hover/</link>
					<comments>https://www.bloggertipandtrick.net/create-auto-select-textarea-on-hover/#respond</comments>
		
		<dc:creator><![CDATA[Lasantha Bandara]]></dc:creator>
		<pubDate>Mon, 11 Dec 2023 14:15:51 +0000</pubDate>
				<category><![CDATA[html]]></category>
		<category><![CDATA[java script]]></category>
		<guid isPermaLink="false">https://www.bloggertipandtrick.net/?p=7000</guid>

					<description><![CDATA[<p>You may want to create a auto select text area with content for your viewers to copy. There is an easy way to do that. Here's the HTML code for a textarea that auto-selects its content when hovered over: &#60;textarea style="width:332px;height:70px;" onmouseover="this.focus();this.select()"&#62;This content will be auto-selected on hover&#60;/textarea&#62; Above code includes: 1. A textarea element [&#8230;]</p>
<p>The post <a href="https://www.bloggertipandtrick.net/create-auto-select-textarea-on-hover/">How to Create Auto Select Textarea on Hover</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>You may want to create a auto select text area with content for your viewers to copy. There is an easy way to do that. Here's the HTML code for a textarea that auto-selects its content when hovered over:</p>
<pre style="overflow: auto; border: 1px solid black; font-weight: bold; font-size: 140%;">&lt;textarea style="width:<span style="color: #3333ff;">332px</span>;height:<span style="color: #ff0000;">70px</span>;" onmouseover="this.focus();this.select()"&gt;<span style="color: #3333ff;">This content will be auto-selected on hover</span>&lt;/textarea&gt;</pre>
<p>Above code includes:</p>
<p>1. A <span style="color: #339966;"><strong>textarea</strong></span> element containing some pre-defined text.<br />
2. The <span style="color: #ff00ff;"><strong>onmouseover</strong></span> event listener that triggers these two JavaScript functions:<br />
(a). <strong>this.focus() </strong>: Sets focus on the textarea element.<br />
(b). <strong>this.select()</strong> : Selects all the text within the textarea.</p>
<p>Result will look like the following :</p>
<p><textarea style="width:332px;height:70px;" onmouseover="this.focus();this.select()">This content will be auto-selected on hover</textarea></p>
<p>The post <a href="https://www.bloggertipandtrick.net/create-auto-select-textarea-on-hover/">How to Create Auto Select Textarea on Hover</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bloggertipandtrick.net/create-auto-select-textarea-on-hover/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Add Snowstorm Snow Effect For Websites</title>
		<link>https://www.bloggertipandtrick.net/add-snowstorm-snow-effect-websites/</link>
					<comments>https://www.bloggertipandtrick.net/add-snowstorm-snow-effect-websites/#respond</comments>
		
		<dc:creator><![CDATA[Lasantha Bandara]]></dc:creator>
		<pubDate>Wed, 20 Dec 2017 05:50:26 +0000</pubDate>
				<category><![CDATA[java script]]></category>
		<guid isPermaLink="false">https://www.bloggertipandtrick.net/?p=6707</guid>

					<description><![CDATA[<p>Snowstorm is a JavaScript based snow effect that can be easily added to any web pages. You can display snow on your website within few seconds using Snowstorm. It has many options if you need to change the default behavior. If you using Blogger or any other platform, add below code just before &#60;/head&#62; tag [&#8230;]</p>
<p>The post <a href="https://www.bloggertipandtrick.net/add-snowstorm-snow-effect-websites/">How to Add Snowstorm Snow Effect For Websites</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Snowstorm is a JavaScript based snow effect that can be easily added to any web pages. You can display snow on your website within few seconds using Snowstorm. It has many options if you need to change the default behavior. If you using Blogger or any other platform, add below code just before <strong>&lt;/head&gt;</strong> tag of your website:</p>
<pre style="border:1px solid black;overflow:auto;width:95%;">&lt;script src='https://cdnjs.cloudflare.com/ajax/libs/Snowstorm/20131208/snowstorm-min.js'&gt;&lt;/script&gt;

&lt;script type='text/javascript'&gt;
//&lt;![CDATA[

snowStorm.autoStart = <span style="color:#ff00ff;">true</span>;
snowStorm.animationInterval = <span style="color:#ff00ff;">33</span>;
snowStorm.flakeBottom = <span style="color:#ff00ff;">null</span>;
snowStorm.flakesMax = <span style="color:#ff00ff;">128</span>;
snowStorm.flakesMaxActive = <span style="color:#ff00ff;">64</span>;
snowStorm.followMouse = <span style="color:#ff00ff;">true</span>;
snowStorm.freezeOnBlur = <span style="color:#ff00ff;">true</span>;
snowStorm.snowColor = '<span style="color:#ff00ff;">#fff</span>';
snowStorm.snowCharacter = '<span style="color:#ff00ff;">&#8226;</span>';
snowStorm.snowStick = <span style="color:#ff00ff;">true</span>;
snowStorm.targetElement = <span style="color:#ff00ff;">null</span>;
snowStorm.useMeltEffect = <span style="color:#ff00ff;">true</span>;
snowStorm.useTwinkleEffect = <span style="color:#ff00ff;">true</span>;
snowStorm.usePositionFixed = <span style="color:#ff00ff;">false</span>;
snowStorm.vMaxX = <span style="color:#ff00ff;">8</span>;
snowStorm.vMaxY = <span style="color:#ff00ff;">5</span>;

//]]&gt;
&lt;/script&gt;</pre>
<p><strong>Note:</strong> You can change pink colored values of above code as you like. But it is optional.</p>
<p>You can see a demo of this snow falling effect <strong><a href="http://www.schillmania.com/projects/snowstorm/" target="_blank" rel="nofollow">HERE</a></strong>.</p>
<p>The post <a href="https://www.bloggertipandtrick.net/add-snowstorm-snow-effect-websites/">How to Add Snowstorm Snow Effect For Websites</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bloggertipandtrick.net/add-snowstorm-snow-effect-websites/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Create Expandable Post Summaries</title>
		<link>https://www.bloggertipandtrick.net/how-to-create-expandable-post-summaries/</link>
					<comments>https://www.bloggertipandtrick.net/how-to-create-expandable-post-summaries/#comments</comments>
		
		<dc:creator><![CDATA[Lasantha Bandara]]></dc:creator>
		<pubDate>Thu, 23 Feb 2017 10:40:00 +0000</pubDate>
				<category><![CDATA[change template]]></category>
		<category><![CDATA[java script]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[post]]></category>
		<guid isPermaLink="false">http://www.bloggertipandtrick.net/2009/04/how-to-create-expandable-post-summaries.html</guid>

					<description><![CDATA[<p>This tutorial will help you to add expandable post summaries to your blogger blog. After following the steps given here, you can hide (collapse) a portion of each post content and add a "read more" link so that the text can be viewed by the user if he or she wishes. By default, the expanded [&#8230;]</p>
<p>The post <a href="https://www.bloggertipandtrick.net/how-to-create-expandable-post-summaries/">How To Create Expandable Post Summaries</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This tutorial will help you to add <strong>expandable post summaries</strong> to your blogger blog. After following the steps given here, you can hide (collapse) a portion of each post content and add a "read more" link so that the text can be viewed by the user if he or she wishes. By default, the expanded content is followed by a "read less" link that the user can click to re-collapse it.</p>
<p>1. Go to "Edit HTML" of your blog.</p>
<p>2. Add this code into the head section of your template. (It is better to add it just after &lt;/b:skin&gt; tag)</p>
<pre style="border:1px solid black;overflow:auto;width:95%;">&lt;b:if cond='data:blog.pageType != &quot;static_page&quot;'&gt;
&lt;b:if cond='data:blog.pageType != &quot;item&quot;'&gt;
&lt;b:if cond='data:blog.pageType != &quot;error_page&quot;'&gt;

&lt;script src='https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js' type='text/javascript'&gt;&lt;/script&gt;
&lt;script src='https://cdnjs.cloudflare.com/ajax/libs/jquery-migrate/1.4.1/jquery-migrate.min.js' type='text/javascript'&gt;&lt;/script&gt; 
&lt;script src='https://cdnjs.cloudflare.com/ajax/libs/jquery-expander/1.7.0/jquery.expander.min.js' type='text/javascript'&gt;&lt;/script&gt;

&lt;script type='text/javascript'&gt;
//&lt;![CDATA[

jQuery(document).ready(function($) {

$('.post-body').expander({
    slicePoint: 280,
    expandText: 'read more',
    expandPrefix: '&amp;hellip; ',
    userCollapseText: 'read less',
    userCollapsePrefix: ' ',
    summaryClass: 'post-body-summary',
    detailClass: 'post-body-details',
    moreClass: 'post-body-read-more',
    lessClass: 'post-body-read-less',
});
  
});

//]]&gt;
&lt;/script&gt;

&lt;/b:if&gt;
&lt;/b:if&gt;
&lt;/b:if&gt;</pre>
<p>If you have already added jQuery into your template, you can remove below lines from the above code:</p>
<pre style="border:1px solid black;overflow:auto;width:95%;">&lt;script src='https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js' type='text/javascript'&gt;&lt;/script&gt;
&lt;script src='https://cdnjs.cloudflare.com/ajax/libs/jquery-migrate/1.4.1/jquery-migrate.min.js' type='text/javascript'&gt;&lt;/script&gt;</pre>
<p>Note:<br />
<strong>slicePoint</strong>: the number of characters at which the contents will be sliced into two parts.</p>
<p>3. Now save your template and refresh your site. Final result will look like this:</p>
<p><img loading="lazy" decoding="async" src="https://www.bloggertipandtrick.net/wp-content/uploads/2017/02/Expandable-Post-Summaries-for-Blogger.gif" alt="Expandable Post Summaries for Blogger" width="669" height="322" class="alignnone size-full wp-image-6331" /></p>
<p>The post <a href="https://www.bloggertipandtrick.net/how-to-create-expandable-post-summaries/">How To Create Expandable Post Summaries</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bloggertipandtrick.net/how-to-create-expandable-post-summaries/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How To Disable Right Click Using jQuery</title>
		<link>https://www.bloggertipandtrick.net/disable-right-click-using-jquery/</link>
					<comments>https://www.bloggertipandtrick.net/disable-right-click-using-jquery/#comments</comments>
		
		<dc:creator><![CDATA[Lasantha Bandara]]></dc:creator>
		<pubDate>Wed, 28 Oct 2015 06:00:00 +0000</pubDate>
				<category><![CDATA[java script]]></category>
		<category><![CDATA[jquery]]></category>
		<guid isPermaLink="false">http://www.bloggertipandtrick.net/2010/02/how-to-disable-right-click-using-jquery.html</guid>

					<description><![CDATA[<p>This article explains to you how to disable right click function using a simple jQuery code snippet. If you like to add this feature to your site, then follow the steps below. 1.Login to your blogger account and go to "Edit HTML". 2.Scroll down to where you see &#60;/head&#62; tag . 3.Copy below code and [&#8230;]</p>
<p>The post <a href="https://www.bloggertipandtrick.net/disable-right-click-using-jquery/">How To Disable Right Click Using jQuery</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This article explains to you how to disable right click function using a simple jQuery code snippet. If you like to add this feature to your site, then follow the steps below.</p>
<p>1.Login to your blogger account and go to "Edit HTML".</p>
<p>2.Scroll down to where you see <span style="font-weight: bold; color: #ff0000;">&lt;/head&gt;</span> tag .</p>
<p>3.Copy below code and paste it <span style="color: #3333ff;">just before</span> the <span style="color: #ff0000;">&lt;/head&gt;</span> tag.</p>
<pre style="width: 95%; overflow: auto; border: 1px solid black;">&lt;script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js' type='text/javascript'&gt;&lt;/script&gt;
&lt;script src='http://code.jquery.com/jquery-migrate-1.2.1.js'&gt;&lt;/script&gt;

&lt;script type='text/javascript'&gt;
//&lt;![CDATA[

jQuery(document).ready(function($) {
    $(document).bind(&quot;contextmenu&quot;, function(e) {
        return false;
    });
});

//]]&gt;
&lt;/script&gt;</pre>
<p><span style="font-weight: bold;">NOTE :</span> If jQuery is already included into your theme remove these lines from the above code:</p>
<pre style="overflow: auto; border: 1px solid black;">&lt;script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js' type='text/javascript'&gt;&lt;/script&gt;
&lt;script src='http://code.jquery.com/jquery-migrate-1.2.1.js'&gt;&lt;/script&gt;</pre>
<p>4.Now save the template. Refresh your site and try to right click on your website or blog.</p>
<p>The post <a href="https://www.bloggertipandtrick.net/disable-right-click-using-jquery/">How To Disable Right Click Using jQuery</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bloggertipandtrick.net/disable-right-click-using-jquery/feed/</wfw:commentRss>
			<slash:comments>17</slash:comments>
		
		
			</item>
		<item>
		<title>How to Redirect Mobile Version to Non-Mobile in Blogger</title>
		<link>https://www.bloggertipandtrick.net/redirect-mobile-to-non-mobile-in-blogger/</link>
					<comments>https://www.bloggertipandtrick.net/redirect-mobile-to-non-mobile-in-blogger/#comments</comments>
		
		<dc:creator><![CDATA[Lasantha Bandara]]></dc:creator>
		<pubDate>Wed, 16 Sep 2015 11:54:27 +0000</pubDate>
				<category><![CDATA[browser]]></category>
		<category><![CDATA[change template]]></category>
		<category><![CDATA[java script]]></category>
		<guid isPermaLink="false">http://www.bloggertipandtrick.net/?p=5485</guid>

					<description><![CDATA[<p>When someone viewing your blog using a mobile phone, he will be automatically redirected to the mobile version of your blog. If you see the web browser's address, you can see the "?m=1" part in your blog address. http://YOURBLGNAME.blogspot.com/?m=1 In mobile version, blogger will be applied one of their basic mobile themes to your site. [&#8230;]</p>
<p>The post <a href="https://www.bloggertipandtrick.net/redirect-mobile-to-non-mobile-in-blogger/">How to Redirect Mobile Version to Non-Mobile in Blogger</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>When someone viewing your blog using a mobile phone, he will be automatically redirected to the mobile version of your blog. If you see the web browser's address, you can see the "?m=1" part in your blog address. </p>
<pre>http://YOURBLGNAME.blogspot.com/?m=1</pre>
<p>In mobile version, blogger will be applied one of their basic mobile themes to your site. These themes are not looking nice. But if your custom blogger theme is mobile friendly, you do not want to use these blogger's basic mobile themes.</p>
<p>In this tutorial, I am going to explain how to display non-mobile (desktop) version, when someone browse your blog using a mobile phone. It will be useful if you are using a responsive blogger template.</p>
<p>Go to "Edit HTML" of your blog.</p>
<p>Add below code just after <strong>&lt;head&gt;</strong> tag of your blog:</p>
<pre style="overflow: auto; border: 1px solid black;">&lt;script type='text/javascript'&gt;//&lt;![CDATA[
var curl = window.location.href;if (curl.indexOf('m=1') != -1) {curl = curl.replace('m=1', 'm=0');window.location.href = curl;}
//]]&gt;&lt;/script&gt;</pre>
<p>After adding above code it will be look like this:</p>
<p><img loading="lazy" decoding="async" src="https://www.bloggertipandtrick.net/wp-content/uploads/2015/09/How-to-Redirect-Mobile-Version-to-Non-Mobile-in-Blogger.png" alt="How to Redirect Mobile Version to Non-Mobile in Blogger" width="700" height="289" class="alignnone size-full wp-image-5486" /></p>
<p>Save your template.</p>
<p>Now when someone visit to your blog using a mobile phone, "?m=0" will be added to the blog address instead of "?m=1".</p>
<pre>http://YOURBLGNAME.blogspot.com/?m=0</pre>
<p>The post <a href="https://www.bloggertipandtrick.net/redirect-mobile-to-non-mobile-in-blogger/">How to Redirect Mobile Version to Non-Mobile in Blogger</a> appeared first on <a href="https://www.bloggertipandtrick.net">Blogger Tips And Tricks|Latest Tips For Bloggers</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bloggertipandtrick.net/redirect-mobile-to-non-mobile-in-blogger/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
