Rendering:
html link:
css:
img{ border:0px;}
#registerwindow{ width:600px; height:400px; top :50px; right:100px; background:#FFF; display:none; border:5px #999 solid; position:absolute; z-index:999;}
#modelshade{width:100%; height:100%; background:#000; display:none; position:absolute; top:0px; z-index:0;}
1: Create and call modal window
1. Create a jQuery statement and select the tracing mark with a type of pattern
<script> <BR>$('document').ready(function(){ <BR><!-- Register model start--> <BR>$('a. model').click(function(){ <BR></script>
2. Use the following function to store the variables in the current project as the value of the rel attribute
var modelID = $(this).attr('rel');
3. Set the effect of the modal window and add the image link to Chic navigation made by jQuery has shadow background and highlighted modal window_jquery the window
$('#' modelID).fadeIn(2000).prepend('
');
$('.Chic navigation made by jQuery has shadow background and highlighted modal window_jquery_button').css({'margin-left':'535px','margin-top ':'0px'});
Two: Create a shadow background
$('#modelshade').css('opacity','0.8').fadeIn(2000);
Three: Close the modal window
$('a.Chic navigation made by jQuery has shadow background and highlighted modal window_jquery,#modelshade').click( function(){
var thismodelID= $('a.Chic navigation made by jQuery has shadow background and highlighted modal window_jquery').parent().attr('id');
$('#modelshade,#' thismodelID).fadeOut(function(){
$('a.Chic navigation made by jQuery has shadow background and highlighted modal window_jquery,#modelshade').remove();
});
return false;
});
Turn off the click function If the connection fails, this method will keep the connection and try to load another page to the browser
return false;
});
lt;/script>