Image align Example : Image Img : HTML : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP
JavaScript DHTML Home »  HTML   » [  Image Img  ]   
 



Image align Example

Please note that some example is only working under IE or Firefox.

    
<html>
<head>
<script language="JavaScript">
function function1() {
   document.all.myImage.align = "middle";
}
</script>
</head>
<body>
<img id="myImage" src="http://www.java2s.com/style/logo.png" width="74" height="99">
Sample Text
<button onclick="function1();">Align Middle</button>
</body>
</html>

    
      
      
Related examples in the same category
1.  Get the file name specified in the href or src property
2.  Image dynsrc
3.  Low resolution Image src
4.  Image Long Description
5.  Image width Example
6.  Does image download completely
7.  Alternative Information Example
8.  Image 'src' Property
9.  'height' Example
10.  'readyState' Example
11.  'galleryImg' Example
12.  Monitors the load process and the display of picturesHas Download File
13.  Image Animation
14.  Image array
15.  Replace image
16.  An animating image
17.  Mouse in image and out
18.  Scrolling Image
19.  Change the height of an image
20.  Change image
21.  Change image width
22.  Count images in a document
23.  Image Event Handling
24.  Methods and Properties of the Image Object
25.  Testing an Image's align Property
26.  A Scripted Image Object and Rotating Images
27.  Scripting image.complete
28.  Changing Between Still and Motion Images
29.  Simple Image Replacement
30.  Image Error Finder
31.  Image element
32.  Image Roller MachineHas Download File
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.