Created
October 9, 2009 02:42
-
-
Save bsy/205647 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// change city | |
$(document).ready(function() { | |
// hides the slickbox as soon as the DOM is ready | |
// (a little sooner than page load) | |
var $altCity = $('#altCity'); | |
var $altCity2 = $('#altCity2'); | |
var $altCityHide = $('#altCityHide'); | |
var $altCityShow = $('#altCityShow'); | |
$altCity.hide(); | |
// shows the slickbox on clicking the noted link | |
$('a#slick-show1').click(function() { | |
$altCity.show('slow'); | |
$altCityHide.show('fast'); | |
$altCityShow.hide('fast'); | |
$altCity2.hide('fast'); | |
return false; | |
}); | |
$('a#slick-show2').click(function() { | |
$altCity.show('slow'); | |
$altCityHide.show('fast'); | |
$altCityShow.hide('fast'); | |
$altCity2.hide('fast'); | |
return false; | |
}); | |
// hides the slickbox on clicking the noted link | |
$('a#slick-hide1').click(function() { | |
$altCity.hide('fast'); | |
$altCityHide.hide('fast'); | |
$altCityShow.show('fast'); | |
$altCity2.show('fast'); | |
return false; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment