How We Can Create WebSlices in Internet Explorer 8 Beta
Web Slices
Web Slices is a new feature enabling websites to connect to their users by subscribing to content directly within a webpage. Web Slices behave just like feeds where clients can subscribe to get updates and notify users of changes.
A Web Slice is a section of a webpage that is treated like a subscribable item, just like a feed. To enable a Web Slice on your website, annotate your webpage with class names for the title, description, and other subscribable properties.
Features of Web Slice
• Apply styles
<div class=”hslice” id=”2″ style=”color:blue”>…</div>
• Navigating to a Different Web Page
<div class=”hslice” id=”3″>
<h2 class=”entry-title”>Search</h2>
<a rel=”bookmark” href=”http://www.Google.com” style=”display:none;” ></a>
</div>
• Enable or disable the Webslice for all sites
– Tools->Internet Options
– Under the Content tab
– Click Settings of Feed
– Select or deselect the “Turn on in Page Webslice discovery”
• Turn on or off Webslice discovery for a specified websites
<meta name=”slice” scheme=”IE” content=”on”/>
or
<meta name=”slice” scheme=”IE” content=”off”/>
• webslice icons with various sizes
• We can control the Webslice duration using
endtime property : Expiration time for a Web Slice. The inner text will be disabled after expiration.
<abbr class=”endtime” title=”24 sep 2008 05:00:00 PST”>6 hours</abbr>
This is an example of how to mark up an auction item with the link, title, and description properties
<div class=”hslice” id=”1″>
<p class=”entry-title”>item – $66.00</p>
<div class=”entry-content”>high bidder:buyer1
…
</div>
</div>
• Hslice
The hslice element contains all of the required and optional properties of a Web Slice.
• entry-title
Title of the webslice.
• entry-content
Content of the Webslice