欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

基于JavaScript實(shí)現(xiàn)點(diǎn)擊頁(yè)面任何位置返回

 更新時(shí)間:2016年08月31日 09:33:38   作者:yangzailu  
這篇文章主要介紹了基于JavaScript實(shí)現(xiàn)點(diǎn)擊頁(yè)面任何位置返回的實(shí)例代碼,需要的朋友可以參考下

廢話不多說(shuō)了,直接上關(guān)鍵代碼了。

<include file="Public:header" />
<style type="text/css">
table{width:100%;margin: 0;}
</style>
<script type='text/javascript' src="/{:APP_PATH}/Public/js/unslider.min.js"></script>
<script type="text/javascript">
//定義頁(yè)面載入事件
/*$(function(){
$('#more').addClass('moreno');
$('#more').click(function(){
//隱藏元素(向左移動(dòng))
if ($('#more').hasClass('moreno')) {
$('#sider').animate({
left:0
},1000,function(){
$('#more').removeClass('moreno');
});
}else{
$('#sider').animate({
left:-120
},1000,function(){
$('#more').addClass('moreno');
});
}
});
});*/
//定義頁(yè)面載入事件
$(function(){
$('#more').addClass('moreno');
//點(diǎn)擊界面除了容器id為more的區(qū)域外,任何地方隱藏掉
$(document).click(function(){
$('#sider').animate({
left:-120
},1000,function(){
$('#more').addClass('moreno');
});
});
$('#more').click(function(event){
event.stopPropagation();
//隱藏元素(向左移動(dòng))
event.stopPropagation();
if ($('#more').hasClass('moreno')) {
$('#sider').animate({
left:0
},1000,function(){
$('#more').removeClass('moreno');
});
}else{
$('#sider').animate({
left:-120
},1000,function(){
$('#more').addClass('moreno');
});
}
});
});
</script>
<div class="header_one">
<div class="Central">
<div class="first_one" style="position:absolute;">
<img id="more" style="margin-top:8px;" src="/{:APP_PATH}/Public/img/pic/more.png" />
</div>
<div>
<img style="height:30px;" src="/{:APP_PATH}/Public/img/main/logo1.png" />
</div>
</div>
</div>
<div class="bg">
<div class="pic" style="height:180px;">
<div id="lunbo" style="overflow: hidden;">
<ul style="margin:0px;" id="lunboul" style="position: relative;">
<volist name="pic" id="vo">
<li style="float:left;text-align:center;">
<img src="{$vo['pic']}" alt="" style="height:176px;margin:auto;" >
</li>
</volist>
</ul>
</div> 
<script type="text/javascript">
$('#lunbo').unslider({
speed: 0,
delay: 3000,
complete: function() {},
keys: true,
dots: true,
fluid: false
});
function autoScroll(obj){ 
$(obj).find("#voo").animate({ 
marginTop : "-30px" 
},500,function(){ 
$(this).css({marginTop : "0px"}).find("li:first").appendTo(this); 
}) 
} 
$(function(){ 
setInterval('autoScroll("#xst")',2000); 
}) 
</script>
</div>
<div style="width:100%;background-color:#EEEEEE;height:30px;margin:10px 0;">
<div class="scroll" id="xst" style="float:right;margin-left:10px;height:30px;width:75%;overflow:hidden;">
<ul id='voo' style="margin-top:0px;">
<volist name='gonggao' id="vo">
<li style="line-height:30px;height:30px;padding-left:5px;padding-top:2px;text-align:left;">
<a href="{:U('/Index/PlatDetail',array('id'=>$vo['id']))}">{$vo['name']}</a>
</li>
</volist>
</ul>
</div>
<div style="float:right;margin:5px 0;">
最新公告
</div>
</div>
<table id="fone" onclick="javascript:location.href='/Invest/InvestHp/biao_type/love'">
<tr>
<td class="norrow"><img src="/{:APP_PATH}/Public/img/pic/new.png"/></td>
<td class="secon">新手標(biāo)</td>
<td><span class="blo">8-10%</span><span class="tblo">預(yù)期年化收益</span></td>
<td><span class="blo">7<span class="cao_one">天</span></span><span class="tblo">投資期限</span></td>
<td class="jian_rig"><img class="rig_pic" src="/{:APP_PATH}/Public/img/pic/rightshow.png" /></td>
</tr> 
</table>
<table class="bird" onclick="javascript:location.href='/Invest/InvestList/biao_type/yxlc'">
<tr>
<td class="norrow"><img src="/{:APP_PATH}/Public/img/pic/fast.png" /></td>
<td class="secon">快系列</td>
<td><span class="blo">8-10%</span><span class="tblo">預(yù)期年化收益</span></td>
<td><span class="blo">1<span class="cao_one">個(gè)月</span></span><span class="tblo">投資期限</span></td>
<td class="jian_rig"><img class="rig_pic" src="/{:APP_PATH}/Public/img/pic/rightshow.png" /></td>
</tr> 
</table>
<table class="se_cond" onclick="javascript:location.href='/Invest/InvestList/biao_type/gxd'">
<tr>
<td class="norrow"><img src="/{:APP_PATH}/Public/img/pic/stable.png" /></td>
<td class="secon">穩(wěn)系列</td>
<td><span class="blo">12-14%</span><span class="tblo">預(yù)期年化收益</span></td>
<td><span class="blo">3-6<span class="cao_one">個(gè)月</span></span><span class="tblo">投資期限</span></td>
<td class="jian_rig"><img class="rig_pic" src="/{:APP_PATH}/Public/img/pic/rightshow.png" /></td>
</tr> 
</table>
<if condition="$GLOBALS['userinfo']['org_code'] eq 'fc'">
<table class="last_fcb" onclick="javascript:location.href='/Invest/InvestList/biao_type/fcb'">
<tr>
<td class="norrow"><img src="/{:APP_PATH}/Public/img/pic/house.png" /></td>
<td class="secon">房產(chǎn)寶</td>
<td><span class="blo">8-16%</span><span class="tblo">預(yù)期年化收益</span></td>
<td><span class="blo">3-6<span class="cao_one">個(gè)月</span></span><span class="tblo">投資期限</span></td>
<td class="jian_rig"><img class="rig_pic" src="/{:APP_PATH}/Public/img/pic/rightshow.png" /></td>
</tr> 
</table>
</if>
<div class="bott_ton" onclick="javascript:location.href='/Goods/Index'">
<img src="/{:APP_PATH}/Public/img/pic/logobean.png"/>
</div>
<div id="sider">
<ul id="usecond">
<li style="line-height:36px"> <a href="{:U('Index/Platann')}" style="color:#FFF">平臺(tái)公告</a></li>
<li style="line-height:36px"> <a href="{:U('Index/HelpCenter')}" style="color:#FFF">幫助中心</a></li>
<li style="line-height:36px"> <a href="{:U('Index/PlatIntro')}" style="color:#FFF">平臺(tái)介紹</a></li>
<li style="line-height:36px"> <a href="{:U('Index/Contact')}"style="color:#FFF">聯(lián)系我們</a></li>
</ul>
</div>
</div>
<include file="Public:footer" />


以上所述是小編給大家介紹的基于JavaScript實(shí)現(xiàn)點(diǎn)擊頁(yè)面任何位置返回的實(shí)例代碼,希望對(duì)大家有所幫助,如果大家有任何疑問請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!

相關(guān)文章

  • 三分鐘帶你快速學(xué)會(huì)微信小程序的條件渲染

    三分鐘帶你快速學(xué)會(huì)微信小程序的條件渲染

    所謂的條件渲染就是判斷是否需要把代碼渲染到展示頁(yè)面上,下面這篇文章主要給大家介紹了關(guān)于微信小程序條件渲染的相關(guān)資料,文中通過(guò)實(shí)例代碼和圖文介紹的非常詳細(xì),需要的朋友可以參考下
    2022-08-08
  • javascript作用域、作用域鏈(菜鳥必看)

    javascript作用域、作用域鏈(菜鳥必看)

    下面小編就為大家?guī)?lái)一篇javascript作用域、作用域鏈(菜鳥必看)。小編覺得 挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧
    2016-06-06
  • 如何通過(guò)JavaScript、css、H5實(shí)現(xiàn)簡(jiǎn)單的tab欄切換和復(fù)用功能

    如何通過(guò)JavaScript、css、H5實(shí)現(xiàn)簡(jiǎn)單的tab欄切換和復(fù)用功能

    tab切換在項(xiàng)目中也算是常用技術(shù),一般實(shí)現(xiàn)tab切換都用js或者jq實(shí)現(xiàn),下面這篇文章主要給大家介紹了關(guān)于如何通過(guò)JavaScript、css、H5實(shí)現(xiàn)簡(jiǎn)單的tab欄切換和復(fù)用功能的相關(guān)資料,需要的朋友可以參考下
    2022-11-11
  • JavaScript 數(shù)組運(yùn)用實(shí)現(xiàn)代碼

    JavaScript 數(shù)組運(yùn)用實(shí)現(xiàn)代碼

    復(fù)習(xí)一下JS中數(shù)組的運(yùn)用。學(xué)習(xí)js數(shù)組的朋友可以參考下。
    2010-04-04
  • JS實(shí)現(xiàn)的3D拖拽翻頁(yè)效果代碼

    JS實(shí)現(xiàn)的3D拖拽翻頁(yè)效果代碼

    這篇文章主要介紹了JS實(shí)現(xiàn)的3D拖拽翻頁(yè)效果,通過(guò)鼠標(biāo)事件結(jié)合時(shí)間函數(shù)動(dòng)態(tài)操作頁(yè)面元素實(shí)現(xiàn)拖拽翻頁(yè)的效果,需要的朋友可以參考下
    2015-10-10
  • JavaScript將XML轉(zhuǎn)成JSON的方法

    JavaScript將XML轉(zhuǎn)成JSON的方法

    這篇文章主要介紹了JavaScript將XML轉(zhuǎn)成JSON的方法,實(shí)例分析了javascript操作XML文件及格式轉(zhuǎn)化的技巧,具有一定參考借鑒價(jià)值,需要的朋友可以參考下
    2015-03-03
  • 微信小程序基礎(chǔ)教程之echart的使用

    微信小程序基礎(chǔ)教程之echart的使用

    簡(jiǎn)單的使用echarts不難,但是在小程序里用echarts可能有些理不清。所以這篇文章主要給大家介紹了關(guān)于微信小程序基礎(chǔ)教程之echart使用的相關(guān)資料,需要的朋友可以參考下
    2021-06-06
  • javascript js 操作數(shù)組 增刪改查的簡(jiǎn)單實(shí)現(xiàn)

    javascript js 操作數(shù)組 增刪改查的簡(jiǎn)單實(shí)現(xiàn)

    下面小編就為大家?guī)?lái)一篇javascript js 操作數(shù)組 增刪改查的簡(jiǎn)單實(shí)現(xiàn)。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧
    2016-06-06
  • 微信小程序開發(fā)注意指南和優(yōu)化實(shí)踐(小結(jié))

    微信小程序開發(fā)注意指南和優(yōu)化實(shí)踐(小結(jié))

    這篇文章主要介紹了微信小程序開發(fā)注意指南和優(yōu)化實(shí)踐,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧
    2019-06-06
  • 最通俗易懂的javascript變量提升詳解

    最通俗易懂的javascript變量提升詳解

    下面小編就為大家?guī)?lái)一篇最通俗易懂的javascript變量提升詳解。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧
    2017-08-08

最新評(píng)論