Buying JS Programmer

Discussion in 'Programming' started by rochow, Mar 30, 2010.

  1. #1
    I have some manual (no framework) JS required to be done.

    There's also consistent ongoing work, both jquery & manual.

    function findimg() {
    	var images,i;
    	images=document.getElementById('services').getElementsByTagName('img');
    	alert(images);
    	for(i=0,image=images[i];i<images.length;i++) {
            var wrapper = document.createElement('span');
            wrapper.setAttribute('class','overlay');
            wrapper.appendChild(image.cloneNode(true));
    		var old = wrapper.innerHTML;
    		var height = image.height-12;
    		var width = image.width-12;
    		wrapper.innerHTML = old + "<span style='height:"+height+"px;width:"+width+"px'></span>";
            image.parentNode.replaceChild(wrapper,image);
    	}
    }
    Code (markup):
    Some code I hacked together. This works for the first image, but not all of them. I dynamically add some wrappers I then style, rather than having them insert wrappers manually (which can't work because the cms editor strips them out).

    There is also this script: http://forums.digitalpoint.com/showthread.php?t=1748471

    Please contact me with your contact details, quote & turnaround for these 2 tasks.
     
    rochow, Mar 30, 2010 IP