• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

html help

Messages
10,163
Country
us-arizona
Hey guys,

Anyone good at html web pages and explaining things in easy to understand ways?

I want to add some cool gallery java to my website. My poor website is ancient and could use some sprucing up.

I have a code called 'fancybox'. Its very nice and has gallery code. But I am trying to understand how to insert the code into raw HTML.

I usually use (always) Yahoo SiteBuilder. A very very basic, easy program, all drag and drop, hit save and publish, done. But it is also very basic and has no gallery type software, only click/link/popups, which have no 'escape' to get out of it, etc. You can ALT-back out, but its not as nice as new websites have.


Anyone into giving me a lesson on how to install this gallery script into a webpage?

I have created a basic page with some photos on it, but having got the script to function yet. Its JAVA.

My webpage is here; www.lionheartcreations.com/FancyBoxTest

The 'fancybox' website is here; http://fancyapps.com/fancybox/#instructions

Here is my raw HTML.

Code:
<!--$sitebuilder version="2.8.7" extra="Java(1.7.0_67)" md5="04a3c606f576f9eb9bb4edd4c381dedb"$-->
<!--$templateKey Blank||1.0.0$-->

<!-- Add jQuery library -->
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>

<!-- Add mousewheel plugin (this is optional) -->
<script type="text/javascript" src="/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>

<!-- Add fancyBox -->
<link rel="stylesheet" href="/fancybox/source/jquery.fancybox.css?v=2.1.5" type="text/css" media="screen" />
<script type="text/javascript" src="/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>

<!-- Optionally add helpers - button, thumbnail and/or media -->
<link rel="stylesheet" href="/fancybox/source/helpers/jquery.fancybox-buttons.css?v=1.0.5" type="text/css" media="screen" />
<script type="text/javascript" src="/fancybox/source/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>
<script type="text/javascript" src="/fancybox/source/helpers/jquery.fancybox-media.js?v=1.0.6"></script>

<link rel="stylesheet" href="/fancybox/source/helpers/jquery.fancybox-thumbs.css?v=1.0.7" type="text/css" media="screen" />
<script type="text/javascript" src="/fancybox/source/helpers/jquery.fancybox-thumbs.js?v=1.0.7"></script>

<html>
  <head>
    <!--$begin exclude$--><title>FancyBoxTest</title><!--$end exclude$-->
    <meta name="generator" content="Yahoo SiteBuilder/2.8.7/1.7.0_67">
    <!--$page size 945, 12000$-->
    <!--$page margin 0, 0, 20, 0$-->
    <!--$centered$-->
    <!--$fontFamily Arial$-->
    <!--$fontSize 16$-->
    <style type="text/css"><!--
      BODY {font-family:"Arial"; font-size:16;margin:0px;padding:0px;text-align:center;min-width:890px;}
      P {font-family:"Arial"; font-size:16;}
      FORM {margin:0;padding:0;}
      #centerwrapper {text-align:left;width:890px;margin-left:auto;margin-right:auto;}
    --></style>
  </head>
  <body bgcolor="#FFFFFF" text="#666666" link="#666666" vlink="#666666" topmargin="0" leftmargin="0">

<!--$begin exclude$-->
    <div id="centerwrapper">
      <div id="root" style="position:absolute;width:890px;height:453px;">
<!--$end exclude$-->
        <div id="e0" style="position:absolute;left:237;top:67;width:446;height:58;">
          <table border="0" cellspacing="0" cellpadding="0" width="446">
            <tr>
              <td nowrap height="58" align="center" valign="top"><span class="text"><font size="7"><span style="font-size:48px;line-height:56px;">Fancy Box Test<br soft></span></font></span></td>
            </tr>
          </table>
        </div>
        <div id="e1" style="position:absolute;left:58;top:276;width:250;height:156;"><a href="images/2014-8-3_0-59-37-463.jpg"><!--$img %ImageAssetImpl:/images/2014-8-3_0-59-37-463.jpg$--><img src="sitebuilder/images/2014-8-3_0-59-37-463-250x156.jpg" width="250" height="156" border="0" alt=""></a></div>       

<div id="e2" style="position:absolute;left:640;top:277;width:250;height:156;"><a href="images/2014-8-3_1-7-50-347.jpg"><!--$img %ImageAssetImpl:/images/2014-8-3_1-7-50-347.jpg$--><img src="sitebuilder/images/2014-8-3_1-7-50-347-250x156.jpg" width="250" height="156" border="0" alt=""></a></div>       

<div id="e3" style="position:absolute;left:349;top:276;width:250;height:156;"><a href="images/2014-8-3_23-29-29-160.jpg"><!--$img %ImageAssetImpl:/images/2014-8-3_23-29-29-160.jpg$--><img src="sitebuilder/images/2014-8-3_23-29-29-160-250x156.jpg" width="250" height="156" border="0" alt=""></a></div><!--$begin exclude$-->
      </div>
    </div>


        <div id="e1" style="position:absolute;left:58;top:500;width:1000;height:156;">
<a title="morning after[explored] (mariosworld343)" href="http://farm8.staticflickr.com/7069/7060779347_fbee5aae15_b.jpg" rel="group-001"><img src="http://farm8.staticflickr.com/7069/7060779347_fbee5aae15_m.jpg"></a>

<a title="Self confined... (TVidhya)" href="http://farm8.staticflickr.com/7234/7047458501_46a2203733_b.jpg" rel="group-001"><img src="http://farm8.staticflickr.com/7234/7047458501_46a2203733_m.jpg"></a>

<a title="kleiner schrittmacher (KatjaGiersig)" href="http://farm8.staticflickr.com/7053/6918451990_20fa76f338_b.jpg" rel="group-001"><img src="http://farm8.staticflickr.com/7053/6918451990_20fa76f338_m.jpg"></a>

<a title=" (caro diario.)" href="http://farm8.staticflickr.com/7121/7059981833_abe404f4a0_b.jpg" rel="group-001"><img src="http://farm8.staticflickr.com/7121/7059981833_abe404f4a0_m.jpg"></a>
       </div>

        <div id="e1" style="position:absolute;left:58;top:800;width:250;height:156;">
<a rel="gallery" title="Lorem ipsum" class="fancybox" href="http://fancyapps.com/fancybox/demo/1_b.jpg"><img src="http://fancyapps.com/fancybox/demo/1_s.jpg" alt=""/></a>

<a rel="gallery" title="Proin imperdiet augue et magna interdum hendrerit" class="fancybox" href="http://fancyapps.com/fancybox/demo/2_b.jpg"><img src="http://fancyapps.com/fancybox/demo/2_s.jpg" alt=""/></a>
       </div>
<!--$end exclude$-->
  </body>
</html>


I need to know where to install the java code for the gallery software to function. Is this installed on this HTML document, or on my site?

java code;

Code:
$(".fancybox").fancybox({
    afterShow: function() {
        $(".fancybox-title").wrapInner('<div />').show();
       
        $(".fancybox-wrap").hover(function() {
            $(".fancybox-title").show();
        }, function() {
            $(".fancybox-title").hide();
        });
    },
    helpers : {
        title: {
            type: 'over'
        }
    }
});


I have no idea where that section goes. That is my main question.
 
Back
Top