菠萝教你做模板之五-图片频道的模板制作(3)_PHPCms教程
教程Tag:暂无Tag,欢迎添加,赚取U币!
document.images.show.filters.blendTrans.Apply()
}
document.images.show.src = pictureurl[current];
setidval('picname',picturename[current]);
if(document.all){
document.images.show.filters.blendTrans.play()
}
document.slideform.slide.selectedIndex = current;
}
function ap(text) {
document.slideform.slidebutton.value = (text == "Stop") ? "Start" : "Stop";
rotate();
}
function change() {
current = document.slideform.slide.selectedIndex;
if(document.all){
document.images.show.style.filter="blendTrans(duration=2)"
document.images.show.style.filter="blendTrans(duration=crossFadeDuration)"
document.images.show.filters.blendTrans.Apply()
}
document.images.show.src = pictureurl[current];
setidval('picname',picturename[current]);
if(document.all){
document.images.show.filters.blendTrans.play()
}
}
function rotate() {
if (document.slideform.slidebutton.value == "Stop") {
current = (current == document.slideform.slide.length-1) ? 0 : current 1;
if(document.all){
document.images.show.style.filter="blendTrans(duration=2)"
document.images.show.style.filter="blendTrans(duration=crossFadeDuration)"
document.images.show.filters.blendTrans.Apply()
}
document.images.show.src = pictureurl[current];
setidval('picname',picturename[current]);
if(document.all){
document.images.show.filters.blendTrans.play()
}
document.slideform.slide.selectedIndex = current;
window.setTimeout("rotate()", rotate_delay);
}
}
function openpic()
{
window.open(pictureurl[current]);
}
// End -->
</script>
这个函数是控制js变换的函数
CODE: [Copy to clipboard] <!--主标题--><div id="title" align="center">{$title}</div>
<!--文件属性--><div class="par" align="center">发布日期:{$adddate} 作者:<a href="{PHPCMS_PATH}member/member.php?username={$username}" class="member_url">{$author}</a> 来源:<a href="{$copyfromurl}" target="_blank">{$copyfromname}</a> 浏览次数:<span id="hits">0</span> <a href="{PHPCMS_PATH}comment/index.php?item=pictureid&itemid={$pictureid}&itemurl={$itemurl}" class="commenturl">网友评论<span id="commentnumber1">0</span>条</a> 文字大小:【<a href="javascript :fontZoom(16)">大</a>】【<a href="javascript :fontZoom(14)">中</a>】【<a href="javascript :fontZoom(12)">小</a>】 评分等级:{$stars}</div>
相关PHPCms教程:
- 相关链接:
- 教程说明:
PHPCms教程-菠萝教你做模板之五-图片频道的模板制作(3)。