Saturday

How to Create Random Html Text in Blogger?

In This Article, You Learn How to Create Random Html Text in Blogger?, By Using This Html Code You Can Add Different Kinds of Random Links, Text on Your Blogger Blog. You Can Add 5 Categories in This Code, When Your Visitor Refreshes Your Webpage or Visit Another Page the Text Will Change Randomly.


HTML Random Text For Blogger


You Can Use This Code To Display Different Kinds Of Text Information, Links With Text, Images, etc. These are the two types of examples for you. You can also display ads to your visitors by using these codes.


Use the below Javascript Code to Generate Random HTML Text For Blogger.


Part1. HTML Random Text For Blogger Blog.


 <SCRIPT LANGUAGE="JAVASCRIPT">

<!-- 


var r_text = new Array (); 

r_text[0] = "Your Text Here 1."; 

r_text[1] = "Your Text Here 2."; 

r_text[2] = "Your Text Here 3."; 

r_text[3] = "Your Text Here 4.!"; 

r_text[4] = "Your Text Here 5."; 


var i = Math.floor(r_text.length * Math.random()); 


document.write("<br /><br /><br /><br /><br /><br /><br /><center><FONT SIZE=72><FONT COLOR='#FFFFFF'>" + 

r_text[i]  + "</FONT></center><br />"); 


var bgcolorlist=new Array("#228B22", "#FFD700", "#ADFF2F", "#FF69B4", "#CD5C5C", "#4B0082", "#7CFC00", "#ADD8E6", "#E84643", "#ED0A07", "#EA2907", "#E5294B", "#E00D26", "#FF3030", "#FC7500", "#F95700", "#F43900", "#F95620") 


document.body.style.background=bgcolorlist[Math.floor(Math.random()*bgcolorlist.length)]; 


</script><br> <br> 

    <br> 

    <br> 

    <style type="text/css"> 

<!-- 

body,td,th { 

     color: #000; 

     font-family: Helvetica, sans-serif; 

</html> 


Change The Red Colored Text With Your Own Text & Add It On Your Blogger Blog.


Part 2. Html Random Text Link For Blogger Blog.


<SCRIPT LANGUAGE="JAVASCRIPT">

<!-- 


var r_text = new Array (); 

r_text[0] = "<a href="Link1">Your Link Text1</a>"; 

r_text[1] = "<a href="Link2">Your Link Text2</a>"; 

r_text[2] = "<a href="Link3">Your Link Text3</a>"; 

r_text[3] = "<a href="Link4">Your Link Text4</a>"; 

r_text[4] = "<a href="Link5">Your Link Text5</a>"; 


var i = Math.floor(r_text.length * Math.random()); 


document.write("<br /><br /><br /><br /><br /><br /><br /><center><FONT SIZE=72><FONT COLOR='#FFFFFF'>" + 

r_text[i]  + "</FONT></center><br />"); 


var bgcolorlist=new Array("#228B22", "#FFD700", "#ADFF2F", "#FF69B4", "#CD5C5C", "#4B0082", "#7CFC00", "#ADD8E6", "#E84643", "#ED0A07", "#EA2907", "#E5294B", "#E00D26", "#FF3030", "#FC7500", "#F95700", "#F43900", "#F95620") 


document.body.style.background=bgcolorlist[Math.floor(Math.random()*bgcolorlist.length)]; 


</script><br> <br> 

    <br> 

    <br> 

    <style type="text/css"> 

<!-- 

body,td,th { 

     color: #000; 

     font-family: Helvetica, sans-serif; 

</html> 


Change The Blue Colored Text With Your Own Text Links.


Read- How To Change Font Size In Blogger Post?


How To Add an HTML/Javascript Code In Blogger?


To add an HTML/Javascript Code On Blogger Just Follow These Steps-


1. Go To Blogger.com.

2. Click On Layout.

3. Click On Add a Gadget.


Blogger Layout


4. Click On HTML/Javascript.


Add A Gadget On Blogger



5. Paste Your Code & Click On Save.


You Can Add Multiple HTML/Javascript Codes By Following These Above Methods.


Read- How to Enable Captcha in A Blogger Comment?


Conclusion-


Here you learn how to create random HTML text, HTML Links In Blogger Blog. Don't Forget to Share this post with your friends. Thank You. Jai Hind.

No comments:

Post a Comment