January 2014 - Mesh Software

Softwares | Programms | Mobile Apps | Networking Projects

test

Friday, 3 January 2014

Marquee Tag with upward and rightside direction

January 03, 2014 0
Marquee Tag with upward and rightside direction
Marquee Tag with Upward And Rightside Direction

Code:
 <html>
<head>
</head>
<body>

<!--Left To Right Marquee  -->
<FONT SIZE="4" FACE="courier" COLOR=Red>
<marquee behavior="scroll" direction="left">
 HEC on Thursday 23rd February announced rankings of Pakistani Universities,
  in which  University climbs up on 3rd position in category of Business Administration.
 </marquee>

<!--Left To UP word Marquee  -->
<form>
<marquee behavior="scroll" direction="up">
 HEC on Thursday 23rd February announced rankings of Pakistani Universities,
 <br> in which  University climbs up on 3rd position in category of Business
 <br> Administration.
 </marquee>
</form>
 </body>
</html>

 Screen SHot:


Javascript Picturebox Array

January 03, 2014 0
Javascript Picturebox Array
Javascript Picturebox Array

Code:
<html>
<head>
<title>Javascript With Pictures waqeeh ul hasan</title>
<script>

var description = new Array("Picture 1", "Picture 2", "Picture 3", "Picture 4");
var pictures = new Array(3);
var counter = 0;


function initialize(){
  // sets up the array with some startin values
  // Andy Harris
  pictures[0] = new Image(50, 50);
  pictures[0].src = "images/1.jpg";
  pictures[1] = new Image(50, 50);
  pictures[1].src = "images/2.jpg";
  pictures[2] = new Image(50, 50);
  pictures[2].src = "images/3.jpg";
  pictures[3] = new Image(50, 50);
  pictures[3].src = "images/1.jpg";
   pictures[4] = new Image(50, 50);
  pictures[4].src = "images/2.jpg";

} // end initialize

function upDate(){
  //increments the counter and shows the next description
  counter++;
  if (counter > 4){
    counter = 0;
  } // end if
  document.imgDisplay.src = pictures[counter].src;
  document.myForm.txtDescription.value = description[counter];
} // end upDate

</script>
</head>

<body onLoad = "initialize()">
<center>
<h1>Javascript With Pictures<hr></h1>
<form name = "myForm">
<img src = "images/1.jpg"
     name = "imgDisplay"
     height = 300
     width = 300>
<br>

<input type = "text"
       name = "txtDescription"
       value = " Picture 01">
<br>
<input type = "button"
       value = "Next"
       onClick = "upDate()">
     
 </form>
</center>
<hr>
</body>
</html>

 Screen Shot: