Please help me to solve this out.
I have an html file which contain an A
tag which refers to a DIV
tag in the same html page. Which is given below.
<a href="#addServerDetails" class="addSign"></a>
<div id="addServerDetails" class="addServerDetail">
<h1>hello</h1>
</div>
This is style properties of the above gievn DIV
tag.
.addServerDetail {
height: 400px;
width: 500px;
margin-right: auto;
margin-left: auto;
background-color: #333;
left: 312px;
top: 81px;
display: none;
}
I want to fadeIn this DIV
tag with overlay effet using JQuery. So I used fancyBox for Jquery.
The Jquery function is as given below.
$('document').ready(function(){
$("a.addSign").fancybox({
'titlePosition' : 'over',
'overlayColor' : '#000',
'overlayOpacity' : 0.8,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'autoScale' : true
});
});
But is not working out. Please help me in this as I am a beginner in Jquery.
Thanks friends.
EDIT: Firebug shows the following error!
TypeError: $(...).fancybox is not a function<br />
[Break On This Error] <br />
'autoScale' : 'true' <br />