IT430 VU Assignment no. 2 Spring 2012 Solution

No Comments
100% correct:


<html>
<head>

<title>VU ID or VUsolutions</title>
<style type="text/css">
body {
height:500px;
background-image:url('yur image here');
background-position:center;
background-repeat:no-repeat;

}
#css1{
color:#333399;
font-weight:bold;
float:left;
}
#css2{
color:#0033CC;
font-weight:bold;
background-color:#999999;
width: 400px;
float:right;
}
.bgcolor {
background-color:#6699FF;
color:#000000;


}
.bgimage{
margin:100px;

background-repeat:repeat-x;


}

</style>
</head>


<body>
<table border="0">
<tr>
<td>
<div id="css1">
<script>
document.write ("<p>" + Date() + "</p>");

function Dividmrk()
{
var num1=document.divide.tmrk.value;
var num2=document.divide.smrk.value;
var num3=(parseFloat(num1)/parseFloat(num2));
var num4=document.divide.rmrk.value;
var ok=confirm(parseFloat(num4)/parseFloat(num3))
if(ok=true){
alert("THANKS FOR USING OUR SERVICE");
}
}


</script>
</div>
</td>
<td><marquee direction="left" scrollamount="3" behavior="scroll" id="css2">WELCOME FOR OUR SERVICES BY </marquee></td>
</tr>
</table>
<form name="divide">
<table>
<tr>
<td>
<div class="bgcolor">Total Marks:</div></td><td><input type="text" name="tmrk"/>
</td>
</tr>

<tr>
<td class="bgcolor">Secured Marks:</td>
<td><input type="text" name="smrk" /></td>
</tr>

<tr>
<td class="bgcolor">Rescale Marks:</td>
<td><input type="text" name="rmrk" /></td>
</tr>


</table>
<input type="button" value="Secured_rescale_Marks" onclick="Dividmrk()"><input type="reset" value="Reset" />
</form>

</body>
</html>

:::::::::::::::::::::::::::::::

<html>
<head><title>

</title>
</head>
<body>
<script language="javascript" type="text/javascript">
/*
*/
speed=1000
len=42
tid = 0;
function dodate()
{
f.date.value=new Date();
tid=window.setTimeout("dodate()",speed);
}
function start(x) {
f=x
tid=window.setTimeout("dodate()",speed);
}
function cleartid() {
window.clearTimeout(tid);
}
function Clock()
{
document.write('<FORM name=dateform><input name=date size=')
document.write(len)
document.write(' value="Clock"></FORM>')
start(document.dateform);
}
</script>
<script language="javascript">
// You need a javascript compatible vu solutions browser to view the following <br>
Clock();
// end javascipt section <br>
</script>

<center><marquee behavior="scroll" direction="left" bgcolor=gray width=300px
height=120px><font=arial size=20>Innocent Prince
</font></size></marquee>
</center>
<Table cellpadding="3">
<td><b><div style="background-color:grey;width:200px;"> Total Marks
</b></td>
<td><input name="textarea" </td>
</div>
</table>
<Table cellpadding="3">
<td><b><div style="background-color:grey;width:200px;"> Secured Marks
</b></td>
<td><input name="textarea" </td>
</div>
</table>
<Table cellpadding="3">
<td><b><div style="background-color:grey;width:200px;"> Rescale Marks
</b></td>
<td><input name="textarea" </td>
</div>
</table>
<Td width="150" align="right">. </td>
<TD>
<input type="Submit" name="order" value="Secured_Rescaled_Marks">
<input type="reset" value="Reset">
</td>
</body>
</html>

........................

<html>
<head><title>
VUsolutions
</title>
</head>

<body>
<script language="javascript" type="text/javascript">
/*

*/

speed=1000
len=42
tid = 0;

function dodate()
{
f.date.value=new Date();
tid=window.setTimeout("dodate()",speed);
}

function start(x) {
f=x
tid=window.setTimeout("dodate()",speed);
}

function cleartid() {
window.clearTimeout(tid);
}

function Clock()
{
document.write('<FORM name=dateform><input name=date size=')
document.write(len) document.write(' value="Clock"></FORM>')
start(document.dateform);
}
</script>

<script language="javascript">

// You need a javascript compatible browser to view the following <br>
Clock();
// end javascipt section <br>
</script>

<center><marquee behavior="scroll" direction="left" bgcolor=gray width=300px
height=120px><font=arial size=20> Shahzad Rock
</font></size></marquee>
</center>

<Table cellpadding="3">
<td><b><div style="background-color:grey;width:200px;"> Total Marks </b></td>
<td><input name="textarea" </td>
</div>
</table>


<Table cellpadding="3">
<td><b><div style="background-color:grey;width:200px;"> Secured Marks </b></td>
<td><input name="textarea" </td>
</div>
</table>

<Table cellpadding="3">
<td><b><div style="background-color:grey;width:200px;"> Rescale Marks </b></td>
<td><input name="textarea" </td>
</div>
</table>
<Td width="150" align="right">. </td>

<TD>
<input type="Submit" name="order" value="Secured_Rescaled_Marks">
<input type="reset" value="Reset">
</td>


</body>
</html>
Next PostNewer Post Previous PostOlder Post Home

0 comments

Post a Comment