Remove boxes from web search results

Insert the code portions below in JSHeader and onLoad events of a $$SearchTemplateDefault form in your Lotus Notes database.
JavaScript • Lotus Notes View

INSERT IN JSHEADER

function kill_boxes() {
	for( i=0; i<document.images.length ; i++ ) {
		if( document.images[i].src.indexOf('vwicnsr1.gif') != -1) { 
			document.images[i].height= HEIGHT=0 
			document.images[i].width= WIDTH=0
		} //end if

		if( document.images[i].src.indexOf('vwicnsr2.gif') != -1) { 
			document.images[i].height= HEIGHT=0 
			document.images[i].width= WIDTH=0
		} //end if

		if( document.images[i].src.indexOf('vwicnsr3.gif') != -1) { 
			document.images[i].height= HEIGHT=0 
			document.images[i].width= WIDTH=0
		} //end if

		if( document.images[i].src.indexOf('vwicnsr4.gif') != -1) { 
			document.images[i].height= HEIGHT=0 
			document.images[i].width= WIDTH=0
		} //end if

		if( document.images[i].src.indexOf('vwicnsr5.gif') != -1) { 
			document.images[i].height= HEIGHT=0 
			document.images[i].width= WIDTH=0
		} //end if

		if( document.images[i].src.indexOf('vwicnsr6.gif') != -1) { 
			document.images[i].height= HEIGHT=0 
			document.images[i].width= WIDTH=0
		} //end if

		if( document.images[i].src.indexOf('vwicnsr7.gif') != -1) { 
			document.images[i].height= HEIGHT=0 
			document.images[i].width= WIDTH=0
		} //end if

	} // end for
}

INSERT IN onLoad of the $$SeachTemplateDefault form after your $$ViewBody field.

kill_boxes()

Posted by fbrefere001 on Thursday March 25, 2004