Skip to content

Instantly share code, notes, and snippets.

@bsy
Created October 9, 2009 02:42
Show Gist options
  • Save bsy/205647 to your computer and use it in GitHub Desktop.
Save bsy/205647 to your computer and use it in GitHub Desktop.
// 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