Posts

Showing posts from January, 2014

Marquee Tag with upward and rightside direction

Image
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

Image
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 = pi…