dude anyone knw how to create to assign height and width dynamically in web page for images? like this site http://muslider.musings.it/

Hi,

If what you mean is how you can dynamically change the image size with javascript, try something like this:

function changeImgSize(id,width,height){
    var em = document.getElementById(id);
    if (em && em.style){
        em.style.width=width;
        em.style.height=height;
    }
}

Which you would call with something like changeImgSize('imgID,400,400').

Traevel

commented: thanx alot Traevel +1