我想用fancybox创建一个内联表单 当我点击这里显示有id ='数据'的元素的内容时,将我重定向到主页:S
<title></title>
<script src="./fancybox/jquery.mousewheel-3.0.4.pack.js" type="text/javascript"></script>
<script src="./fancybox/jquery.fancybox-1.3.4.pack.js" type="text/javascript"></script>
<link media="screen" href="./fancybox/jquery.fancybox-1.3.4.css" type="text/css" rel="stylesheet"></link>
<script>
$(document).ready(function() {
$("#inline").fancybox({
'titlePosition' : 'inside',
'transitionIn' : 'none',
'transitionOut' : 'none'
});
});
</script>
------------
<div>
<a id="inline" href="#data">
This shows content of element who has id='data'
</a>
<div style="display:none">
<div id="data">
Lorem ipsum dolor sit amet, consectetur adipiscing…
</div>
</div>
</div>
&#13;