WO2017016114A1 - 一种搜索结果页的背景实现方法、装置、设备及存储介质 - Google Patents

一种搜索结果页的背景实现方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2017016114A1
WO2017016114A1 PCT/CN2015/095779 CN2015095779W WO2017016114A1 WO 2017016114 A1 WO2017016114 A1 WO 2017016114A1 CN 2015095779 W CN2015095779 W CN 2015095779W WO 2017016114 A1 WO2017016114 A1 WO 2017016114A1
Authority
WO
WIPO (PCT)
Prior art keywords
background
search result
result page
search
page
Prior art date
Application number
PCT/CN2015/095779
Other languages
English (en)
French (fr)
Inventor
赵雷
Original Assignee
百度在线网络技术(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 百度在线网络技术(北京)有限公司 filed Critical 百度在线网络技术(北京)有限公司
Publication of WO2017016114A1 publication Critical patent/WO2017016114A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Definitions

  • the present invention relates to the field of computer application technologies, and in particular, to a background, method, device, and storage medium for implementing a search result page.
  • this background setting can only set the background of the browser.
  • the browser provides a button for the background setting on the initial interface (the default interface for opening the browser), through which the user provides from the browser. Select one of the background images as the background for the browser.
  • this method can only set the background of the browser.
  • the displayed page is still a blank background. For example, when a user opens a search page through a browser and searches for a keyword, the search result page is still a blank background, as shown in FIG.
  • the present invention provides a method and apparatus for implementing a background of a search result page to facilitate background personalization of a search result page.
  • the present invention provides a background implementation method for a search result page, the method comprising:
  • the determining whether to trigger the background setting of the search result page comprises:
  • the background setting function provided on the search result page is triggered.
  • the determining the background image set for the search result page includes:
  • a search result page has been set for the user identification.
  • the determining the background picture set for the search result page includes:
  • the determining whether to trigger the background of the search result page Settings include:
  • the determining a background image set for the search result page includes:
  • the background of the determined background picture as the search result page includes:
  • the background image is used to generate a layer located below the layer where the search result page is located, and the layer where the search result page is located is set to be transparent.
  • the present invention also provides a background implementation device for a search result page, the device comprising:
  • a trigger determining unit configured to determine whether to trigger a background setting of the search result page
  • the background setting unit is configured to determine, when the determination result of the trigger determination unit is YES, a background image set for the search result page, and use the determined background image as a background of the search result page.
  • the trigger determining unit is specifically configured to:
  • the trigger determining unit is further used when searching When the preset background setting gesture is captured on the result page or the background setting button on the search result page is clicked, it is determined that the background setting function provided on the search result page is triggered.
  • the background determining unit if the background setting function provided on the search result page is triggered, provides one or more background pictures for the user to select, or prompts the user to select and upload a local picture as a background. a picture; determining and saving a background picture selected by the user as a background picture set for the search result page, and setting a search result page for the user identification.
  • the background setting unit determines the background picture saved for the user as the background picture set for the search result page.
  • the trigger determining unit is specifically configured to determine whether a search keyword corresponding to the search result page has a preset search result page background image, and if yes, determine a background setting that triggers the search result page.
  • the background setting unit is specifically configured to select a background image from the search result background image corresponding to the search keyword as the background image set for the search result page.
  • the background setting unit when used as the background of the search result page, is specifically configured to:
  • the background image is used to generate a layer located below the layer where the search result page is located, and the layer where the search result page is located is set to be transparent.
  • FIG. 1 is a schematic diagram of a background setting of a browser in the prior art
  • FIG. 2 is a schematic diagram of a search result page in the prior art
  • FIG. 3 is a flowchart of a main method according to an embodiment of the present invention.
  • FIG. 5 is a system architecture diagram based on an embodiment of the present invention.
  • 6a is a schematic diagram of a search structure page providing a background setting function according to an embodiment of the present invention.
  • 6b is a schematic diagram of a user selecting a background picture according to an embodiment of the present invention.
  • FIG. 6c is another schematic diagram of a user selecting a background picture according to an embodiment of the present disclosure.
  • FIG. 7 is a flowchart of a method according to Embodiment 2 of the present invention.
  • FIG. 8 is a schematic diagram of a background setting of a search keyword triggered search result page according to an embodiment of the present invention.
  • FIG. 9 is a structural diagram of a device according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a main method according to an embodiment of the present invention. As shown in FIG. 3, the method may include the following steps:
  • 301 it is determined whether the background setting of the search result page is triggered, and if so, 302 is performed; otherwise, 303 is performed.
  • the background setting function of the search result page is triggered by providing a background setting function on the search result page and depending on the user, or the background setting function of the search result page is triggered by searching for a keyword, etc., which will be described in detail later through specific embodiments.
  • a background picture set for the search result page is determined, and the determined background picture is used as the background of the search result page, and the flow is ended.
  • the manner of determining the background image set for the search result page is different according to the manner in which the background setting of the search result page is triggered.
  • One is to determine the background image according to the user's selection, and the other may be determined according to the search keyword.
  • Related background images are to determine the background image according to the user's selection, and the other may be determined according to the search keyword.
  • the manner in which the background image is used as the background of the search result page may include but is not limited to the following two types:
  • the other is to use the background image to generate a layer below the layer where the search results page is located, and set the layer where the search result page is transparent.
  • the search result page is not set, and the search result page is a blank background.
  • the background setting of the search result page is not triggered, it can be processed in the manner of the search result page in the prior art, for example, the search result page still adopts a blank background.
  • FIG. 4 is a flowchart of a method according to Embodiment 1 of the present invention.
  • a B/S (browser/server) architecture as shown in FIG. 5 is taken as an example, wherein the browser is a smart phone terminal.
  • the server is a search server.
  • the invention is not limited to this architecture, but can also be applied to a C/S (client/server) architecture.
  • the terminal where the terminal is located may also be other mobile terminals such as a tablet computer or a smart TV, and may also be a fixed terminal such as a PC.
  • the method can include the following steps:
  • the search server when the search server returns a search result page to the browser, it determines whether the search result page for the search for the search has been set, and if so, executes 402; otherwise, executes 404.
  • the search server will set the search result page for the user identification, and save the background picture information set by the user.
  • the user who performs the search can be represented by, for example, account information, terminal identification, and the like. After that, when the search server returns a search result page to the browser, it can directly determine that the search result page background setting function is triggered.
  • a background picture saved for the user performing the search is determined.
  • the background image set by the user before the background setting is actually used as the background image of the current search result page.
  • the url of the background image is included in the css background of the search result page, and the process ends.
  • the css of the page is a computer language used to describe the file styles such as HTML or XML.
  • the background-image attribute exists in the css, the url of the background image is included in the background-image attribute, and the background is set.
  • the browser parses the css of the page, and obtains the url of the background image from the css background, and downloads the background image according to the url and renders it as the background of the search result page.
  • This step can also be used in another way, for example: using the background image to generate a location Search for the layer below the layer where the results page is located, and set the layer where the search results page is transparent.
  • the browser loads the search result page, it will load two layers together, the lower layer is the background image, and the layer where the search result page is located is a transparent attribute, so that the user sees The search results page is centered on the background image.
  • a search result page is returned to the browser, and a background image setting function is provided in the search result page.
  • the search result page returned to the browser can be a blank background in the prior art, but the background image setting function can be provided in the search result page.
  • a background picture setting button can be provided in the search results page, such as the "Background Settings" button shown in Figure 6a. When the user clicks this button, more than one background image is provided to the user for selection by the user. When the background image is provided, multiple background images can be simultaneously provided in one interface for the user to select, as shown in FIG. 6b.
  • a background image may also be provided in an interface, for example, an image of a search result page with a background image as a background is provided in an interface, and the user can change the effect of the search result of the background image by using a sliding gesture, as shown in the figure. As shown in 6c, if the background image is selected, click the OK button.
  • some gestures capable of triggering background image setting such as long press on the search result page, sliding the search result page left and right, etc., can trigger the background image.
  • Set the function can trigger the preset gesture for setting the background image.
  • the preset gesture for setting the background image needs to be distinguished from the gesture for triggering the existing function on the search result page, thereby avoiding confusion.
  • the background picture selected by the user is determined and saved, and the search result page has been set for the user identification, and the process proceeds to execution 403.
  • the purpose of saving the background picture selected by the user and setting the search result page for the user identification is to enable the setting of the search result page by the user to be applied in the subsequently launched search result page.
  • the landscape picture can be bound to the user's account, and the search result page is set for the user identification, so that if the user subsequently uses the search engine, the background will be returned.
  • the search results page for the image as a background.
  • FIG. 7 is a flowchart of a method according to Embodiment 2 of the present invention. As shown in FIG. 7, the method may include the following steps:
  • a search keyword input by the user is obtained.
  • search result page of the blank background is returned according to the manner in the prior art, or the flow shown in FIG. 4 is continued.
  • the search result page background images may be set in advance for some search keywords, and the search keywords may be search keywords such as popular characters, landscapes, animations, film and television dramas, and festivals.
  • a background picture is selected from the search result background picture corresponding to the search keyword.
  • a search keyword may be preset to correspond to a background image, or a search keyword may be set corresponding to multiple background images. If a plurality of background pictures are corresponding, one background picture can be selected as the background of the search result page. When making a selection, you can choose randomly A background image, you can also choose a background image based on the popularity of the background image. The popularity of the background image may be determined according to the number of clicks, the number of views, and the like of the background image in the image search.
  • the url of the background image is included in the css background of the search result page, and the process ends.
  • the css of the page is a computer language used to describe the file styles such as HTML or XML.
  • the background-image attribute exists in the css, the url of the background image is included in the background-image attribute, and the background is set.
  • the browser parses the css of the page, and obtains the url of the background image from the css background, and downloads the background image according to the url and renders it as the background of the search result page.
  • This step can also adopt another method, for example, using the background image to generate a layer below the layer where the search result page is located, and setting the layer where the search result page is transparent.
  • the browser loads the search result page, it will load two layers together, the lower layer is the background image, and the layer where the search result page is located is a transparent attribute, so that the user sees The search results page is centered on the background image.
  • the background image corresponding to the search keyword may be set in advance, for example, a photo of Li Yifeng's publicity photo is taken as a background. image. Then, when returning to the search result page corresponding to "Li Yifeng", one of Li Yifeng's promotional photos can be displayed as the background image of the search result page.
  • the search key The word belongs to the popular search keyword of the holiday class, and the background image corresponding to the search keyword is set in advance, and when the search result page corresponding to the "Dragon Boat Festival" is returned, the background image corresponding to the search keyword set in advance may be set. Displayed as the background of the search result page, as shown in FIG. It can be seen that this method is more interesting and more personalized.
  • FIG. 9 is a structural diagram of a device according to an embodiment of the present invention.
  • the device may be disposed on a search server. As shown in FIG. 9, the device may include: a trigger determination unit 00 and a background setting unit 10.
  • the trigger determination unit 00 is responsible for determining whether to trigger the background setting of the search result page.
  • the background setting unit 10 is responsible for determining the background picture set for the search result page when the determination result of the trigger determination unit 00 is YES, and using the determined background picture as the background of the search result page.
  • the trigger determination unit 00 may include, but is not limited to, the following situations when determining whether to trigger the background setting of the search result page:
  • the trigger determination unit 00 determines the background setting that triggers the search result page.
  • a user setting button such as a background setting button can be provided on the search result page, and when the background setting button is clicked, it is determined that the background setting function is triggered.
  • a gesture that can trigger the background setting function that is, a background setting gesture, is set in advance, and when the preset background setting gesture is captured on the search result page, it is determined that the background setting function provided on the search result page is triggered.
  • the background determining unit 10 may provide one or more background pictures for the user to select, or prompt the user to select and upload a local picture as the background picture. Then determine and save the background image selected by the user as the background image set for the search result page, and The User Identification Search Results page is set.
  • the second case judging whether the search result page for the user identification for the search has been set, and if so, the trigger determination unit 00 determines the background setting for triggering the search result page.
  • the background setting unit 10 determines the background image saved for the user as the background set for the search result page. image.
  • the third case determining whether the search keyword corresponding to the search result page has a preset search result page background image, and if so, the trigger determination unit 00 determines the background setting of triggering the search result page.
  • the background setting unit 10 may select a background picture from the search result background picture corresponding to the search keyword as the background picture set for the search result page.
  • the background setting unit 10 may adopt the following two methods when using the determined background picture as the background of the search result page:
  • the url of the determined background image is included in the cascading style sheet css background of the search results page.
  • the url of the background image may be included in the background-image attribute of the search result page css, and the background-position attribute, the background-repeat attribute, and the like may be set.
  • the browser loads the search result page, it parses the css of the page, and obtains the url of the background image from the css background, downloads the background image according to the url and renders it as the background of the search result page.
  • the second way use the background image to generate a layer below the layer where the search results page is located, and set the layer where the search results page is transparent.
  • the browser loads the search results page, it will load two layers together.
  • the lower layer is the background image
  • the layer where the search result page is located is a transparent attribute, so that the user sees the search result.
  • Page with background The film is the background.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division, and the actual implementation may have another division manner.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .

Abstract

本发明提供了一种搜索结果页的背景实现方法、装置、设备及存储介质,其中方法包括:判断是否触发搜索结果页的背景设置;如果是,确定针对搜索结果页设置的背景图片,将确定的背景图片作为搜索结果页的背景。通过本发明能够实现搜索结果页的背景设置,使得搜索结果页更加个性化和富有趣味性,提高用户体验。

Description

一种搜索结果页的背景实现方法、装置、设备及存储介质
本申请要求了申请日为2015年07月29日,申请号为201510453755.1发明名称为“一种搜索结果页的背景实现方法和装置”的中国专利申请的优先权。
技术领域
本发明涉及计算机应用技术领域,特别涉及一种搜索结果页的背景实现方法、装置、设备及存储介质。
背景技术
随着计算机技术的不断发展,人们越来越多的依赖浏览器或APP(应用)等工具通过网络来获取信息。除此之外,人们对于展现形式的趣味性、个性化等的要求也越来越高。针对于此,逐渐出现了诸如设置浏览器背景,设置APP背景等技术。然而,这种背景设置方式仅仅能够设置浏览器的背景,如图1中所示,浏览器在初始界面(打开浏览器的默认界面)上提供背景设置的按钮,用户通过该按钮从浏览器提供的背景图片中选择一个作为浏览器的背景。然而,这种方式仅仅能够进行浏览器背景的设置,当用户通过浏览器打开具体页面时,展现的页面仍然是空白背景。例如,当用户通过浏览器打开搜索页面并进行关键词的搜索时,搜索结果页仍然是空白背景,如图2所示。
发明内容
有鉴于此,本发明提供了一种搜索结果页的背景实现的方法和装置,以便于实现搜索结果页的背景个性化设置。
具体技术方案如下:
本发明提供了一种搜索结果页的背景实现方法,该方法包括:
判断是否触发搜索结果页的背景设置;
如果是,确定针对搜索结果页设置的背景图片,将确定的背景图片作为搜索结果页的背景。
根据本发明一优选实施方式,所述判断是否触发搜索结果页的背景设置包括:
当搜索结果页上提供的背景设置功能被触发时,确定触发搜索结果页的背景设置;或者,
判断是否针对进行搜索的用户标识搜索结果页已设置,如果是,则确定触发搜索结果页的背景设置。
根据本发明一优选实施方式,当在搜索结果页上捕捉到预设的背景设置手势或者搜索结果页上的背景设置按钮被点击时,搜索结果页上提供的背景设置功能被触发。
根据本发明一优选实施方式,如果搜索结果页上提供的背景设置功能被触发,则所述确定针对搜索结果页设置的背景图片包括:
提供一个以上的背景图片供用户选择,或者提示用户选择并上传本地的图片作为背景图片;
确定并保存用户选择的背景图片;
针对所述用户标识搜索结果页已设置。
根据本发明一优选实施方式,如果针对进行搜索的用户标识搜索结果页已设置,则所述确定针对搜索结果页设置的背景图片包括:
确定针对所述用户保存的背景图片。
根据本发明一优选实施方式,所述判断是否触发搜索结果页的背景 设置包括:
判断搜索结果页对应的搜索关键词是否存在预设的搜索结果页背景图片,如果是,则确定触发搜索结果页的背景设置。
根据本发明一优选实施方式,所述确定针对搜索结果页设置的背景图片包括:
从所述搜索关键词对应的搜索结果背景图片中选择一个背景图片。
根据本发明一优选实施方式,所述将确定的背景图片作为搜索结果页的背景包括:
将确定的背景图片的url包含在所述搜索结果页的级联样式表css背景中;或者,
利用所述背景图片生成一个位于所述搜索结果页所在图层之下的图层,并设置所述搜索结果页所在图层透明。
本发明还提供了一种搜索结果页的背景实现装置,该装置包括:
触发判断单元,用于判断是否触发搜索结果页的背景设置;
背景设置单元,用于在所述触发判断单元的判断结果为是时,确定针对搜索结果页设置的背景图片,将确定的背景图片作为搜索结果页的背景。
根据本发明一优选实施方式,所述触发判断单元,具体用于:
当搜索结果页上提供的背景设置功能被触发时,确定触发搜索结果页的背景设置;或者,
判断是否针对进行搜索的用户标识搜索结果页已设置,如果是,则确定触发搜索结果页的背景设置。
根据本发明一优选实施方式,所述触发判断单元,还用于当在搜索 结果页上捕捉到预设的背景设置手势或者搜索结果页上的背景设置按钮被点击时,确定搜索结果页上提供的背景设置功能被触发。
根据本发明一优选实施方式,如果所述搜索结果页上提供的背景设置功能被触发,则所述背景确定单元提供一个以上的背景图片供用户选择,或者提示用户选择并上传本地的图片作为背景图片;确定并保存用户选择的背景图片作为针对搜索结果页设置的背景图片,并针对所述用户标识搜索结果页已设置。
根据本发明一优选实施方式,如果针对进行搜索的用户标识搜索结果页已设置,则所述背景设置单元确定针对所述用户保存的背景图片作为针对搜索结果页设置的背景图片。
根据本发明一优选实施方式,所述触发判断单元,具体用于判断搜索结果页对应的搜索关键词是否存在预设的搜索结果页背景图片,如果是,则确定触发搜索结果页的背景设置。
根据本发明一优选实施方式,所述背景设置单元,具体用于从所述搜索关键词对应的搜索结果背景图片中选择一个背景图片,作为所述针对搜索结果页设置的背景图片。
根据本发明一优选实施方式,所述背景设置单元在将确定的背景图片作为搜索结果页的背景时,具体用于:
将确定的背景图片的url包含在所述搜索结果页的级联样式表css背景中;或者,
利用所述背景图片生成一个位于所述搜索结果页所在图层之下的图层,并设置所述搜索结果页所在图层透明。
由以上技术方案可以看出,通过本发明能够实现搜索结果页的背景 设置,使得搜索结果页更加个性化和富有趣味性,提高用户体验。
附图说明
图1为现有技术中浏览器背景设置的示意图;
图2为现有技术中搜索结果页的示意图;
图3为本发明实施例提供的主要方法流程图;
图4为本发明实施例一提供的方法流程图;
图5为本发明实施例所基于的系统架构图;
图6a为本发明实施例提供的一种提供背景设置功能的搜索结构页示意图;
图6b为本发明实施例提供的用户选择背景图片的示意图;
图6c为本发明实施例提供的用户选择背景图片的另一示意图;
图7为本发明实施例二提供的方法流程图;
图8为本发明实施例提供的一个搜索关键词触发搜索结果页背景设置的效果图;
图9为本发明实施例提供的装置结构图。
具体实施方式
为了使本发明的目的、技术方案和优点更加清楚,下面结合附图和具体实施例对本发明进行详细描述。
图3为本发明实施例提供的主要方法流程图,如图3中所示,该方法可以包括以下步骤:
在301中,判断是否触发搜索结果页的背景设置,如果是,则执行302;否则,执行303。
在本发明中,触发搜索结果页的背景设置方式可以存在多种,例如, 通过在搜索结果页上提供背景设置功能并依赖用户触发该功能,或者通过搜索关键词触发搜索结果页的背景设置功能等,后续将通过具体实施例进行详细描述。
在302中,确定针对搜索结果页设置的背景图片,将确定的背景图片作为搜索结果页的背景,结束流程。
根据触发搜索结果页的背景设置的方式不同,确定针对搜索结果页设置的背景图片的方式也不同,一种是根据用户的选择来确定背景图片,另一种可以是根据搜索关键词来确定与其相关的背景图片。
在确定出背景图片后,将该背景图片作为搜索结果页的背景的方式可以包括但不限于以下两种:
一种是将确定的背景图片的url地址包含在搜索结果页的css(Cascading Style Sheets)背景中。
另一种是利用该背景图片生成一个位于搜索结果页所在图层之下的图层,并设置搜索结果页所在图层透明。
后续将通过具体实施例对本步骤进行详细描述。
在303中,不进行搜索结果页的设置,搜索结果页为空白背景。
如果没有触发搜索结果页的背景设置,则可以按照现有技术中对搜索结果页中的方式进行处理,例如搜索结果页仍采用空白背景。
实施例一、
图4为本发明实施例一提供的方法流程图,在本发明实施例中,均以如图5中所示的B/S(浏览器/服务器)架构为例,其中浏览器以智能手机终端中的浏览器为例,服务器为搜索服务器。当然本发明并不限于该架构,也可以应用于C/S(客户端/服务器)架构。另外浏览器或客户 端所在的终端也可以是诸如平板电脑、智能电视等其他移动终端,还可以是PC等固定终端。如图4中所示,该方法可以包括以下步骤:
在401中,搜索服务器在向浏览器返回搜索结果页时,判断是否针对进行搜索的用户标识搜索结果页已设置,如果是,执行402;否则,执行404。
在本实施例中,如果进行搜索的用户之前设置过搜索结果页背景,则搜索服务器会针对该用户标识搜索结果页已设置,并保存该用户设置的背景图片信息。其中进行搜索的用户可以采用诸如账户信息、终端标识等进行表示。之后,在搜索服务器向浏览器返回搜索结果页时,就能够直接确定触发了搜索结果页背景设置功能。
在402中,确定针对该进行搜索的用户保存的背景图片。
在本步骤中,实际上是将该用户之前在进行背景设置时设置的背景图片作为本次搜索结果页的背景图片。
在403中,将该背景图片的url包含在搜索结果页的css背景中,结束本次流程。
页面的css是用于描述HTML或XML等文件样式的计算机语言,其中在css中存在background-image(背景图片)属性,将背景图片的url包含在该background-image属性中,并设置好background-position(背景位置)属性、background-repeat属性等。
这样,当浏览器在加载搜索结果页时,会对页面的css进行解析,并从css背景之中获取背景图片的url,根据该url下载背景图片并渲染为搜索结果页的背景。
本步骤还可以采用另外的方式,例如:利用背景图片生成一个位于 搜索结果页所在图层之下的图层,并设置搜索结果页所在图层透明。这样,当浏览器在加载搜索结果页时,会一并加载两个图层,低下的图层为背景图片,搜索结果页所在的图层为透明属性,这样对于用户而言,看到的就是搜索结果页以背景图片为背景。
在404中,向浏览器返回搜索结果页,在该搜索结果页中提供背景图片设置功能。
如果进行搜索的用户尚未进行搜索结果页的背景图片设置,则向浏览器返回的搜索结果页可以采用现有技术中的方式为空白背景,只是在搜索结果页中可以提供背景图片设置功能。例如可以在搜索结果页中提供背景图片设置按钮,如图6a中所示的“背景设置”按钮。当用户点击此按钮时,向用户提供一个以上的背景图片供用户选择,在提供背景图片时,可以在一个界面中同时提供多个背景图片供用户选择,如图6b中所示。也可以一个界面中提供一个背景图片,例如在一个界面中提供以某一个背景图片为背景的搜索结果页效果图,用户可以通过滑动手势来更换不同背景图片为背景的搜索结果效果图,如图6c中所示,如果选定背景图片,则点击确认按钮。
除了上述的在搜索结果页上提供背景图片设置按钮之外,还可以预先设置一些能够触发背景图片设置的手势,例如长按搜索结果页、左右滑动搜索结果页等手势,就能够触发背景图片的设置功能。但需要注意的是,预设的触发背景图片设置的手势需要与在搜索结果页上触发已有功能的手势相区别,从而避免造成功能混淆。
另外,也可以开放权限给用户,以便于用户能够选择并上传符合要求的本地图片作为设置的背景图片。
在405中,确定并保存用户选择的背景图片,针对该用户标识搜索结果页已设置,转至执行403。
这里,保存用户选择的背景图片且针对该用户标识搜索结果页已设置的目的,是为了使得该用户对搜索结果页的设置能够在后续发起的搜索结果页中得到应用。假设用户选择了一副风景图片作为背景,那么该风景图片就可以与该用户的账户进行绑定,并针对该用户标识搜索结果页已设置,这样如果用户后续使用搜索引擎,都会返回以该背景图片作为背景的搜索结果页。
实施例二、
图7为本发明实施例二提供的方法流程图,如图7中所示,该方法可以包括以下步骤:
在701中,获取用户输入的搜索关键词。
在702中,判断搜索关键词是否存在预设的搜索结果页背景图片,如果是,执行703,否则,按照现有技术中的方式返回空白背景的搜索结果页,或者继续图4所示流程。
在本实施例中,可以预先针对一些搜索关键词设置搜索结果页背景图片,这些搜索关键词可以是一些热门的人物类、风景类、动漫类、影视剧类、节日类等搜索关键词。
在703中,从搜索关键词对应的搜索结果背景图片中选择一个背景图片。
可以预先设置一个搜索关键词对应一个背景图片,也可以设置一个搜索关键词对应多个背景图片。如果对应多个背景图片,则可以从中选择一个背景图片作为搜索结果页的背景。在进行选择时,可以随机选择 一个背景图片,也可以依据背景图片的热门程度选择一个背景图片。其中背景图片的热门程度可以依据该背景图片在图片搜索中的点击次数、浏览次数等确定。
在704中,将该背景图片的url包含在搜索结果页的css背景中,结束本次流程。
页面的css是用于描述HTML或XML等文件样式的计算机语言,其中在css中存在background-image(背景图片)属性,将背景图片的url包含在该background-image属性中,并设置好background-position(背景位置)属性、background-repeat属性等。
这样,当浏览器在加载搜索结果页时,会对页面的css进行解析,并从css背景之中获取背景图片的url,根据该url下载背景图片并渲染为搜索结果页的背景。
本步骤还可以采用另外的方式,例如:利用背景图片生成一个位于搜索结果页所在图层之下的图层,并设置搜索结果页所在图层透明。这样,当浏览器在加载搜索结果页时,会一并加载两个图层,低下的图层为背景图片,搜索结果页所在的图层为透明属性,这样对于用户而言,看到的就是搜索结果页以背景图片为背景。
举一个例子,假设用户输入搜索关键词“李易峰”,如果该搜索关键词是人物类的热门搜索关键词,可以预先设置该搜索关键词对应的背景图片,例如将李易峰的宣传照等照片作为背景图片。那么在返回“李易峰”对应的搜索结果页时,就可以将李易峰其中一幅宣传照作为搜索结果页的背景图片进行显示。
在举一个例子,假设用户输入搜索关键词“端午节”,该搜索关键 词属于节日类的热门搜索关键词,预先设置了该搜索关键词对应的背景图片,那么在返回“端午节”对应的搜索结果页时,就可以将预先设置的该搜索关键词对应的背景图片作为搜索结果页的背景进行显示,如图8所示。可见,这种方式更加具有趣味性,也更个性化。
以上是对本发明提供的方法进行的描述,下面对本发明提供的装置进行详细描述。图9为本发明实施例提供的装置结构图,该装置可以设置于搜索服务器端,如图9所示,该装置可以包括:触发判断单元00和背景设置单元10。
触发判断单元00负责判断是否触发搜索结果页的背景设置。
背景设置单元10负责在触发判断单元00的判断结果为是时,确定针对搜索结果页设置的背景图片,将确定的背景图片作为搜索结果页的背景。
其中,触发判断单元00在判断是否触发搜索结果页的背景设置时,可以包括但不限于以下几种情况:
第一种情况:当搜索结果页上提供的背景设置功能被触发时,触发判断单元00确定触发搜索结果页的背景设置。
在搜索结果页上可以向用户提供诸如背景设置按钮,当背景设置按钮被点击时,确定背景设置功能被触发。或者预先设置能够触发背景设置功能的手势即背景设置手势,当在搜索结果页上捕捉到预设的背景设置手势时,确定搜索结果页上提供的背景设置功能被触发。
这种情况下,背景确定单元10可以提供一个以上的背景图片供用户选择,或者提示用户选择并上传本地的图片作为背景图片。然后确定并保存用户选择的背景图片作为针对搜索结果页设置的背景图片,并针对 用户标识搜索结果页已设置。
第二种情况:判断是否针对进行搜索的用户标识搜索结果页已设置,如果是,则触发判断单元00确定触发搜索结果页的背景设置。
对于这种情况,说明该进行搜索的用户进行进行过搜索结果页的背景设置,则可以直接利用已有的设置,即背景设置单元10确定针对用户保存的背景图片作为针对搜索结果页设置的背景图片。
第三种情况:判断搜索结果页对应的搜索关键词是否存在预设的搜索结果页背景图片,如果是,则触发判断单元00确定触发搜索结果页的背景设置。
对于这种情况,背景设置单元10可以从搜索关键词对应的搜索结果背景图片中选择一个背景图片,作为针对搜索结果页设置的背景图片。
无论哪种情况,背景设置单元10在将确定的背景图片作为搜索结果页的背景时,可以采用但不限于以下两种方式:
第一种方式:将确定的背景图片的url包含在搜索结果页的级联样式表css背景中。具体地,可以将背景图片的url包含在搜索结果页css的background-image属性中,并设置好background-position(背景位置)属性、background-repeat属性等。当浏览器在加载搜索结果页时,会对页面的css进行解析,并从css背景之中获取背景图片的url,根据该url下载背景图片并渲染为搜索结果页的背景。
第二种方式:利用背景图片生成一个位于搜索结果页所在图层之下的图层,并设置搜索结果页所在图层透明。当浏览器在加载搜索结果页时,会一并加载两个图层,低下的图层为背景图片,搜索结果页所在的图层为透明属性,这样对于用户而言,看到的就是搜索结果页以背景图 片为背景。
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。

Claims (18)

  1. 一种搜索结果页的背景实现方法,其特征在于,该方法包括:
    判断是否触发搜索结果页的背景设置;
    如果是,确定针对搜索结果页设置的背景图片,将确定的背景图片作为搜索结果页的背景。
  2. 根据权利要求1所述的方法,其特征在于,所述判断是否触发搜索结果页的背景设置包括:
    当搜索结果页上提供的背景设置功能被触发时,确定触发搜索结果页的背景设置;或者,
    判断是否针对进行搜索的用户标识搜索结果页已设置,如果是,则确定触发搜索结果页的背景设置。
  3. 根据权利要求2所述的方法,其特征在于,当在搜索结果页上捕捉到预设的背景设置手势或者搜索结果页上的背景设置按钮被点击时,搜索结果页上提供的背景设置功能被触发。
  4. 根据权利要求2所述的方法,其特征在于,如果搜索结果页上提供的背景设置功能被触发,则所述确定针对搜索结果页设置的背景图片包括:
    提供一个以上的背景图片供用户选择,或者提示用户选择并上传本地的图片作为背景图片;
    确定并保存用户选择的背景图片;
    针对所述用户标识搜索结果页已设置。
  5. 根据权利要求2所述的方法,其特征在于,如果针对进行搜索的用户标识搜索结果页已设置,则所述确定针对搜索结果页设置的背景图 片包括:
    确定针对所述用户保存的背景图片。
  6. 根据权利要求1所述的方法,其特征在于,所述判断是否触发搜索结果页的背景设置包括:
    判断搜索结果页对应的搜索关键词是否存在预设的搜索结果页背景图片,如果是,则确定触发搜索结果页的背景设置。
  7. 根据权利要求6所述的方法,其特征在于,所述确定针对搜索结果页设置的背景图片包括:
    从所述搜索关键词对应的搜索结果背景图片中选择一个背景图片。
  8. 根据权利要求1至7任一权项所述的方法,其特征在于,所述将确定的背景图片作为搜索结果页的背景包括:
    将确定的背景图片的url包含在所述搜索结果页的级联样式表css背景中;或者,
    利用所述背景图片生成一个位于所述搜索结果页所在图层之下的图层,并设置所述搜索结果页所在图层透明。
  9. 一种搜索结果页的背景实现装置,其特征在于,该装置包括:
    触发判断单元,用于判断是否触发搜索结果页的背景设置;
    背景设置单元,用于在所述触发判断单元的判断结果为是时,确定针对搜索结果页设置的背景图片,将确定的背景图片作为搜索结果页的背景。
  10. 根据权利要求9所述的装置,其特征在于,所述触发判断单元,具体用于:
    当搜索结果页上提供的背景设置功能被触发时,确定触发搜索结果 页的背景设置;或者,
    判断是否针对进行搜索的用户标识搜索结果页已设置,如果是,则确定触发搜索结果页的背景设置。
  11. 根据权利要求10所述的装置,其特征在于,所述触发判断单元,还用于当在搜索结果页上捕捉到预设的背景设置手势或者搜索结果页上的背景设置按钮被点击时,确定搜索结果页上提供的背景设置功能被触发。
  12. 根据权利要求10所述的装置,其特征在于,如果所述搜索结果页上提供的背景设置功能被触发,则所述背景确定单元提供一个以上的背景图片供用户选择,或者提示用户选择并上传本地的图片作为背景图片;确定并保存用户选择的背景图片作为针对搜索结果页设置的背景图片,并针对所述用户标识搜索结果页已设置。
  13. 根据权利要求10所述的装置,其特征在于,如果针对进行搜索的用户标识搜索结果页已设置,则所述背景设置单元确定针对所述用户保存的背景图片作为针对搜索结果页设置的背景图片。
  14. 根据权利要求9所述的装置,其特征在于,所述触发判断单元,具体用于判断搜索结果页对应的搜索关键词是否存在预设的搜索结果页背景图片,如果是,则确定触发搜索结果页的背景设置。
  15. 根据权利要求14所述的装置,其特征在于,所述背景设置单元,具体用于从所述搜索关键词对应的搜索结果背景图片中选择一个背景图片,作为所述针对搜索结果页设置的背景图片。
  16. 根据权利要求9至15任一权项所述的装置,其特征在于,所述背景设置单元在将确定的背景图片作为搜索结果页的背景时,具体用于:
    将确定的背景图片的url包含在所述搜索结果页的级联样式表css背景中;或者,
    利用所述背景图片生成一个位于所述搜索结果页所在图层之下的图层,并设置所述搜索结果页所在图层透明。
  17. 一种设备,包括:
    一个或多个处理器;
    存储器;
    一个或多个程序,所述一个或多个程序存储在所述存储器中,当被所述一个或多个处理器执行时,执行以下操作:
    判断是否触发搜索结果页的背景设置;
    如果是,确定针对搜索结果页设置的背景图片,将确定的背景图片作为搜索结果页的背景。
  18. 一种非易失性计算机存储介质,所述计算机存储介质存储有一个或多个程序,当所述一个或多个程序被一个设备执行时,使得所述设备执行以下操作:
    判断是否触发搜索结果页的背景设置;
    如果是,确定针对搜索结果页设置的背景图片,将确定的背景图片作为搜索结果页的背景。
PCT/CN2015/095779 2015-07-29 2015-11-27 一种搜索结果页的背景实现方法、装置、设备及存储介质 WO2017016114A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510453755.1A CN105183763A (zh) 2015-07-29 2015-07-29 一种搜索结果页的背景实现方法和装置
CN201510453755.1 2015-07-29

Publications (1)

Publication Number Publication Date
WO2017016114A1 true WO2017016114A1 (zh) 2017-02-02

Family

ID=54905847

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/095779 WO2017016114A1 (zh) 2015-07-29 2015-11-27 一种搜索结果页的背景实现方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN105183763A (zh)
WO (1) WO2017016114A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111898016A (zh) * 2020-07-31 2020-11-06 北京百度网讯科技有限公司 引导交互的方法、资源数据库的建立方法、装置
CN112954429A (zh) * 2020-12-14 2021-06-11 海看网络科技(山东)股份有限公司 一种iptv中动态生成背景的方法

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406866A (zh) * 2016-09-02 2017-02-15 百度在线网络技术(北京)有限公司 一种支持卡片透明化的方法和装置
CN108628912B (zh) * 2017-03-24 2021-12-28 北京搜狗科技发展有限公司 一种信息处理方法和装置、一种用于信息处理的装置
CN109190079A (zh) * 2018-09-13 2019-01-11 五八有限公司 应用程序的评价方法、装置、计算机设备及可读存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609414A (zh) * 2011-01-20 2012-07-25 中兴通讯股份有限公司 一种基于浏览器的图片热区突出显示方法、装置及系统
CN103744867A (zh) * 2013-12-18 2014-04-23 天脉聚源(北京)传媒科技有限公司 一种设置Web页面背景的方法、装置及浏览器
CN104063434A (zh) * 2014-06-11 2014-09-24 百度在线网络技术(北京)有限公司 搜索结果页的展现方法和装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609414A (zh) * 2011-01-20 2012-07-25 中兴通讯股份有限公司 一种基于浏览器的图片热区突出显示方法、装置及系统
CN103744867A (zh) * 2013-12-18 2014-04-23 天脉聚源(北京)传媒科技有限公司 一种设置Web页面背景的方法、装置及浏览器
CN104063434A (zh) * 2014-06-11 2014-09-24 百度在线网络技术(北京)有限公司 搜索结果页的展现方法和装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111898016A (zh) * 2020-07-31 2020-11-06 北京百度网讯科技有限公司 引导交互的方法、资源数据库的建立方法、装置
CN111898016B (zh) * 2020-07-31 2024-04-26 北京百度网讯科技有限公司 引导交互的方法、资源数据库的建立方法、装置
CN112954429A (zh) * 2020-12-14 2021-06-11 海看网络科技(山东)股份有限公司 一种iptv中动态生成背景的方法

Also Published As

Publication number Publication date
CN105183763A (zh) 2015-12-23

Similar Documents

Publication Publication Date Title
US10733360B2 (en) Simulated hyperlinks on a mobile device
US11221819B2 (en) Extendable architecture for augmented reality system
US9411827B1 (en) Providing images of named resources in response to a search query
WO2019095962A1 (zh) 推荐内容显示方法、装置及系统
WO2017016114A1 (zh) 一种搜索结果页的背景实现方法、装置、设备及存储介质
JP6279762B2 (ja) 表示内容に対応する検索結果の提供
WO2017012235A1 (zh) 一种搜索推荐方法、装置、设备及计算机存储介质
CN110785756A (zh) 数据内容过滤器
CN107784059B (zh) 用于搜索和选择图像的方法和系统以及机器可读媒体
US11734581B1 (en) Providing contextual actions for mobile onscreen content
US9342233B1 (en) Dynamic dictionary based on context
WO2015027787A1 (zh) 在触屏设备中进行检索的方法和装置
WO2017098332A2 (en) Method and system for inputting information
WO2020119569A1 (zh) 一种语音交互方法、装置及系统
CN107491465B (zh) 用于搜索内容的方法和装置以及数据处理系统
WO2020177592A1 (zh) 画作问答方法及装置、画作问答系统、可读存储介质
CN107463592B (zh) 用于将内容项目与图像匹配的方法、设备和数据处理系统
US10152540B2 (en) Linking thumbnail of image to web page
CN110019675B (zh) 一种关键词提取的方法及装置
WO2017181663A1 (zh) 一种为搜索信息匹配图片的方法及装置
US11500921B2 (en) Image acquisition method and device, electronic device and storage medium
WO2019109663A1 (zh) 一种跨语言搜索方法和装置、一种用于跨语言搜索的装置
WO2023051076A1 (zh) 一种搜索结果展现方法、装置、计算机设备及存储介质
US20200019419A1 (en) Image-based skill triggering
US20180157767A1 (en) Method of forming a user query

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15899466

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15899466

Country of ref document: EP

Kind code of ref document: A1