Lab Program <!A HTML program to mark up a chosen text by <HTML> <HEAD> <TITLE> PROGRAM 1 <BODY> <H1 <P> <STRONG>D</STRONG>dynamic <EM> powered lets was validations are possible <P> <STRONG>T</STRONG>here are various of <H1> SCRIPTING LANGUAGES <B> Javascript </B> <I>VBscript</I> <U>JSP</U> <STRIKE>ASP</STRIKE> <EM>XML</EM> </BODY> </HTML> |
Lab Program <!A HTML program to create an web <HTML> <HEAD><TITLE> Program <BODY BACKGROUND="../GRASS.JPG" > <H1> <p><b><u> Demo Program of Images <b> WELCOME TO ANIMAL WORLDS <div <img <div <img <div <img </H1> </BODY> </HTML> |
Lab Program <!A <HTML> <HEAD> <TITLE> CREATION OF LINKS </TITLE> </HEAD> <BODY> <CENTER> <H1> POPULAR WEB SITES <HR> <H2> REGULARLY VISITED MAILING <HR For <A For <A <HR> <H2> Searching Address <HR POPULAR <A </CENTER> </BODY> </HTML> |
Lab Program <! A Web page that displays grade of a <HTML> <HEAD> <TITLE> GRADES OF THE STUDENT <BODY> <CENTER> <TABLE BORDER="3"> <CAPTION> <B> <H1> AVERAGE GRADES OF THE STUDENT </CAPTION> <COLGROUP> <COLSPAN=5 </COLGROUP> <TR> <TH </TR> <TR><TH><TD> 1999<TD> <TR><TH> SOCIAL <TD> B <TR><TH> MATHS<TD> A<TD> <TR><TH> SCIENCE<TD> </TABLE> </CENTER> </BODY> </HTML> |
Lab Program <!A script that <HTML> <HEAD> <TITLE> SIDES OF A TRIANGLE OR </HEAD> <BODY> <SCRIPT var do { x=parseInt(window.prompt("ENTER THE SIDE y=parseInt(window.prompt("ENTER THE SIDE z=parseInt(window.prompt("ENTER THE SIDE } while((x<0)||(y<0)||(z<0)); max=Math.max(x,Math.max(y,z)); if(max==x) if((y+z)>max) window.alert("TRIANGLE CONSTRUCTION IS else window.alert("TRIANGLE CONSTRUCTION IS NOT if(max==y) if((x+z)>max) window.alert("TRIANGLE CONSTRUCTION IS else window.alert("TRIANGLE CONSTRUCTION IS NOT if(max==z) if((x+y)>max) window.alert("TRIANGLE CONSTRUCTION IS else window.alert("TRIANGLE CONSTRUCTION IS NOT </SCRIPT> </BODY> </HTML> |
Lab Program <!A script for <HTML> <HEAD> <TITLE> RETAIL SHOP <SCRIPT var pno=-1; totalvalue=0.0; document.writeln("<TABLE document.writeln("<TH>Quantity<TH>Value(in while(pno!=0) { pno=parseInt(window.prompt("Enter the Product if(pno==0) break; quantity=parseInt(window.prompt("Enter the switch(pno) { case 1: case 3: case 4: case 5: value=9.49; } x=quantity*value; totalvalue+=x; document.writeln("<TD>"+pno+"<TD document.writeln("<TD } document.writeln("<TD colspan=3>Total Retail document.writeln((Math.floor(totalvalue*100+0.5)/100)+"</TR> </SCRIPT> </HEAD> </HTML> |
Lab Program <!A function that determines for a pair of <HTML> <HEAD> <TITLE>Whether second number is multiple of </TITLE> <SCRIPT function multiple(x,y) { if(y%x==0) return else return } function check() { var var if(multiple(x,y)) window.alert("second number is else window.alert("second number is not } </SCRIPT> </HEAD> <BODY BGCOLOR="black" <FORM NAME=f1> <TABLE BORDER="4"> <CAPTION> USER INPUT <TR> <TH> First Integer <TD><INPUT TYPE=text NAME=firstnumber <TR> <TH> Second <TD><INPUT TYPE=text NAME=secondnumber <TR> <TD <INPUT TYPE=button VALUE="calculate" </TABLE> </FORM> </BODY> |
Lab program <!A Java script that inputs three integers fro <HTML> <HEAD> <TITLE> Finding </TITLE> <SCRIPT y=parseInt(window.prompt("ENTER THE SECOND z=parseInt(window.prompt("ENTER THE function sum() { result=x+y+z; window.alert(" SUM OF " + data + " } function avg() { result=((x+y+z)/3); window.alert(" AVERAGE OF " + data } function large() { result=Math.max(Math.max(x,y),z); window.alert(" LARGEST OF " + data } </SCRIPT> </HEAD> <BODY> <FORM> <TABLE BORDER="2"> <CAPTION> <H3> Sum, Average and <COLGROUP> <COLSPAN="2" </COLGROUP> <TR><TH> To Sum of those <TD><INPUT TYPE="button" VALUE="SUM" ONCLICK="sum();"> <TR><TH> To get Average of those <TD><INPUT TYPE="button" VALUE="AVERAGE" ONCLICK="avg ();"> <TR><TH> To find Largest of those <TD><INPUT TYPE="button" value="LARGEST" ONCLICK="large();"> </TABLE> </FORM> </BODY> </HTML> |
Lab Program <!A script for selection for selection <HTML> <HEAD> <TITLE> SELECTION SORT <SCRIPT var var document.writeln("Before sorting Array elements n=arr.length; for(i=n-1;i>0;i--) { large=arr[0]; index=0; for(j=1;j<=i;j++) {
{
} } document.writeln("<BR> After sorting Array </SCRIPT> </HEAD> </HTML> |
Lab Program <!A script to write word equivalent of check <HTML> <HEAD> <TITLE> WORDS TRANSFORMATIONS <SCRIPT function dispwords() { var var arr= new n=parseInt(document.f1.num.value); temp=n; while(temp>0) {
} arr.reverse(); r=arr.join(" document.f1.res.value=r; } function words(k) { switch(k) { case 0:return case 1:return case 2:return case 3:return case 4:return case 5:return case 6:return case 7:return case 8:return case 9:return } } </SCRIPT> </HEAD> <BODY> <FORM NAME=f1> NUMBER <P> RESULT <P> <INPUT TYPE=button VALUE='WORDS' </FORM> </BODY> </HTML> |
Lab Program <!A screen object to get the users screen, then <HTML> <HEAD> <TITLE> DEMO ON IMAGES </HEAD> <BODY> <SCRIPT var a=screen.width; b=screen.height; l=(a/4); r=(b/5); document.writeln("<img src='cookie.jpg' document.writeln(c+ document.writeln(a+" </SCRIPT> </BODY> </HTML> |
Lab Program <! A CSS program to explain background <HTML> <HEAD> <TITLE> IMAGES AND TEXT <STYLE> body </STYLE> </HEAD> <BODY <H1>WELCOME<H1>TO<H1>WORLD<H1>OF <H1>H<H1>T<H1>M<H1>L</H1> </BODY> </HTML> |
Lab Program <!A CSS program that explains bordering and <HTML> <HEAD> <TITLE> BOX AND BORDER <STYLE> </STYLE> </HEAD> <BODY> <div </div><P> <div Just </div><P> <div Just </div><P> <div Just </div><P> <div CSS is </div> </BODY> </HTML> |
Lab Program <!A function that responds to a click anywhere <HTML> <HEAD> <TITLE> Click any where <SCRIPT function ondoClick() { window.alert("Just } </SCRIPT> </HEAD> <BODY bgcolor=tan> <FORM <H1> ERROR TESTING <H3> CLICK ANY WHERE ON THIS DOCUMENT </FORM> </BODY> </HTML> |
Lab Program 16 <!A script that blurs image and slowly un-blurs <HTML> <HEAD> <TITLE> BLUR FILTER <SCRIPT var function start() { img.filters("blur").direction=0; img.filters("blur").strength=1; img.filters("blur").add=true; img1.filters("blur").direction=0; img1.filters("blur").strength=1; img1.filters("blur").add=false; } { if(s==35||s==0) if(s==0) if(s==0) } <H1>BLUR <div <img </div> <div <img </div> </BODY> |
Lab Program <! Use the path control to simulate the <HTML> <HEAD> <TITLE> PATH CONTROL </HEAD> <BODY <MARQUEE id="h" <OBJECT id="oval" <param name="AutoStart" value="1" <param name="Repeat" value="-1" <param name="Duration" value="6" <param name="Bounce" value="1" <param name="Shape" <param name="Target" value="h" </OBJECT> <FORM> <INPUT type=button <INPUT type=button </FORM> </BODY> </HTML> |
Lab Program <! Digital clock in a web page.> <HTML> <HEAD> <TITLE> DIGITAL CLOCK </HEAD> <SCRIPT function start() { window.setInterval("run()",10); } function run() { var hh=d.getHours(); mm=d.getMinutes(); ss=d.getSeconds(); h.innerText=hh+":"+mm+":"+ss } </SCRIPT> <BODY bgcolor=tan <H1> DIGITAL CLOCK <H1 </HTML> |
Lab Program <! Write an ASP program to connect to a <%@Language="VBScript"%> <% Response.Write("<TR>") %> |
0 comments:
Post a Comment