Monday, July 21, 2014

Rainbow Link Script | IndiHack

Rainbow Link Script 
http://lh3.ggpht.com/-nZQCxZextKg/UM4pKaPXvSI/AAAAAAAAAl4/rvxHE9MDaC8/rainbow-flow-8x6.jpg?imgmax=800 

As you can see in my site where when you place your cursor in any link you can see several color and this is rainbow script.  If you want to insert this in your website go to layout and select add a gadget and select html/javascript and copy and paste the code given below

<!-- Rainbow link-->

<script src='https://trickstoo-rainbow-links.googlecode.com/svn/rainbow-links.js'>
</script>

<!-- END Rainbow link-->

Sunday, July 20, 2014

Blogger Auto refresh Trick | Indihack

Blogger Auto refresh Trick

http://blogspc.com/wp-content/uploads/2011/12/Auto-Refresh-Plus.jpg 

Copy the code given below and Go to layout and select Html/Java script and paste the code Approximate auto refresh is 05:05 min You can set wht time is required for you .

<!-- START trickstoo Auto reflesh-->
<script>
<!--

/*
Auto Refresh Page with Time script
By Indihack.net
Over 200+ free scripts here!
*/

//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
var limit="05:05"

if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
else
curtime=cursec+" seconds left until page refresh!"
window.status=curtime
setTimeout("beginrefresh()",1000)
}
}

window.onload=beginrefresh
//-->
</script>

Saturday, July 19, 2014

Java basics Tutorial 3 |Indihack

Java basics Tutorial 3 

http://cdn.theatlantic.com/static/mt/assets/jamesfallows/java_medium.jpg 

JavaScript Popup Boxes


JavaScript has three kind of popup boxes: Alert box, Confirm box, and Prompt box.

Alert Box
An alert box is often used if you want to make sure information comes through to the user.
When an alert box pops up, the user will have to click "OK" to proceed.
Syntax

 
alert("sometext");

Example Program:



<html>
<head>
<script type="text/javascript">
function show_alert()
{
alert("I am an alert box!");
}
</script>
</head>
<body>

<input type="button" onclick="show_alert()" value="Show alert box" />

</body>
</html>


Confirm Box
A confirm box is often used if you want the user to verify or accept something.
When a confirm box pops up, the user will have to click either "OK" or "Cancel" to proceed.
If the user clicks "OK", the box returns true. If the user clicks "Cancel", the box returns false.
Syntax
  confirm("sometext");
 

Example Program:


<html>
<head>
<script type="text/javascript">
function show_confirm()
{
var r=confirm("Press a button");
if (r==true)
  {
  alert("You pressed OK!");
  }
else
  {
  alert("You pressed Cancel!");
  }
}
</script>
</head>
<body>

<input type="button" onclick="show_confirm()" value="Show confirm box" />

</body>
</html>



Prompt Box
A prompt box is often used if you want the user to input a value before entering a page.
When a prompt box pops up, the user will have to click either "OK" or "Cancel" to proceed after entering an input value.
If the user clicks "OK" the box returns the input value. If the user clicks "Cancel" the box returns null.
Syntax


prompt("sometext","defaultvalue");

Example Program:




<html>
<head>
<script type="text/javascript">
function show_prompt()
{
var name=prompt("Please enter your name","Harry Potter");
if (name!=null && name!="")
  {
  document.write("Hello " + name + "! How are you today?");
  }
}
</script>
</head>
<body>

<input type="button" onclick="show_prompt()" value="Show prompt box" />

</body>
</html>
 

  In Next chapter we are going to see JavaScript Function