IE BHO没有显示图像 [英] IE BHO not showing images

查看:114
本文介绍了IE BHO没有显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在为IE开发BHO,而我的BHO功能是匹配我的词典列表中的单词并在网站上搜索并高亮显示那些匹配的单词,并且在mouserover之后它在弹出窗口中显示描述。



到这里它工作正常,但我的问题是它不允许网站上的图像,我尝试了一切。请帮我解决这个问题。



我的方法搜索和突出显示如下



Hi All,
I am developing BHO for IE and my BHO having functionality is to match word from my dictionary list and search on website and hightlight those matched words and after mouserover it display description in popup.

Till here it is working fine, but my problem is that it doesnot allow the images on website, i tried everything. please help me out to solve this issue.

My method to Search and highlight is as below

private string HighlightSearchKeyWords(string TextToHighlight, string TextAsDiscription, string text)
        {
            string ProcessedText = text;
            var pattern = keywordPattern(TextToHighlight);
<pre>string TagExpression = "<script.*/*>|</script>|<.[^>]*>";
            Regex reg = new Regex("(" + TagExpression + ")|(" + pattern + ")", RegexOptions.IgnoreCase | RegexOptions.Multiline);
<pre>MatchReplacement = "<span id='" + TextToHighlight.ToString() + "' style='background-color:yellow;font-weight:bold;display:inline;float:none;' onmouseover='javascript:SaveMouseOVerWords(this,this.id)' onmouseout='javascript:HideContent()' mytitle='" + TextAsDiscription + "'>$1</span>";//onmouseout='javascript:HideContent()' 
            ProcessedText = reg.Replace(ProcessedText, new MatchEvaluator(MatchEval));
            return ProcessedText;
}



任何帮助表示赞赏。



谢谢

AP


Any help is appreciated.

Thanks
AP

推荐答案

1< / span>; // onmouseout ='javascript:HideContent()'
ProcessedText = reg.Replace(ProcessedText, new MatchEvaluator(MatchEval)) ;
返回 ProcessedText;
}
1</span>";//onmouseout='javascript:HideContent()' ProcessedText = reg.Replace(ProcessedText, new MatchEvaluator(MatchEval)); return ProcessedText; }



感谢所有帮助。



谢谢

AP


Any help is appreciated.

Thanks
AP


这篇关于IE BHO没有显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆