I've copied this code from the faq section but it just doesn't work..
it has a loading bar and just stays as it.
<a id="autostart" href="http://www.google.com/"></a>
<script type="text/javascript">
$(document).ready(function() {
$("#autostart").fancybox({frameWidth:
838,frameHeight:540}).trigger('click');
});
</script>
Thats the exact script copied from another post, he also mentioned he
added that in the body section which I have done but still doesn't
work.
please help!! thank you.
Regards
Pierre
the script above is wrong
the scrip below is for v1.3.0
1) inline
<script type="text/javascript" >
$(document).ready(function(){
$("#autostart").fancybox({
'width': 640, //or whatever
'height': 400
});
}); // document ready
</script>
<body onload="$('#autostart').trigger('click');">
<a href="#mycontent" id="autostart">something here maybe</a>
<div style="display: none">
<p id="mycontent">I want to display this</p>
</div>
1) external html page:
<script type="text/javascript" >
$(document).ready(function(){
$("#autostart").fancybox({
'width': 640, //or whatever
'height': 400.
'type': 'iframe' // see this?
});
}); // document ready
</script>
<body onload="$('#autostart').trigger('click');">
<a href="http://domain.com/page-to-display.html"
id="autostart">something here maybe ... or not</a>
It was the external html page I wanted to load.. works a charm. Your
post is much clearer than the previous ones posted on this subject and
I think it should be pinned.
Thanks again mate.
Pierre
> > > Pierre- Hide quoted text -
>
> - Show quoted text -