naprej
  • css
  • firefox
  • html
  • javascript
  • mootools
  • mysql
  • php
  • web
25/07/2010

MooTools image

An example on how to create an element with Mootools.

<script>
var imageElement = new Element('img',{
'src':'1.jpg',
'alt': 'Mootools image',
'width':70,
'height':70
}).inject($('box'));
</script>
<div id='box'></div>

view demo

Related Posts

MooTools 1.2 Tips, MooTools basics - useful tips, Hide Email with JavaScript - MooTools, Load ajax with google MooTools, MooTools new Element iframe
mootools
  • Copyright © 2009 naprej.com