<!doctype html>
<head>
<script src="/js/message_view.js" type="text/javascript"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
var message = new MessageViewer({
"data": [{
"name": "生方 すみれ",
"message": "はじめまして!",
"img_url": "/img/character_0001.png"
}]
});
}, false);
</script>
</head>
<div class="messageView" id="default">
<div class="mv-contents">
<p class="mv-name"></p>
<div class="mv-comment">
<p class="val"></p>
<p class="pointer"></p>
</div>
<p class="mv-image character"><img src="" alt=""/></p>
</div>
</div>
</html>
var message = new MessageViewer({
"data": [{
"name": "生方 すみれ",
"message": "はじめまして!",
"img_url": "/img/character_0001.png"
},
{
"message": "こんにちは!"
}]
});
var message = new MessageViewer({
"data": [{
"name": "生方 すみれ",
"message": "はじめまして!",
"img_url": "/img/character_0001.png"
},
{
"name": "高山 大介",
"message": "こんにちは!"
"img_url": "/img/character_0002.png"
}]
});
var message = new MessageViewer({
"data": [{
"side_class": "right",
"name": "生方 すみれ",
"message": "はじめまして!",
"img_url": "/img/character_0001.png"
},
{
"side_class": "left",
"name": "高山 大介",
"message": "こんにちは!"
"img_url": "/img/character_0002.png"
},
{
"side_class": "right",
"name": "生方 すみれ",
"message": "今日はいい天気ですね!",
"img_url": "/img/character_0001.png"
}]
});
var message = new MessageViewer({
"data": [{
"name": "生方 すみれ",
"message": "はじめまして!",
"img_url": "/img/character_0001.png"
}]
}, function() {
console.log("callBack");
});
var message = new MessageViewer({
"data": [{
"name": "生方 すみれ",
"message": "はじめまして!",
"img_url": "/img/character_0001.png"
}],
"option": {
"loop": true,
"speed": "fast"
}
});