Add new record into global resource with the name Language, and asign the value 1033 to english variable, and another value for another variable. After that, add the follwoing code to html tag, such us, TD:
27/01/2011
Modify the direction of basic HTML tag using global resource
Read more...
26/01/2011
Set default value into text box, such us search text box
<head>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
</head>
<body>
<script>
$(document).ready(function() {
$("#search")
.val("Search...")
.css("color", "#ccc")
.focus(function(){
$(this).css("color", "black");
if ($(this).val() == "Search...")
{
$(this).val("");
}
})
.blur(function(){
$(this).css("color", "#ccc");
if ($(this).val() == "")
{
$(this).val("Search...");
}
});
});
</script>
<input type="text" id="search">
</body>
Read more...
10/01/2011
Div with scroll, Like multi line text box
To create div with scroll like multi line text box, only using CSS to apply this idea.
Into HEAD tag, Add the following code
<style>
div.Terms {
background:#ffffff none repeat scroll 0 0;
border:1px solid #a0a0a0;
margin:5px;
padding:5px;
position:relative;
width:1000px;
height:300px;
overflow:auto;
}
div.Content {
margin:10px;
padding:5px;
border:0px solid #666;
width:950px;
zheight:500px;
}
</style>
Into BODY tag, add the following code
<table> <tr> <td> The Terms: <br /> </td> </tr> <tr> <td> <div class="Terms" id="Terms"> <div class="Content"> The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content The Content </div> </div> </td> </tr> </table>
Read more...
Subscribe to:
Posts (Atom)