scrollpicture

zhengjunrong
   2018-01-26 10:09:44发布 0收藏, 119浏览
MBuilder开发工具
已解决
0

scrollpicture标签不被识别怎么回事?X61{3%]I[TBT60N1OYN65[E.png

以下是我的全部代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.nj.fiberhome.com.cn/exmobi.dtd">

<html>

<head>

<title show="false"/>

<link rel="stylesheet" type="text/css" href="res:css/global.css" />

<style type="text/css">

body {

padding: 0 0;

}

.cell {

width: 25%;

height: 30%; 

text-align: center;

text-valign: middle;

font-size: 20dp;

color: #666666;

}

.iconarea {

border-radius: 5;

background-color: #6dbe45;

background-click-color: #2f7b1e;

width: 70;

height: 70;

text-align: center;

text-valign: middle;

}

.icon {

width: 50;

}

.titlebar {

title-color:white;

background-color:#0fbff1;

}

</style>

<script type="text/javascript" src="res:script/exmobijs/ued.base.js"></script>

<script src="res:script/exmobijs/app.js"></script>

<script src="res:script/exmobijs/base.js"></script>

<script>

<![CDATA[

var dragrefreshObj = document.getElementById("dragrefreshtop");

var timeid;

var userid;

var username;

var deptname;

function init() {

//图片轮播数据加载

var scrollObj = document.getElementById("scroll");

    var dataArray = new Array();

       var data3 = {};

    data3.src = "res:image/banner/5.png";

       dataArray.push(data3);

    scrollObj.loadData(dataArray);

               //获取登录账号

userid = document.cache.getCache("j_username");

}

function cxdl() {

alert("登录失败,请检查网络连接!");

}

function onScrollbottom() {

timeid = setTimeout("init()", 500);

}

function onScrolltop() {

timeid = setTimeout("init()", 500);

}

function onOutTime() {

alert("刷新超时");

clearTimeout(timeid);

}

function gw() {

window.open("res:page/officialDocument/officialList.xhtml");

}

function gz() {

   var str="res:page/officialWork/workList.xhtml";

   window.open(str);

}

function dy() {

}

function wx() {

}

]]>

</script>

</head>

<header>

<titlebar id="titlebarid" class="titlebar" title="东营市统计局移动办公" icon="res:image/titlebar/prev.png" iconhref="script:close"   hidericon="true"/>

<div>

 <scrollpicture id="scroll" style="width:100%;height:100px" interval="true"></scrollpicture>

 <div  id="imgg" name="imgg" style="display:none;"></div>

</div>

</header>

<body onstart="init()">

<dragrefresh id="dragrefreshtop"

onscroll="onScrolltop()" type="top"

dragcaption="自动刷新"

releasecaption="自动刷新"

refreshcaption="请稍等..."

refreshicon="res:image/progressbar.gif"

timeout="15000" ontimeout="onOutTime()"/>

<div id="notify" class="cell">

<div class="iconarea" style="background-color:#e1595a;">

<div id="notifyCount"></div>

<img src="res:image/main/pb_01.png" class="icon" href="res:page/notify/notifyList.xhtml"/>

</div>

<br size="2"/>

<font>通知公告</font>

</div>

<div class="cell">

<div class="iconarea" style="background-color:#fec752;">

<div id="office"></div>

<img id="gw" src="res:image/main/pb_02.png" class="icon" href="javascript:gw();"/>

</div>

<br size="2"/>

<font>公文流转</font>

</div>

<div class="cell">

<div class="iconarea" style="background-color:#53a9fa;">

<div id="work"></div>

<img src="res:image/main/pb_03.png" class="icon"  href="javascript:gz();"/>

</div>

<br size="2"/>

<font>工作办理</font>

</div>

<div class="cell">

<div class="iconarea" style="background-color:#00c46c;">

<div id="wxsx"></div>

<img src="res:image/main/pb_05.png" class="icon" href="#" />

</div>

<br size="2"/>

<font>今日日程</font>

</div>

       <div class="cell" >

<div class="iconarea" style="background-color:#5ec1b9;">

<img src="res:image/main/pb_04.png" class="icon" href="#"/>

</div>

<br size="2"/>

<font>信息简报</font>

</div>

<div class="cell">

<div class="iconarea" style="background-color:#0fbff1;">

<img src="res:image/main/pb_06.png" class="icon" href="#"/>

</div>

<br size="2"/>

<font>会议议题</font>

</div>

<div class="cell" >

<div class="iconarea" style="background-color:#5ec1b9;">

<img src="res:image/main/pb_04.png" class="icon" href="#"/>

</div>

<br size="2"/>

<font>电子邮件</font>

</div>

<div class="cell" >

<div class="iconarea" style="background-color:#5ec1b9;">

<img src="res:image/main/pb_04.png" class="icon" href="#"/>

</div>

<br size="2"/>

<font>电子邮件</font>

</div>

<div class="cell">

<div class="iconarea" style="background-color:#ff8d3a;">

<img src="res:image/main/pb_07.png" class="icon" href="#"/>

</div>

<br size="2"/>

<font>通讯录</font>

</div>

</body>

</html>

MBuilder版本 : MBuilder 3.2.0 (build 201504161714)

1个回答

你用的版本太低,当时还不支持scrollpicture

xuran
    2018-01-26 10:19:19回答
  • 噢!
    zhengjunrong 2018-01-26 10:37:01评论
  • 问题解决请及时更新问题状态,谢谢配合!
    xuran 2018-01-26 10:38:01评论
提交评论

我要回答

下载APP
扫码下载栗子社区APP