WebsiteBaker 2.13.9 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
use_fancy_box();
<div style="display: none;" id="testube" /><object height="355" width="425" /><param name="movie" value="http://www.youtube.com/v/nnpv3FhIVXk" /><param name="wmode" value="transparent" /><embed height="355" width="425" src="http://www.youtube.com/v/nnpv3FhIVXk" type="application/x-shockwave-flash" wmode="transparent" /></embed></object></div>
<p><a href="http://localhost/wb/media/testfotos/kugelsunsetglow.jpg" class="pic_fb"><img height="171" border="0" width="200" src="http://localhost/wb/media/testfotos/Bar_kl.jpg" alt="" /></a></p>
Annother example for fancy-box combined with anynews
this shows the complete site in a popup, but I meant to show only the long content of the news item Do you know how to do that?
<link rel="stylesheet" href="<?php echo WB_URL; ?>/modules/fancy_box/box/fancy_css.php?wbp=<?php echo WB_URL; ?>" type="text/css" media="screen" />
<?php$debug = false;if (true == $debug ) { ini_set('display_errors', 1); error_reporting(E_ALL);}if (!function_exists("use_fancy_box") ) { function use_fancy_box() { ?> <script language="JavaScript" type="text/javascript" src="<?php echo WB_URL; ?>/modules/fancy_box/box/jquery.js"></script> <script language="JavaScript" type="text/javascript" src="<?php echo WB_URL; ?>/modules/fancy_box/box/jquery.fancybox.js"></script> <script language="JavaScript" type="text/javascript" src="<?php echo WB_URL; ?>/modules/fancy_box/box/jquery.pngFix.js"></script> <script language="JavaScript" type="text/javascript"> $(document).ready(function() { $("a.fb").fancybox(); $("a.page_fb").fancybox({ 'hideOnContentClick': false, 'zoomSpeedIn':0, 'zoomSpeedOut':300 }); $("a.pic_fb").fancybox({ 'hideOnContentClick': true }); $("a.pic1_fb").fancybox({ 'hideOnContentClick': true, 'overlayShow': true }); $("a.video_fb").fancybox({ 'overlayShow': true, 'frameWidth': 425, 'frameHeight': 355 }); $("div#use_fb a").fancybox(); }); </script> <?php }}?>
But remember: If You call it directly from the template - You will get troubles with one or annother modul! Maybe Lightbox, maybe Imageflow, maybe annother?
Hi Vyni,one question. I tested fancybox successfully with "Code". You prefer "Code2". What is the reason?Thanks in advance!UweEdit: and a second qustion. I had a closer look at fancybox in Opera and the effect was different from IE and FF3. The popups are opening in a different position, much closer to the bottom. My changes or the js or opera?Edit01: I tried the examples at http://fancy.klade.lv/ in Opera and none of them is working in Opera.
Great - it works in chrome!
$(document).ready(function() { $("a.fb").fancybox(); $("a.page_fb").fancybox({ 'hideOnContentClick': false, 'zoomSpeedIn':0, 'zoomSpeedOut':300 });$("a.pic_fb").fancybox({ 'hideOnContentClick': true });$("a.pic1_fb").fancybox({ 'hideOnContentClick': true, 'overlayShow': true });$("a.video_fb").fancybox({ 'overlayShow': true, 'frameWidth': 425, 'frameHeight': 355 });$("div#use_fb a").fancybox(); });
<?php$debug = false;if (true == $debug ) { ini_set('display_errors', 1); error_reporting(E_ALL);}if (!function_exists("use_fancy_box") ) { function use_fancy_box() { ?> <script type="text/javascript" src="<?php echo WB_URL; ?>/modules/fancy_box/box/jquery.js"></script> <script type="text/javascript" src="<?php echo WB_URL; ?>/modules/fancy_box/box/jquery.fancybox.js"></script> <script type="text/javascript" src="<?php echo WB_URL; ?>/modules/fancy_box/box/jquery.pngFix.js"></script> <link rel="stylesheet" href="<?php echo WB_URL; ?>/modules/fancy_box/box/fancy_css.php?wbp=<?php echo WB_URL; ?>" type="text/css" media="screen"> <SCRIPT type=text/javascript> $(document).ready(function() { $("a.fb").fancybox(); $("a.page_fb").fancybox({ 'hideOnContentClick': false, 'zoomSpeedIn':0, 'zoomSpeedOut':300 }); $("a.pic_fb").fancybox({ 'hideOnContentClick': true }); $("a.pic1_fb").fancybox({ 'hideOnContentClick': true, 'overlayShow': true }); $("a.video_fb").fancybox({ 'overlayShow': true, 'frameWidth': 600, 'frameHeight': 400 }); $("div#use_fb a").fancybox(); }); </script> <?php }}?>