Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function ($) {
- if ($.browser.msie && parseInt($.browser.version) == 7) {
- window.location = "update_browser_to_ie9";
- } else {
- /* alert('Non IE7'); */
- $(function(){
- $("#wrapperimghov").hide(); /* color bars */
- $("#block-block-1") .hide(); /*hide initial block from showing */
- /*$("#hdrnavwraphov").hide(); text menus */
- /* $("#block-block-1") .css('opacity,0').animate({opacity: 1}, {queue:false, duration: 10000}); */
- $("#block-block-1") .show(); /*show initial block from showing */
- $("#wrapperimghov").css('opacity', 0).slideDown(9000,'linear').animate({ opacity: 1 },{ queue: false, duration: 10000, easing: 'linear'});/* color bars */
- $("img",this).hide();
- $("#clickme").hide();
- $("png", this).show();
- $(".bgrimg").css("z-index", "-=100").delay(4000).fadeIn(6000); /* nick's background image */
- /*$("#hdrnavwraphov").delay(3000).fadeIn(7000); text menus */
- $(".divhov").hover(animated1, animated2 , animated4 ); /*picture files */
- $(".divhov") .click(animated3); /*picture files */
- }
- );
- var parent_div = $(".divhov").parent();
- parent_div.css("width", parent_div.width()+"px");
- parent_div.hide();
- function animated1() {
- $( this ).hoverFlow( 'mouseenter', { width: "50px", height:"420px" }, { queue: false, duration: 1000 });
- }
- function animated2() {
- if($("img", this).width() >= "400"){
- $( this ).delay(300).hoverFlow( 'mouseleave', { width: "20px" , height:"320px" }, { queue: false, duration: 1800});
- $("img", this).fadeOut(1800);
- }
- }
- function animated3() {
- if($( this).width() >= "25"){
- $( this ).animate( { width: "420px", height:"420px" }, { queue: false, duration: 800 });
- $("img", this).fadeIn(1200);
- }
- }
- function animated4() {
- if($( this).width() >= "25"){
- $(this ).hoverFlow( 'mouseenter', {$("#clickme").css('opacity', 0)}, { queue: false, duration: 1000 });
- }
- /* else {
- if($("#clickme", this).width() <= "35").hoverflow( 'mouseleave', {opacity: "0"}, { queue: false, duration: 1000 });
- } */
- }
- function fadeoutcallback(){
- $("img", this).hide();
- }
- } /*ie7*/
- })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement