70 likes | 229 Views
Lecture 11 Scrolling XHTML elements + a bit on Java Applets. Boriana Koleva Room: C54 Email: bnk@cs.nott.ac.uk. Scrolling elements. In HTML – MARQUEE tag Not supported in XHTML as often not a good feature!
E N D
Lecture 11Scrolling XHTML elements + a bit on Java Applets Boriana Koleva Room: C54 Email: bnk@cs.nott.ac.uk
Scrolling elements • In HTML – MARQUEE tag • Not supported in XHTML as often not a good feature! <MARQUEE behavior="scroll" direction="left" width="100%">YOUR TEXT GOES HERE</MARQUEE> • For image: <MARQUEE behavior="scroll" direction="left" width="100%"><imgsrc="yourimage.gif"></MARQUEE> http://www.cs.nott.ac.uk/~bnk/WPS/marquee.html
Scrolling elements - DHTML • Example DHTML scripts for the showcasing of images on your site • Conveyor Belt slideshow script • scrolls the containing images in a "conveyor belt" fashion http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm • Carousel Slideshow • displays images in a 3D, carousel fashion http://www.dynamicdrive.com/dynamicindex14/carousel.htm
Java Applets • Applets are relatively small Java programs whose execution is triggered by a browser • The purpose of an applet is to provide processing capability and interactivity for XHTML documents through widgets • Applets still found on some web pages, and there is heavier use in intranets, where all browsers can be required to support the latest JVM • Alternative to embedded client-side scripts
Java Applets on the WWW HTTP Server Apache MS IIS Client Mozilla MS Internet Explorer HTTP Java VM in the Client (Browser) Applet XHTML data + Java Applet
Feasibility of Applets • Java has platform independent binaries • WWW is designed to be data neutral • Security is the major issue • Security restrictions applied by browser
Applet and JApplet • java.applet.Applet – the class which provides the standard interface between the applet and the browser environment • GUI with AWT package • JApplet - a class that enables applets to use Swing components • JApplet is a subclass of java.applet.Applet