//get an instance of the object
var my = document.getElementById("div_name");
//get the width of the object
var my_width = parseInt(my.style.width); // removes the "px" at the end
//set the new width
my.style.width = (my_width + 5) +"px";

et voila
Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (1 + 2) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 02.01.2009
Views: 816
Item date: 09.03.2009
Views: 1255
Item date: 30.10.2009
Views: 301
Item date: 22.08.2009
Views: 1711
Item date: 22.08.2009
Views: 173
Item date: 15.05.2009
Views: 809
Item date: 10.04.2009
Views: 1816
Item date: 07.03.2009
Views: 786
Item date: 23.08.2009
Views: 182
Item date: 01.01.2009
Views: 875