当前位置:学会吧培训频道电脑知识学习网页制作移动WAP开发WAP与PHP - 进阶篇之二» 正文

WAP与PHP - 进阶篇之二

[08-08 00:46:31]   来源:http://www.xuehuiba.com  移动WAP开发   阅读:8320
概要:echo "<u>/n"; if ($this->attribute & TEXT_ITALIC) echo "<i>/n"; if ($this->attribute & TEXT_BIG) echo "<big>/n"; if ($this->attribute & TEXT_SMALL) echo "<small>/n"; if ($this->text) printf("%s/n", convert_character($this->text)); if ($this->attribute & TEXT_SMALL) echo "</small>/n"; if ($this->attribute & TEXT_BIG) echo "</big>/n&quo
WAP与PHP - 进阶篇之二,标签:移动WAP开发教程,wap网站开发,http://www.xuehuiba.com
  echo "<u>/n";

  if ($this->attribute & TEXT_ITALIC)
  echo "<i>/n";

  if ($this->attribute & TEXT_BIG)
  echo "<big>/n";
  
  if ($this->attribute & TEXT_SMALL)
  echo "<small>/n";

  if ($this->text)
  printf("%s/n", convert_character($this->text));

  if ($this->attribute & TEXT_SMALL)
  echo "</small>/n";

  if ($this->attribute & TEXT_BIG)
   echo "</big>/n";

  if ($this->attribute & TEXT_ITALIC)
  echo "</i>/n";

  if ($this->attribute & TEXT_UNDERLINE)
  echo "</u>/n";

  if ($this->attribute & TEXT_BOLD)
   echo "</b>/n";

  $br_command = "<br/>/n";
  for ($i=0; $i<$this->br_count; $i++)
  echo $br_command;
  } 

2.3 Image对象的实现 [TOP]
  Image对象代表了图象元素,其包含的属性和方法如下表所示:



属性名称 含义
$wbmp_url 图片地址
$alt_text 图片文本描述(当图片无法显示时则显示文本)
$br_count 图片后空行数目
表5 Image对象的属性 

方法名(函数) 含义
My_Image 自构函数,对象创建时被自动调用
set_br_count 设置空行数目
My_Type 返回对象类别(I_AM_IMAGE)
Make_Element 产生与Image对象相关的代码
表6 Image对象方法

上一页  [1] [2] 


Tag:移动WAP开发移动WAP开发教程,wap网站开发电脑知识学习 - 网页制作 - 移动WAP开发
《WAP与PHP - 进阶篇之二》相关文章
Copyright 学会吧 All Right Reserved.
在线学习社区!--学会吧
1 2 3 4 5 6 7 7 8 9 10 11 12 13