আপনার যা যা পছন্দ তা-ই যুক্ত করুন আপনার ব্লগে ।

9
355

কেমন আছেন আপনারা ? আশা করি ভাল আছেন । আমার নতুন পোষ্ট শুরু করছি । আজ আমি আপনাদের কতগুলু html/java কোড দিব আপনাদের পছন্দমত যে কোন একটি সেট করতে পারন । আমার এই code গুল আপনাদের ব্লগে বা ওয়েবে ব্যবহার করতে পারেন ।

নিচের ধাপ সমুহ অনুসরণ করুনঃ

১:আপনার ব্লগ এ লগ ইন করুন।

২:নিচের যে কোন একটি code কপি করে আপনার ব্লগ design > layout > add a gadget > HTML/JavaScript ক্রম অনুযায়ি যান
এবং code পেষ্ট করুন ।

code1: <BODY>

<!– this script got from imomniscien.blogspot.com coded by: morad hasan–>
<SCRIPT LANGUAGE=”JavaScript”>

<!– Begin
// If it’s Internet Explorer, use automatic link
// Be sure to change the “http://www.YourWebSiteHere.com\”
// to the URL you want them to bookmark.
if (document.all){
document.write(‘<A HREF=”javascript:history.go(0);” onClick=”this.style.behavior=\’url(#default#homepage)\’;this.setHomePage(\’http://www.YourWebSiteHere.com\’);”>’);
document.write(‘<font size=”5″ color=6699FF face=arial><B>Click Here to Make My Web Page Your Homepage</B></font></a>’);
}

// If it’s Netscape 6, tell user to drag link onto Home button
// Be sure to change the “http://www.YourWebSiteHere.com\”
// to the URL you want them to bookmark.
else if (document.getElementById){
document.write(‘<a href=”http://www.YourWebSiteHere.com”>Drag this link onto your Home button to make this your Home Page.</a>’);
}

// If it’s Netscape 4 or lower, give instructions to set Home Page
else if (document.layers){
document.write(‘<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>”Use Current Page”</b> button.’);
}

// If it’s any other browser, for which I don’t know the specifications of home paging, display instructions
else {
document.write(‘<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>”Use Current Page”</b> button.’);
}
//  End –>
</script>
<br />
<font face=”Tahoma”><a target=”_blank” href=”http://imomniscien.blogspot.com/”><span style=”font-size: 8pt; text-decoration: none”> Free Code</span></a></font>

A message box when page opens

code2:<!– this script got from imomniscien.blogspot.com coded by: morad hasan–>
<html>
<head>
<script language=”javascript” type=”text/javascript”>
alert(“Welcome to my site”)
</script>
</head>
</html>
<font face=”Tahoma”><a target=”_blank” hre:f=”http://imomniscien.blogspot.com/”><span style=”font-size: 8pt; text-decoration: none”> Free Code</span></a></font>

Don’t let the user use right click on mouse

code3:<!– this script got from imomniscien.blogspot.com-Coded by: morad hasan –>
<SCRIPT LANGUAGE=”JavaScript”>
var message=”Function Disabled!”;
///////////////////////////////////
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function(“return false”)
// –>
</script>
<font face=”Tahoma”><a target=”_blank” href=”http://imomniscien.blogspot.com/”><span style=”font-size: 8pt; text-decoration: none”> Free Code</span></a></font>

Make your scrollbar colorful

code4:<!– this script got from imomniscien.blogspot.com coded by: morad hasan–>
<STYLE>BODY {
SCROLLBAR-FACE-COLOR: red; SCROLLBAR-HIGHLIGHT-COLOR: gray;

SCROLLBAR-SHADOW-COLOR: black; SCROLLBAR-ARROW-COLOR: gray;

SCROLLBAR-TRACK-COLOR: black; SCROLLBAR-DARKSHADOW-COLOR: red
}
</STYLE>

<font face=”Tahoma”><a target=”_blank” href=”http://imomniscien.blogspot.com/”><span style=”font-size: 8pt; text-decoration: none”> Free Code</span></a></font>

Search box ( Search engine ) for your page

code5:<!– this script got from imomniscien.blogspot.com coded by: morad hasan–>
<SCRIPT language=JavaScript>
var NS4 = (document.layers);
var IE4 = (document.all);
var win = window;
var n   = 0;
function findInPage(str) {
var txt, i, found;
if (str == “”)
return false;
if (NS4) {
if (!win.find(str))
while(win.find(str, false, true))
n++;
else
n++;
if (n == 0)
alert(“Not found.”);
}
if (IE4) {
txt = win.document.body.createTextRange();
for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
txt.moveStart(“character”, 1);
txt.moveEnd(“textedit”);
}
if (found) {
txt.moveStart(“character”, -1);
txt.findText(str);
txt.select();
txt.scrollIntoView();
n++;
}
else {
if (n > 0) {
n = 0;
findInPage(str);
}
else
alert(“Sorry, we couldn’t find.Try again”);
}
}
return false;
}
</SCRIPT>

<FORM name=search onsubmit=”return findInPage(this.string.value);”>
<P align=center><FONT size=3>
<INPUT
style=”BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #666666 1px solid; BORDER-BOTTOM: #666666 1px solid”
onchange=”n = 0;” size=16 name=string></FONT><BR><INPUT style=”BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #ffffff 1px solid; BORDER-BOTTOM: #ffffff 1px solid; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #aaaaaa” type=submit value=Search in page ><center><font size=2pt;><font family=Times New Roman;><b>

<font face=”Tahoma”><a target=”_blank” href=”http://imomniscien.blogspot.com/”><span style=”font-size: 8pt; text-decoration: none”> Free Code</span></a></font>

<BR>
</P></FORM></DIV><BR><!– /Search–>

Fireworks with different colors

code6:<!– this script got from imomniscien.blogspot.com–>
<!– this script got from KKR–>

<body bgcolor=’#000000′ >
<!– Start of Fireworks –>
<script language=”JavaScript”>
CL=new Array(‘#ff0000′,’#00ff00′,’#ffffff’,’#ff00ff’,’#ffa500′,’#ffff00′,’#00ff00′,’#ffffff’,’#ff00ff’)
CL2=new Array(‘#ffa500′,’#00ff00′,’#FFAAFF’,’#fff000′,’#fffffF’)
Xpos=130;
Ypos=130;
I=’#00ff00′;
C=0;
S=5;
H=null;
W=null;
Y=null;
NS4=(document.layers);
NS6=(document.getElementById&&!document.all);
IE4=(document.all);
A=14;
E=120;
L=null;
if (NS4){
for (i=0; i < A; i++)
document.write(‘<LAYER NAME=”nsstars’+i+'” TOP=0 LEFT=0 BGCOLOR=’+I+’ CLIP=”0,0,2,2″></LAYER>’);
}
if (NS6){
window.document.body.style.overflow=’hidden’;
for (i=0; i < A; i++)
document.write(‘<div id=”ns6stars’+i+'” style=”position:absolute;top:0px;left:0px;height:2px;width:2px;font-size:2px;background:’+I+'”></div>’);
}
if (IE4){
document.write(‘<div id=”ie” style=”position:absolute;top:0px;left:0px”><div style=”position:relative”>’);
for (i=0; i < A; i++)
document.write(‘<div id=”iestars” style=”position:absolute;top:0;left:0;width:2px;height:2px;background:’+I+’;font-size:2px”></div>’);
document.write(‘</div></div>’);
}
function Fireworks(){
H=(NS4||NS6)?window.innerHeight:window.document.body.clientHeight;
W=(NS4||NS6)?window.innerWidth:window.document.body.clientWidth;
Y=(NS4||NS6)?window.pageYOffset:window.document.body.scrollTop;
for (i=0; i < A; i++){
if (IE4)L=iestars[i].style;
if (NS4)L=document.layers[“nsstars”+i];
if (NS6)L=document.getElementById(“ns6stars”+i).style;
var F = CL[Math.floor(Math.random()*CL.length)];
var RS=Math.round(Math.random()*2);
L.top = Ypos + E*Math.sin((C+i*5)/3)*Math.sin(C/100)
L.left= Xpos + E*Math.cos((C+i*5)/3)*Math.sin(C/100)
if (C < 110){
if (NS4){L.bgColor=I;L.clip.width=1;L.clip.height=1}
if (IE4||document.getElementById)
{L.background=I;L.width=1;L.height=1;L.fontSize=1}
}
else{
if (NS4){L.bgColor=F;L.clip.width=RS;L.clip.height=RS}
if (IE4||document.getElementById){L.background=F;L.width=RS;L.height=RS;L.fontSize=RS}
}
}
if (C > 220){
C=0;
var NC = CL2[Math.floor(Math.random()*CL2.length)];
I=NC;
E=Math.round(100+Math.random()*90);
Ypos = E+Math.round(Math.random()*(H-(E*2.2)))+Y;
Xpos = E+Math.round(Math.random()*(W-(E*2.2)));
}
C+=S;
setTimeout(“Fireworks()”,10);
}
Fireworks();
// –>
</script>
<!– End of Fireworks –>

৩:save করুন ।

কাজ শেষ।
সবাইকে ধন্যবাদ। আর কেমন হয়েছে জানাবেন। কিছু জানার থাকলে কমন্টে প্রশ্ন করবেন। ভুল হলে ক্ষমা করবেন । আজ আর নয় । সকলে ভাল থাকবেন ।

আগে প্রকাশ imomniscien.blogspot.com

9 মন্তব্য

একটি উত্তর ত্যাগ