Skip to content
This repository has been archived by the owner on Jan 10, 2019. It is now read-only.

Commit

Permalink
removed rollover completly on bing
Browse files Browse the repository at this point in the history
  • Loading branch information
mrshu committed May 26, 2012
1 parent 4937f76 commit e13e152
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion css/bing.css
Expand Up @@ -112,7 +112,7 @@
padding-right: 5px;
width: 16px;
height: 16px;
margin-top: -2px;
margin-top: -1px;
}


Expand Down
22 changes: 11 additions & 11 deletions js/bing.js
Expand Up @@ -214,18 +214,18 @@ function displaySummary(res, query) {

if (i < 2) {
var first = (i === 0)? 'first_category': '';
first_category += '<div class="' + cls + ' '+ first +'" onmouseover="this.className+=\' ddg_selected\'" onmouseout="this.className=this.className.replace(\' ddg_selected\',\'\')" onclick="window.location.href=this.firstChild.href">' +
first_category += '<div class="' + cls + ' '+ first +'" >' +
link +
'</div>';
} else {
hidden_categories += '<div class="' + cls + '" onmouseover="this.className+=\' ddg_selected\'" onmouseout="this.className=this.className.replace(\' ddg_selected\',\'\')" onclick="window.location.href=this.firstChild.href">' +
hidden_categories += '<div class="' + cls + '" >' +
link +
'</div>';
}
}

if (hidden_categories !== '') {
hidden_categories = '<div class="ddg_zeroclick_more" onmouseover="this.className+=\' ddg_selected\'" onmouseout="this.className=\'ddg_zeroclick_more\'" onclick="this.firstChild.onclick();this.className=\'\';this.onmouseover=function(){}">' +
hidden_categories = '<div class="ddg_zeroclick_more">' +
'<a href="javascript:;" onclick="' +
"this.parentElement.style.display='none';" +
"this.parentElement.nextElementSibling.style.display='block'" +
Expand Down Expand Up @@ -327,12 +327,12 @@ function displayDisambiguation(res, query){
'<div class="icon_disambig">' +
'<img src="' + topics[j]['Icon']['URL'] +'" />' +
'</div>' +
'<div class="ddg_zeroclick_disambig" onmouseover="this.className+=\' ddg_selected\'" onmouseout="this.className=this.className.replace(\' ddg_selected\',\'\')" onclick="window.location.href=this.firstChild.href">' +
'<div class="ddg_zeroclick_disambig" >' +
topics[j]['Result'] +
'</div>' +
'</div>';
}
others += '<div class="disambig_more" onmouseover="this.className+=\' ddg_selected\'" onmouseout="this.className=\'disambig_more\'" onclick="this.firstChild.onclick();this.className=\'disambig_more\';this.onmouseover=function(){}">' +
others += '<div class="disambig_more" >' +
'<a href="javascript:;" onclick="' +
"this.parentElement.nextElementSibling.style.display='block';this.onmouseover=null;" +
"this.parentElement.innerHTML = '" + res['RelatedTopics'][i]['Name'] + "<hr>';" +
Expand All @@ -351,7 +351,7 @@ function displayDisambiguation(res, query){
'<div class="icon_disambig">' +
'<img src="' + res['RelatedTopics'][i]['Icon']['URL'] +'" />' +
'</div>' +
'<div class="ddg_zeroclick_disambig" onmouseover="this.className+=\' ddg_selected\'" onmouseout="this.className=this.className.replace(\' ddg_selected\',\'\')" onclick="window.location.href=this.firstChild.href">' +
'<div class="ddg_zeroclick_disambig" >' +
res['RelatedTopics'][i]['Result'] +
'</div>' +
'</div>';
Expand All @@ -360,7 +360,7 @@ function displayDisambiguation(res, query){
'<div class="icon_disambig">' +
'<img src="' + res['RelatedTopics'][i]['Icon']['URL'] +'" />' +
'</div>' +
'<div class="ddg_zeroclick_disambig" onmouseover="this.className+=\' ddg_selected\'" onmouseout="this.className=this.className.replace(\' ddg_selected\',\'\')" onclick="window.location.href=this.firstChild.href">' +
'<div class="ddg_zeroclick_disambig" >' +
res['RelatedTopics'][i]['Result'] +
'</div>' +
'</div>';
Expand All @@ -369,7 +369,7 @@ function displayDisambiguation(res, query){
}

if (hidden_disambigs!== '') {
hidden_disambigs = '<div class="disambig_more" onmouseover="this.className+=\' ddg_selected\'" onmouseout="this.className=this.className.replace(\' ddg_selected\',\'\')" onclick="this.firstChild.onclick();this.className=\'disambig_more\';this.onmouseover=function(){}">' +
hidden_disambigs = '<div class="disambig_more" >' +
'<a href="javascript:;" onclick="' +
"this.parentElement.style.display='none';" +
"this.parentElement.nextElementSibling.style.display='block'" +
Expand Down Expand Up @@ -426,7 +426,7 @@ function displayCategory(res, query){
console.log(res['RelatedTopics'][i]['Result']);

if (i <= 2) {
categories += '<div class="wrapper" onmouseover="this.className+=\' ddg_selected\'" onmouseout="this.className=this.className.replace(\' ddg_selected\',\'\')" onclick="window.location.href=this.lastChild.firstChild.href;">' +
categories += '<div class="wrapper" >' +
'<div class="icon_category">' +
'<img src="' + res['RelatedTopics'][i]['Icon']['URL'] +'" />' +
'</div>' +
Expand All @@ -435,7 +435,7 @@ function displayCategory(res, query){
'</div>' +
'</div>';
} else {
hidden_categories += '<div class="wrapper" onmouseover="this.className+=\' ddg_selected\'" onmouseout="this.className=this.className.replace(\' ddg_selected\',\'\')" onclick="window.location.href=this.lastChild.firstChild.href;">' +
hidden_categories += '<div class="wrapper" >' +
'<div class="icon_category">' +
'<img src="' + res['RelatedTopics'][i]['Icon']['URL'] +'" />' +
'</div>' +
Expand All @@ -450,7 +450,7 @@ function displayCategory(res, query){
}

if (hidden_categories !== '') {
hidden_categories = '<div class="category_more" onmouseover="this.className+=\' ddg_selected\'" onmouseout="this.className=this.className.replace(\' ddg_selected\',\'\')" onclick="this.firstChild.onclick();this.className=\'category_more\';this.onmouseover=function(){}">' +
hidden_categories = '<div class="category_more" >' +
'<a href="javascript:;" onclick="' +
"this.parentElement.style.display='none';" +
"this.parentElement.nextElementSibling.style.display='block'" +
Expand Down

0 comments on commit e13e152

Please sign in to comment.