templates/0/image/default/phone/show_old.php
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<div id=<?php echo $module['module_name'];?> class="portlet light" monxin-module="<?php echo $module['module_name'];?>" align=left >
<script>
function screentshot_go(v){
if(v=='left' || v=='right'){
event.preventDefault();
window.location.href="<?php echo $module['go_url'];?>"+$('.'+v+'_div').attr('go');
}
}
function operation_thumb(v){
event.preventDefault();
if(v=='up'){$('.list_div').animate({top:-120},"slow");}else{$('.list_div').animate({top:0},"slow");show_thumbs();}
}
$(document).ready(function(){
$.get("<?php echo $module['count_url']?>");
if(touchAble){
$("body").attr('ontouchstart',"set_touch_start(event)");
$("body").attr('ontouchmove',"exe_touch_move(event,'screentshot_go')");
$("#top_div").attr('ontouchstart',"set_touch_start(event)");
$("#top_div").attr('ontouchcancel',"exe_touch_move(event,'operation_thumb')");
}
$("#thumbs_div img").attr('src',"<?php echo get_template_dir(__FILE__);?>img/loading.gif");
$("#go_right").click(function(){
offset=$("#thumbs_div").offset();
o_left=offset.left-$("#thumbs_out_div").width();
//monxin_alert($("#thumbs_div").width()+o_left);
if(($("#thumbs_div").width())<$("#thumbs_out_div").width()){
$("#go_right img").attr('src',"<?php echo get_template_dir(__FILE__);?>img/go_right_none.png");
}
now_right=$("#thumbs_div a:last").offset().left+$("#thumbs_div a:last").width();
if($("#thumbs_out_div").width()-now_right<1){
$("#thumbs_div").animate({left:o_left},"slow");
}else{
$("#go_right img").attr('src',"<?php echo get_template_dir(__FILE__);?>img/go_right_none.png");
}
show_thumbs();
return false;
});
$("#go_left").click(function(){
offset=$("#thumbs_div").offset();
o_left=offset.left+$("#thumbs_out_div").width();
if(o_left>$("#thumbs_out_div").width()){
$("#go_left img").attr('src',"<?php echo get_template_dir(__FILE__);?>img/go_left_none.png");
}
if(o_left>0 && o_left<=$("#thumbs_out_div").width()){
o_left=0;
$("#go_left img").attr('src',"<?php echo get_template_dir(__FILE__);?>img/go_left_none.png");
}
$("#thumbs_div").animate({left:o_left},"slow");
show_thumbs();
return false;
});
$("#go_left").mouseenter(function(e) {
$("#go_left img").attr('src',"<?php echo get_template_dir(__FILE__);?>img/go_left_over.png");
后面还有 164 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
