Page History: Markup method of Text,PC,Mobile
Compare Page Revisions
Page Revision: 2010/06/22 17:40
Class
- Package:
- Defined In :
- Class:
- Subclasses:
- Extends:
Config Options
<%if(RenderMode.PC){%>
<div>PC</div>
<%}%>
<%if(RenderMode.Text){%>
<div>Text</div>
<%}%>
<%if(RenderMode.Mobile){%>
<div>Mobile</div>
<%}%>
<%if(RenderMode.PC||RenderMode.Text){%>
<div>PC&Text</div>
<%}%>
Public Properties
- we will rarely use it, but sometimes it's required
- some pages include js, so we have to disable js adding to pages viewed in text-mode
- rather designer/js programmer has to decide what kind of functionality it is
- for example, you provide alternative content to flash like flash is only for PC
- if not declaration, it'll show to all device
Public Methods
for text -
if you want to make special regions within single page -
then define them in default.aspx <%if(RenderMode.PC){%>...in photo
if you want to remove photo in text mode like this <%if(RenderMode.PC){%>...
Public Events
Public events
Example
example