Hide the relevance boxes in Web search results

This tip describes how to hide the relevance boxes in Web search results.

This tip was submitted to the SearchDomino.com tip library by member Geor Klee. Please let others know how useful it is via the rating scale at the end of the tip. Do you have a useful Lotus Notes, Domino, Workplace or WebSphere tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.


VIEW MEMBER FEEDACK TO THIS TIP

Here's a simple Javascript to hide the gray or white relevance boxes in Web search results.

Put the following code in the onLoad event of that form:

kill_boxes()

Put the following code in the JS-Header section of your $$SearchTemplateDefault form or of any other form you use to display your web search results and voila -- the boxes are gone.

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
}


MEMBER FEEDBACK TO THIS TIP

After doing some research, I found this tip. It was not quite what I wanted to do, but it got me on my way. Add customized relevance pictures to the icons directory on your Domino server and put the following code in the onLoad event of that form:

kill_boxes()

Put the following code in the JavaScript header section of your $$SearchTemplateDefault form or any form you use to display your Web search results and the boxes are replaced.

  
function kill_boxes()
{
for( i=0; i<document.images.length ; i++ ) 
{ if( document.images[i].
src.indexOf('vwicnsr1.gif') != -1) 
{ document.images[i].
src= src="/icons/vwicnsrcus1.gif" 
//your custom icon document.images[i].
height= HEIGHT=11  // the height of your icon, 
domino generates its own height and wide
document.images[i].width= WIDTH=56   
// the width of your icon
} //end if
if( document.images[i].src.indexOf
('vwicnsr2.gif') != -1) 
{ document.images[i].src= 
src="/icons/vwicnsrcus2.gif"
document.images[i].height= 
HEIGHT=11 document.images[i].
width= WIDTH=56 } //end if if
( document.images[i].src.
indexOf('vwicnsr3.gif') != -1) 
{ document.images[i].
src= src="/icons/vwicnsrcus3.gif"
document.images[i].height= HEIGHT=11 
document.images[i].width= 
WIDTH=56 } //end if 
if( document.images[i].src.indexOf
('vwicnsr4.gif') != -1) 
{ document.images[i].src= 
src="/icons/vwicnsrcus4.gif" 
document.images[i].height= 
HEIGHT=11 
document.images[i].width= 
WIDTH=56 } //end if 
if( document.images[i].src.indexOf
('vwicnsr5.gif') != -1) 
{ document.images[i].src= 
src="/icons/vwicnsrcus5.gif"
document.images[i].height= HEIGHT=11 
document.images[i].width= WIDTH=56 } 
//end if 
if( document.images[i].src.indexOf
('vwicnsr6.gif') != -1) 
{ document.images[i].src= 
src="/icons/vwicnsrcus6.gif"
document.images[i].height= 
HEIGHT=11 
document.images[i].width= 
WIDTH=56 } //end if 
if( document.images[i].src.indexOf
('vwicnsr7.gif') != -1) 
{ document.images[i].src= 
src="/icons/vwicnsrcus7.gif"
document.images[i].height= 
HEIGHT=11 
document.images[i].width= WIDTH=56 } 
//end if } // end for }

—Wim B.

Do you have comments on this tip? Let us know.

This was first published in August 2002

Dig deeper on Domino Resources

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.UK

Close