产品页面改版
parent
2f289cbf50
commit
3ad218adec
@ -0,0 +1,36 @@
|
|||||||
|
<div class="priceBlock">
|
||||||
|
<form id="form_tour_detail" name="form_tour_detail" action="/orders/asia_tour" method="post">
|
||||||
|
<span class="from"><?php echo $pd_tour->CLI_Days; ?> Days from</span><a class="priceLink" href="#price"></a> p/p
|
||||||
|
<span class="basedOn">(Based on a 2-people private group)</span>
|
||||||
|
<span class="inquiryNow"><a href="#">Make an inquiry <i class="fa fa-angle-right" aria-hidden="true"></i></a></span>
|
||||||
|
<input name="cli_no" id="cli_no" value="<?php echo $pd_tour->CLI_NO; ?>" type="hidden" />
|
||||||
|
<input name="cli_sn" id="cli_sn" value="<?php echo $pd_tour->CLI_SN; ?>" type="hidden" />
|
||||||
|
<input name="cli_days" id="cli_days" value="<?php echo $pd_tour->CLI_Days; ?>" type="hidden" />
|
||||||
|
<input name="destinations" id="destinations" value="<?php echo $pd_tour->CLI2_PassCity; ?>" type="hidden" />
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(function(){
|
||||||
|
$("#form_tour_detail").stick_in_parent({parent: "#mcontent",bottoming:true});
|
||||||
|
var height = $('#Itinerary').offset().top;
|
||||||
|
var height2 = $('#Handpicked').offset().top;
|
||||||
|
var height3 = $('#Journey').offset().top;
|
||||||
|
$(window).scroll(function(){
|
||||||
|
if(($(window).scrollTop() > height) && ($(window).scrollTop() < height2)){
|
||||||
|
$('.Handpicked').removeClass('active');
|
||||||
|
$('.Journey').removeClass('active');
|
||||||
|
$('.Itinerary').addClass('active');
|
||||||
|
}
|
||||||
|
if(($(window).scrollTop() > height2) && ($(window).scrollTop() < height3)){
|
||||||
|
$('.Journey').removeClass('active');
|
||||||
|
$('.Itinerary').removeClass('active');
|
||||||
|
$('.Handpicked').addClass('active');
|
||||||
|
}
|
||||||
|
if(($(window).scrollTop() > height3)){
|
||||||
|
$('.Itinerary').removeClass('active');
|
||||||
|
$('.Handpicked').removeClass('active');
|
||||||
|
$('.Journey').addClass('active');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
Loading…
Reference in New Issue