Friday, October 19, 2012

<!-- this script got from http://my-htmlcodes.blogspot.com/ coded by: Morad Hasan-->
<table style="background: #ebebea; border: solid 1px #959492; width: 560px;">
<tbody>
<tr><td valign="top"><form action="" method="post" name="form1">
<textarea name="code" onclick="focus(this.code)" style="border: solid 1px #b9b8b6; height: 300px; padding: 5px; scroll: auto; width: 260px;" wrap="soft">This is a great way to display code snippets to your visitors, allowing them to make changes and preview those changes all from the same page - keeping them on your site longer. Just replace this text within the script with whatever code you want to have displayed to your visitors. Click on the 'Generate Code' button to launch preview. More great scripts at <a href=http://www.java-scripts.net>Java-Scripts.net</a><br><br>
</textarea>
</form>
</td><td valign="top"><iframe frameborder="0" name="preview" src="about:blank" style="background: #ffffff; border: solid 1px #b9b8b6; height: 300px; width: 260px;">
</iframe>
</td>
</tr>
</tbody></table>
<button onclick="preview.document.write (document.getElementsByTagName ('TEXTAREA')[0].value); preview.document.close(); preview.focus()">Generate Preview</button>
<button onclick="window.document.form1.code.value='';preview.document.write (document.getElementsByTagName ('TEXTAREA')[0].value); preview.document.close(); preview.focus()">Clear All</button>
<button onclick="window.location.href=window.location.href">Reload &nbsp; &nbsp;</button><br />
<button onclick="window.location.href=window.location.href"><br /></button>

<font face="Tahoma"><a target="_blank" href="http://my-htmlcodes.blogspot.com/"><span style="font-size: 8pt; text-decoration: none">JavaScript Code</span></a></font>












Monday, October 1, 2012

Combo box link box to browse your website easily

-->

HTML Code


<!-- This Script is from my-htmlcodes.blogspot.com, Coded by: Morad Hasan-->

<script language="JavaScript">
<!-- Hide the script from old browsers --
function surfto(form) 
{
  var myindex=form.dest.selectedIndex
  window.open(form.dest.options[myindex].value,"main","menubar=1,toolbar=0,location=0,directories=0,status=1,copyhistory=0,width=235,height=235");

Message to user by clicking a button


HTML Code


<!-- This Script is from my-htmlcodes.blogspot.com, Coded by: Moad Hasan-->

<!-- Start of Message Alert -->
<!-- Use this button in a form to pop-up a message when the user clicks it -->
<form>
<input type="button" value="message" onClick="alert('YOUR MESSAGE GOES HERE'); return true">
</form>
<!-- End of Message Alert -->


<font face="Tahoma"><a target="_blank" href="http://my-htmlcodes.blogspot.com/"><span style="font-size: 8pt; text-decoration: none">HTML Code</span></a></font>

Background changing color effect


<!-- This Script is from my-htmlcodes.blogspot.com, Coded by: Morad Hasan-->
<script>

// Select fade-effect below:
// Set 1 if the background may fade from dark to medium 
// Set 2 if the background may fade from light to medium 
// Set 3 if the background may fade from very dark to very light light
// Set 4 if the background may fade from light to very light
// Set 5 if the background may fade from dark to very dark 
var fade_effect=3

Dancing status bar sliding nicely


<!-- This Script is from my-htmlcodes.blogspot.com, Coded by: Morad Hasam-->

<SCRIPT LANGUAGE="JavaScript">

var yourtext = "* YOUR MESSAGE HERE! *";
var wedge1="                        ";
var wedge2="                        ";
var message1=wedge1+yourtext+wedge2;
var dir = "lside";
var speed = 50;

Calculator


--> HTML Code


<!-- This Script is from my-htmlcodes.blogspot.com, Coded by: Morad Hasan-->
<CENTER>

<FORM name="Keypad" action="">
<TABLE>
<B>
<TABLE border=2 width=50 height=60 cellpadding=1 cellspacing=5>

How to print a page in HTML pages


<!-- This Script is from my-htmlcodes.blogspot.com, Coded by: Morad Hasan-->
<!-- Print Page Script
Use this script to have your
users print your HTML page
-->
<SCRIPT LANGUAGE="JavaScript">
if (window.print) {
document.write('<form> '
+ '<input type=button name=print value="Click" '
+ 'onClick="javascript:window.print()"> To Print this page!</form>');
}
// End -->
</script>

<font face="Tahoma"><a target="_blank" href="http://my-htmlcodes.blogspot.com/"><span style="font-size: 8pt; text-decoration: none">HTML Code</span></a></font>

Shake Internet Explorer


<!-- This Script is from my-htmlcodes.blogspot.com, Coded by: Morad Hasan-->
<meta http-equiv="Content-Language" content="en-us">
<SCRIPT language=JavaScript>
<!-- Begin
function shake(n) {
if (parent.moveBy) {
for (i = 10; i > 0; i--) {
for (j = n; j > 0; j--) {

parent.moveBy(-i,0);
parent.moveBy(0,-i);

Set your website as the visitor's homepage

set as your home page
HTML Code



<!-- This Script is from my-htmlcodes.blogspot.com, Coded by: Morad Hasan-->
<A class=chlnk
            style="CURSOR: hand; font-decoration: underline"
            onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://my-javacodes.blogspot.com/');"
            href="\">set as your home page</A><br><font face="Tahoma">
           

<font face="Tahoma"><a target="_blank" href="http://my-htmlcodes.blogspot.com/"><span style="font-size: 8pt; text-decoration: none">HTML Code</span></a></font>

welcome message to visitors of your website

Html Code


<!-- this script got from my-htmlcodes.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" href="http://my-htmlcodes.blogspot.com/"><span style="font-size: 8pt; text-decoration: none">Html Code</span></a></font>

password on your website to protect your pages

-->

Login Area

UserID:

Password:

HTML Code

<!-- This Script is from my-htmlcodes.blogspot.com, Coded by: Morad Hasan-->
<script language="javascript">
<!--//
/*This Script allows people to enter by using a form that asks for a

Change color of the scrollbar


<!-- This Script is from my-htmlcodes.blogspot.com, Coded by: MoradHasan-->

<style>
BODY {SCROLLBAR-FACE-COLOR: #D4D0C8; SCROLLBAR-HIGHLIGHT-COLOR: #999999; SCROLLBAR-SHADOW-COLOR: #999999; SCROLLBAR-3DLIGHT-COLOR: #ffffff; SCROLLBAR-ARROW-COLOR:  #000000; SCROLLBAR-TRACK-COLOR: #E3E3E3; SCROLLBAR-DARKSHADOW-COLOR: #666666; }
</style>

<font face="Tahoma"><a target="_blank" href="http://my-htmlcodes.blogspot.com/"><span style="font-size: 8pt; text-decoration: none">HTML Code</span></a></font>