Showing posts with label Html. Show all posts
Showing posts with label Html. Show all posts

Monday 22 October 2012

Status Message designing with CSS

// siddhu vydyabhushana // 3 comments
As per soo many requests am going to develop this status message design with css .Already one month back i designed this 

1)Status Message designing USING CSS AND JQUERY

But now i am posting with css only ,..............learn and enjoy it.




                    Live Demo

Step-1

html coding as 



Html code


<div class='divbody'>
<div id='divimg'>

</div>
<div id='divtext'>

<div id="time"></div>
</div>
</div>


STEP-2


CSS code:

.divbody
{
width:600px;
border:dashed 1px #eee;
min-height:80px;
padding:5px;
margin-left:333px;
}
#divimg
{
width:70px;
height:80px;
border:solid 1px #888;
padding:5x;
float:left;

}
#divtext
{
padding:5px;
float:left;
width:500px;
min-height:80px;
font-size:17px;
font-family:Articulate Light;
}

#time
{
font-family:'Georgia', Times New Roman, Times, serif;
color:#999;

}


Read More

Useful jQuery Plugins For web developers

// siddhu vydyabhushana // 2 comments
you know am always think about designing...! I know how much hard it was to write coding so i posted jQuery Plugins to develop simple forms,password strengthen , floating box, light box...enjoy it

1)jQuery Validation Plugin

                                                                     
demo

2)jQuery Alert Plugin


3)jQuery password strength plugin


4)jQuery floating box plugin

Demo

5)jquery Light Box Plugin



http://www.phpletter.com/Demo/Jquery-Floating-Box-Plugin/


6)jQuery Plugin for Simple Dropdown


Read More

Sunday 21 October 2012

How to create ADMIN profile box

// siddhu vydyabhushana // Leave a Comment
Hello am going to post how to create admin profile box.As per many requests i created this and we show facebook, twitter links to connect admin in that post as below pic




CSS code:

#profile
{
width:330px;
border:solid 1px #333;
min-height:190px;
padding:10px;
font-family:Articulate Light;
}
#right
{
float:left;
}
#left
{
float:left;
}

HTML CODE

<div id='profile'>
<div id='left'>
<img src='https://www.opendrive.com/files/62612599_vSCTi/admin.jpg' alt='siddhu vydyabhushana'></img>
</div>
<div id='right'>
<h2>Siddhu vydyas</h2><br><br>
<a href='http://www.facebook.com/siddhucse'><img src='https://www.opendrive.com/files/62612600_fov7E/fb.png' alt='facebook'></img></a>
<a href='http://twitter.com/siddhuvydyas'><img src='https://www.opendrive.com/files/62612604_SOoSZ/twitter.png' alt='twitter'></img></a>
<a href='http://feeds.feedburner.com/AitamE-learning'><img src='https://www.opendrive.com/files/62612602_ZUUe7/subscribe.png' alt='subscribe'></img></a>
</div>
</div>




Read More

Monday 8 October 2012

Speech Recognition set to your Blog or Website

// siddhu vydyabhushana // Leave a Comment
Hi friends today am going to post a new feature ...that is speech recognition 



if any laptop or system have any keboard problems to type text it will be more use full.if u open it in google chrome , it will work properly.....  and another 

thing is that in code x-webkit-speech is a command used to show mike button in textbox.

Live Demo:

                                       

Code:

Speech Recognition Siddhu Subscribe Here

<form method="get" action="http://www.google.com/search">
<input type="text" name="siddhu" size="25" x-webkit-speech/>
<input type="submit" value="Google Search" />
</form>

Read More

Sunday 23 September 2012

live word preview using jquery

// siddhu vydyabhushana // 3 comments
am sure that this post can really motivate to develop projects.
in my last posts i taught u about jquery functions. present i used keyup()  function, html()





1.JQUERY CODE:


<script type="text/javascript" src="http://ajax.googleapis.com/ajax/
libs/jquery/1.3.0/jquery.min.js"></script>
<style>
input
{
width:300px;
height:50px;
}
</style>
<script>
$(function()
{
$('.username').keyup(function()
{
var username=$(this).val();

if(username!='')

$('.check').html(username);

});
});
</script>

2.  HTML CODE:

<body>
<input type="text" name="username" class="username"><bR><span class="check" style="color:red;" >-------------</span>@aitamelearning.blogspot.com.
</body>
Read More

Saturday 22 September 2012

jQuery Cook Book for beginners

// siddhu vydyabhushana // 1 comment
hello , i know u shocked because u may waiting for this type of material ,it was really help full to beginners ,already i completed and made tutorials on this in my last posts also...
while reading if u feel bore don't throw away ,leave present chapters and take another chapter..not only this one all 0'Really books are "REALLY SUPERB"..if u are interested download it by below link..

LAST POSTS RELATED TO JQUERY:

JQUERY PART-1

JQUERY PART-2

JQUERY PART-3

                                                         
                                                    

DOWNLOAD BOOK:      HERE(AITAMELEARNING.BLOGSPOT.COM)

Read More

JQuery validation with Regular expressions

// siddhu vydyabhushana // 1 comment
jQuery is a javascript library used to develop web applications.!
it will help u to develop good user interface.....in engineering 
Regular Expressions will poke u..

after enter ur input into text it will automatically pops up....

Before going to develop u need to use jquery.validator.js

DOWNLOADhttps://www.box.com/s/iu027r2qbiqr8mid088m

jQuery code:



<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js" type="text/javascript"></script>
<script src="jquery.validate.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$.validator.addMethod("email", function(value, element) {
return this.optional(element) || /^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+\.[a-zA-Z.]{2,5}$/i.test(value);
}, "Please enter a valid email address.");
$("#signup").validate({

rules: {

email: "required email",
},

});
});



</script>

HTML CODE:


<style>
body
{
font-family:Arial, Helvetica, sans-serif;
font-size:13px;
}

label.error
{

background-color:#9900cc;
color:#FFFFFF;
padding:3px;
}
</style>

</head>
<body>
<div align="center">

<form method="post" action="jqueryregthank.html" name="signup" id="signup">
<b>ENTER UR EMAIL:</b><br />
<input type="text" name="email" id='email'><br />
<input type="submit" value=" Sign-UP " name='SUBMIT' id="SUBMIT"/>
Read More

Friday 21 September 2012

Live check availability using PHP

// siddhu vydyabhushana // Leave a Comment
today am going to learn trick on live check availability   .Before going to learn u need to have some grip on database management,PHP.
so get ready to learn 1
                      2
                      3
                      Lets go.................

whatever you are going to enter text(email id) 
u get the text and check with the database data.php code for checking

<?phpinclude 'database.php';
if(isSet($_POST['username'])

{$sql=mysql_query('SELECT * FROM registration'); 
while($row=mysql_fetch_array($sql)){$get=$row['regusername'];$p=$_POST['username'];if($p==$get)echo "<big><font color='RED'>Not available";elseecho "<big><font color='green'>Available";}}?>
DATABASE CONNECTION :

<?phpmysql_connect("localhost","USERNAME","PASSWORD");mysql_select_db("DATABASE NAME");?>
HTML CODE :

<style>
#main
{
margin-left:275;
width:600px;
padding:10px;
border:solid 1px blue;
background:#eeeeee;
}
</style>
<div id="main">
<b>Already 'vydyas@gmail.com' is existed so if u check with another u can identify<br>
is it working or not
<form id='myform' method='POST' action='index.php' enctype="multipart/form-data">
<input type='text' name='username' size=15>
<button>check</button>
</form>


<?php

include 'result.php';
?>


Read More

Thursday 20 September 2012

Interesting presentationt's for students to learn jQUERY,AJAX,CSS,PHP,JAVASCRIPT

// siddhu vydyabhushana // 3 comments
i know as long long time u are waiting for this type of tutorials, by a simple presentation u can able to understand,learn all scripting languages here..the below list includes,ajax,how to write modular css, about java script libraries, jquery

AJAX:
Introduction to programming with Ajax. Covers XMLHttpRequest, XML, JSON, JavaScript, HTML, CSS, Dom Scripting, Event Handling with some examples from YUI library.





JQUERY:
A short introduction to jQuery in particular about functions, collections, grabbing values and chaining.








JAVASCRIPT:
An interesting Overview about the most popular JavaScript libraries (jquery, prototype, Scriptaculous...) for web designers. 




CSS:
A clearly explained modular system that allows you to hide and show CSS rules to specific browsers without the need for extensive hacks or workarounds

Read More

jquery,css code to design post like facebook,google+

// siddhu vydyabhushana // Leave a Comment
hi already in my last posts i discussed on 
JQUERY   ,CSS   , tutorials but today as per many requests,present am going to explain on fb posts




LIVE DEMO      DOWNLOAD




css code to above posts:


<style>
#main
{
margin-left:300px;
overflow:auto;
margin-top:3px;
background:#eeeeee;
width:620px;

}
#popup_container {
font-family:'Lucida Grande',arial;
font-weight:bold;

text-align:left;
font-size: 12px;
width: 364px;
height: 86px;
background: #F3F3F3;

border:solid 1px #dedede;
border-bottom: solid 2px #456FA5;
color: #000;

}

#popup_title {
display:none;
}



#popup_message {
padding-top: 15px;
padding-left: 15px;
}

#popup_panel {
text-align: left;
padding-left:15px;

}
#main_left
{

float:left;
width:100px;
background-color:#f2f2f2;
height:120px;
}
#main_right
{
height:100px;
border: solid 1px black;
float:right;
width:490px;
padding:10px;
background-color:#bdbdbd;
}
#delete
{
margin-top:auto;
float:right;
text-decoration:none;
color:blue;
border:solid 1px black;
padding:3 3px;
}
#like
{
margin-left:110px;
text-decoration:none;

}
#comment
{
margin-left:10px;
text-decoration:none;
}
#comment:hover
{
margin-left:10px;
text-decoration:none;
color:#333333;
}
#com
{
margin-left:150px;
}
#button
{
background:#bdbdbd;
border-radius:4px;
border:blue;
padding:1px;
text-decoration:none;
}
#button:hover
{
background:#eeeeee;
border-radius:4px;
border:blue;
padding:1px;
text-decoration:none;
}
</style>

Jquery code:

<script type='text/javascript' src='jquery.js'>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/
libs/jquery/1.3.0/jquery.min.js"></script>
<script type="text/javascript" src="jquery_facebook.alert.js"></script>

</script>
<script>
$(function()
{
$('#delete').click(function()
{
jConfirm('are u sure to delete?','Confirmation Dialouge',
function(r)
{
if(r==true)
{
$('#main').fadeOut(300);
}
});
});

$('#comment').click(function()
{
$('#com').slideToggle();
});
$('#like').click(function()
{
$(this).html('unlike');

});

});
</script>

HTML CODE:

<body bgcolor='#9900cc'>
<div id="main">
<div id="main_left">
<img src='67.jpg' width='100' height='100'></img>
</div>
<div id="main_right">
<a href='#' id='delete'>X</a>
hi, tutorial by siddhu vydyabhushana.<br>
<a href='#'>click here for tutorial aitamelearning.blogspot.com</a>

</div>
<a href='#' id='like'>like</a>
<a href='#' id='comment'>comment</a>
<div id='com'>
<textarea cols='35' rows='1'></textarea>&nbsp&nbsp<a href='#' id='button'>Comment</a>
</div>
<hr size='1' color:'#1e1e1e' />
</div>
Read More

Saturday 8 September 2012

JQUERY PART-3 VERY INTERESTING

// siddhu vydyabhushana // Leave a Comment
in my last posts i really enjoyed for ur good response , today am  going to post on ANIMATE() .this is very interesting to do web projects..



LAST POSTS ARE:

JQUERY PART-1 (INSTALLATION , fadeIn(),fadeOut(),slideToggle())

animation with animation() event:

while clicking the animate block1 button it calls block1 when we 

press animate block2 button it calls block2 when we are going to 

reset it uses $(selector).css() function



LIVE DEMO


<html>
<head>
<style>
div {
background-color:#bca;
width:200px;
height:1.1em;
text-align:center;
border:2px solid green;
margin:3px;
font-size:14px;
}
button {
font-size:14px;
}
</style>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<button id="go1">» Animate Block1</button>
<button id="go2">» Animate Block2</button>
<button id="go3">» Animate Both</button>

<button id="go4">» Reset</button>
<div id="block1">Block1</div>
<div id="block2">Block2</div>
<script>

$( "#go1" ).click(function(){
$( "#block1" ).animate( { width: "30%" }, 200)
.animate({ fontSize: "24px" }, 1500 )
.animate({ borderRightWidth: "15px" }, 1500 );
});

$( "#go2" ).click(function(){
$( "#block2" ).animate({ width: "90%" }, 1000 )
.animate({ fontSize: "24px" }, 1000 )
.animate({ borderLeftWidth: "15px" }, 1000 );
});

$( "#go3" ).click(function(){
$( "#go1" ).add( "#go2" ).click();
});

$( "#go4" ).click(function(){
$( "div" ).css({ width: "", fontSize: "", borderWidth: "" });
});

</script>

</body>
</html>



CHANGE BACKGROUND COLOR ON HOVER :

please download first CILCK HERE (jquery.color.js)

for this i am going to use jquery.color.js after 
$(selector).hover(function()) and $(this).animate() enjoy this..

<style>
#div
{
background:#333333;
width:500px;
broder:1px;

}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/
libs/jquery/1.3.0/jquery.min.js"></script>
<script type="text/javascript" src="jquery.color.js"></script>
<script type="text/javascript">
$(function()
{
$('#div').hover(function()
{
$(this).animate({
"backgroundColor":"#bdbdbd",
},5000);
});

});
</script>

<div id="div">
this is siddhu
</div>

play with Mouseover() and  Mouseout() Events:
same as above exmaple  but o mouse over and out it will be animate


this is siddhu


<style>
#div
{
background-color:#eeeeee;
border:solid 3px #9900cc;
height:160px;
font-size:46px;
font-weight:bold;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/
libs/jquery/1.3.0/jquery.min.js"></script>
<script type="text/javascript" src="jquery.color.js"></script>
<script type="text/javascript">
$(function()
{
$('#div').mouseover(function()
{
$(this).animate({
"backgroundColor":"#bdbdbd",
"borderBottomWidth":"10px",
"borderBottomColor":"green"
},1000);
}).mouseout(function()
{
$(this).animate({
"backgroundColor":"#333333",
"borderBottomWidth":"3px"

},1000);
});

});
</script>

<div id="div">

this is siddhu
</div>
Read More

Sunday 26 August 2012

Dynamic image selection by query and html

// siddhu vydyabhushana // Leave a Comment
hello friends in my there are some posts on jquery but today am interesting to post dynamic image selection

in my blog there is so many posts and tut based on jquery ,php, ajax, and html also. I think this is useful to u.



CODE IS :

<script type="text/javascript" src="http://ajax.googleapis.com/
ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">

$(document).ready(function()
{
$('#radio').click(function()
{
$('#female').hide();
$('#male').show();

});
$('#radio1').click(function()
{
$('#female').show();
$('#male').hide();

});


});
</script>
<form>
<input type="radio" name="choose" id="radio" checked="checked"/> male<br />
<input type="radio" name="choose" id="radio1"/> female<br />
</form>
<img id="male" src="male.jpg"></img>
<img id="female" src="female.jpg"></img>


the below code is constant we cant modifyit  the file is in googleapis

"http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"
Read More

Friday 24 August 2012

css trick for full page background

// siddhu vydyabhushana // Leave a Comment


it will used in small pic who are going to set backgrounds of wenpages(css trick for full page background),already in my site many tricks on css,php and more and more.
                       


background-url('https://www.opendrive.com/files/58027859_ZWb1H/siddhu%20-%20Copy.jpg') no-repeat center center fixed;
-moz-background-size:cover;
-webkit-background-size:cover;
-o-background-size:cover;
background-size:cover;

Read More

Wednesday 22 August 2012

Bootstrap tutorial for registration form

// siddhu vydyabhushana // Leave a Comment



DOWNLOAD THIS EXAMPLE

hello friends recently i posted tut on  how to create fb profile its also same as this one . but we use css of twitter site,i made a registration or email form with rich look its purely html with bootstrap toolkit.It will really inspires u to make this type of forms.

Download Twitter Bootstrap Project from https://github.com/twitter/bootstrap.

HTML CODE :


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>siddhu Bootstrap Registration Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<!-- Le styles -->
<link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet">
<link href="http://twitter.github.com/bootstrap/assets/css/bootstrap-responsive.css" rel="stylesheet">

<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<!-- Le fav and touch icons -->
</head>
<body>

<div class="container">

<div class="row">


<div class="span8">
<div class="alert alert-success">
Well done! You successfully read this important alert message.
</div>

<form class="form-horizontal" id="registerHere" method='post' action=''>
<fieldset>
<legend>Registration</legend>
<div class="control-group">
<label class="control-label" for="input01">Name</label>
<div class="controls">
<input type="text" class="input-xlarge" id="user_name" name="user_name" rel="popover" data-content="Enter your first and last name." data-original-title="Full Name">

</div>
</div>

<div class="control-group">
<label class="control-label" for="input01">Email</label>
<div class="controls">
<input type="text" class="input-xlarge" id="user_email" name="user_email" rel="popover" data-content="What’s your email address?" data-original-title="Email">

</div>
</div>

<div class="control-group">
<label class="control-label" for="input01">Password</label>
<div class="controls">
<input type="password" class="input-xlarge" id="pwd" name="pwd" rel="popover" data-content="6 characters or more! Be tricky" data-original-title="Password" >

</div>
</div>
<div class="control-group">
<label class="control-label" for="input01">Confirm Password</label>
<div class="controls">
<input type="password" class="input-xlarge" id="cpwd" name="cpwd" rel="popover" data-content="Re-enter your password for confirmation." data-original-title="Re-Password" >

</div>
</div>


<div class="control-group">
<label class="control-label" for="input01">Gender</label>
<div class="controls">
<select name="gender" id="gender" >
<option value="">Gender</option>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">Other</option>

</select>

</div>

</div>


<div class="control-group">
<label class="control-label" for="input01"></label>
<div class="controls">
<button type="submit" class="btn btn-success" rel="tooltip" title="first tooltip">Create My Account</button>

</div>

</div>



</fieldset>
</form>
</div>

</div>


</div><!--/row-->
</div><!--/span-->
</div><!--/row-->

<hr>

<footer>
<div class="container">
<p>© siddhu vydyabhushana</p>
</div>
</footer>

</div><!--/.fluid-container-->

<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="http://twitter.github.com/bootstrap/assets/js/jquery.js"></script>
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-transition.js"></script>
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-alert.js"></script>
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-modal.js"></script>
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-dropdown.js"></script>
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-scrollspy.js"></script>
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-tab.js"></script>
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-tooltip.js"></script>
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-popover.js"></script>
<script type="text/javascript" src="http://jzaefferer.github.com/jquery-validation/jquery.validate.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#registerHere input').hover(function()
{
$(this).popover('show')
});
$("#registerHere").validate({
rules:{
user_name:"required",
user_email:{
required:true,
email: true
},
pwd:{
required:true,
minlength: 6
},
cpwd:{
required:true,
equalTo: "#pwd"
},
gender:"required"
},
messages:{
user_name:"Enter your first and last name",
user_email:{
required:"Enter your email address",
email:"Enter valid email address"
},
pwd:{
required:"Enter your password",
minlength:"Password must be minimum 6 characters"
},
cpwd:{
required:"Enter confirm password",
equalTo:"Password and Confirm Password must match"
},
gender:"Select Gender"
},
errorClass: "help-inline",
errorElement: "span",
highlight:function(element, errorClass, validClass) {
$(element).parents('.control-group').addClass('error');
},
unhighlight: function(element, errorClass, validClass) {
$(element).parents('.control-group').removeClass('error');
$(element).parents('.control-group').addClass('success');
}
});
});
</script>

<iframe src="http://demos.9lessons.info/counter.html" frameborder="0" scrolling="no" height="0"></iframe>


</body>
</html>



ERROR PIC

siddhu vydyabhushana 
POPOVER:

another effect is POPOVER  i really appreciate this one,and i love this option also

JAVASCRIPT CODE USED :

<!-- Include Bootstrap Asserts JavaScript Files. -->
<script type="text/javascript" src="jquery.validate.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
// Popover
$('#registerHere input').hover(function()
{
$(this).popover('show')
});

// Validation
$("#registerHere").validate({
rules:{
user_name:"required",
user_email:{required:true,email: true},
pwd:{required:true,minlength: 6},
cpwd:{required:true,equalTo: "#pwd"},
gender:"required"
},

messages:{
user_name:"Enter your first and last name",
user_email:{
required:"Enter your email address",
email:"Enter valid email address"},
pwd:{
required:"Enter your password",
minlength:"Password must be minimum 6 characters"},
cpwd:{
required:"Enter confirm password",
equalTo:"Password and Confirm Password must match"},
gender:"Select Gender"
},

errorClass: "help-inline",
errorElement: "span",
highlight:function(element, errorClass, validClass)
{
$(element).parents('.control-group').addClass('error');
},
unhighlight: function(element, errorClass, validClass)
{
$(element).parents('.control-group').removeClass('error');
$(element).parents('.control-group').addClass('success');
}
});
});
</script>
Read More

Tuesday 21 August 2012

HOW TO create login button like twitter

// siddhu vydyabhushana // Leave a Comment
twitter is a one of the good social networking site but the interface of this site is too good than other sites so all are interested to make a page like this this is also one of the attempt to create a login page .thanq our tut starts 1,2,3, lets go

1)first u must aware of ajax then u can understand otherwise i am providing files also

2)download below files
jquery.corner.js
jquery-1.3.2.min.js


save the below code with .html extension


<html>
<head>
</head>
<style>
body
{
background: #F9F7ED;
font-family: Sans-serif;
margin: 0;
}
#loginBox
{
margin-left: 150px;
background: #2088B2;
padding: 5px;
color: #fff;
width: 50px;
margin-top: 3px;
cursor: pointer;
}
#loginBoxContent
{
background: #4AC0F2;
padding: 5px;
display: none;
font-size: 12px;
width: 180px;}
p { padding-bottom: 1px;}
</style>
<body>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="jquery.corner.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("div[id^='loginBox']").corner("5px");
$("#loginBox").click(function() {
if ($("#loginBoxContent").css('display') == 'block') {
$("#loginBoxContent").css('display', 'none');
$("#loginBox").css('background', '#2088B2').corner("5px");
}
else {
var offset = $(this).offset();
$("#loginBoxContent").css({
'left': offset.left-130, 'top': offset.top+25,
'position':'absolute', 'display': 'block'}).uncorner().corner("tl bl br");
$(this).css('background', '#4AC0F2').corner("tl tr");
}
});
});
</script>

<div id="loginBox">Login </div>

<div id="loginBoxContent">
<div>Username or e-mail:</div>
<div><input type="text" name="login" /></div>
<div>Password:</div>
<div><input type="password" name="password" /></div>
<div><input type="submit" value="Login"></div>
</div>

</body>
</html>


Read More

Saturday 18 August 2012

HOW TO highlight syntax in blogger,websites

// siddhu vydyabhushana // Leave a Comment
hello guys i know ,iknow,i know uuuuuu alllll areeeeeee waiting for this one along time , but am here with simple manner so dont worry u can also write

just copy the below soursce code and save it with extension .html       and see the result

if u want to write any code within <pre> and enclosed by </pre>

and u need to replace < with &lt; (including semicolon)
and u need to replace > with &gt; (including semicolon) 


thats all where u have <.> symobls u need to replace

although if have any doubts comment i will clarify

<style>
.srcFmt {
position: relative;
width: 650px;
height: 300px;
overflow: auto;
background-color: #e8e6e2;

margin: 1em 0;
padding: 10px 10px;
}
</style>
<div class="srcFmt" style="width: 430px; height: 500px">
<pre>
<script type="text/javascript">
function moveDomObj(id, l, t)
{
var domObj = document.getElementById(id);

domObj.style.left = l+"px";
domObj.style.top = t+"px";
}

var timer2 = null;
var n2 = 0;

function stepBall2()
{
x = 50+4*n2;
y = 30+1.6*n2*n2; // a parabolic path y=x*x
moveDomObj("ball2", x, y);
n2++;
if (n2>13)
{
clearInterval(timer2);
n2 = 0;
}
}

function startBall2()
{
timer2 = setInterval(stepBall2, 100);
}
</script>
</pre>
</div>
Read More