Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Hotspot in Javascript

    In my javascript I have made a slideshow which works but my hotspots are not showing up please help
    Code:
    <!doctype html>
    
    <html>
     <head>
     <link href="stylesheets/reset.css" rel="stylesheet" type="text/css" />
     <meta name="description" content="SmanCorp" />
     <script src="js/modernizr-2.5.2-respond-1.1.0.min.js" type="text/javascript"></script>
     <script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
     <script src="js/jquery.flexslider-min.js" type="text/javascript"></script>
     <script src="js/jquery.mousewheel.js" type="text/javascript"></script>
     <script src="js/jquery.easing.1.3.js" type="text/javascript"></script>
     <link href="css/style.css" rel="stylesheet" type="text/css" />
     <link href="css/flexslider.css" rel="stylesheet" type="text/css" />
     <script type="text/xml">
       <!--
       <oa:widgets>
         <oa:widget wid="2827522" binding="#OAWidget" ></oa:widget>
       </oa:widgets>
       -->
      </script>
     <script type="text/javascript" src="scripts/browser-compatibility.js"></script>
     </head>
    <body>
    <script type="text/javascript">
    // BeginOAWidget_Instance_2827522: #OAWidget
    $(window).load(function() {
         
        
          $('#slider').flexslider({
            namespace: "flex-",             //{NEW} String: Prefix string attached to the class of every element generated by the plugin
        selector: ".slides > li",       //{NEW} Selector: Must match a simple pattern. '{container} > {slide}' -- Ignore pattern at your own peril
          animation: "slide",
           easing: "swing",               //{NEW} String: Determines the easing method used in jQuery transitions. jQuery easing plugin is supported!    
          direction: "horizontal",   //String: Select the sliding direction, 'horizontal' or 'vertical'
        reverse: false,                 //{NEW} Boolean: Reverse the animation direction
        animationLoop: false,             //Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end
        smoothHeight: true,            //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode   
          slideshow: true,                //Boolean: Animate slider automatically
          slideshowSpeed: 5000,           //Integer: Set the speed of the slideshow cycling, in milliseconds
          animationSpeed: 600,         //Integer: Set the speed of animations, in milliseconds  
          initDelay: 0,                   //{NEW} Integer: Set an initialization delay, in milliseconds
          randomize: false,               //Boolean: Randomize slide order
           useCSS: true,                   //{NEW} Boolean: Slider will use CSS3 transitions if available
          touch: true,                    //{NEW} Boolean: Allow touch swipe navigation of the slider on touch-enabled devices
           video: false,                   //{NEW} Boolean: If using video in the slider, will prevent CSS3 3D Transforms to avoid graphical glitches
          directionNav: true,             //Boolean: Create navigation for previous/next navigation? (true/false)
          
          controlNav: true,               //Boolean: Create navigation for paging control of each clide? Note: Leave true for manualControls usage
          keyboard: true,              //Boolean: Allow slider navigating via keyboard left/right keys
          mousewheel: false,              //Boolean: Allow slider navigating via mousewheel
          prevText: "Previous",           //String: Set the text for the "previous" directionNav item
          nextText: "Next",               //String: Set the text for the "next" directionNav item
          pausePlay: false,               //Boolean: Create pause/play dynamic element
          pauseText: "Pause",             //String: Set the text for the "pause" pausePlay item
          playText: "Play",               //String: Set the text for the "play" pausePlay item
          startAt: 0,                //Integer: The slide that the slider should start on. Array notation (0 = first slide)
          pauseOnAction: true,            //Boolean: Pause the slideshow when interacting with control elements, highly recommended.
          pauseOnHover: true,            //Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering     
          start: function(){},            //Callback: function(slider) - Fires when the slider loads the first slide
          controlsContainer: "",          //Selector: Declare which container the navigation elements should be appended too. Default container is the flexSlider element. Example use would be ".flexslider-container", "#container", etc. If the given element is                                                 not found, the default action will be taken.
           manualControls: "",             //Selector: Declare custom control navigation. Example would be ".flex-control-nav li" or "#tabs-nav li img", etc. The number of elements in your controlNav should match the number of slides/tabs.
           // Carousel Options
        itemWidth: 0,                   //{NEW} Integer: Box-model width of individual carousel items, including horizontal borders and padding.
        itemMargin: 10,                  //{NEW} Integer: Margin between carousel items.
        minItems: 0,                    //{NEW} Integer: Minimum number of carousel items that should be visible. Items will resize fluidly when below this.
        maxItems: 0,                    //{NEW} Integer: Maxmimum number of carousel items that should be visible. Items will resize fluidly when above this limit.
        move: 0,                        //{NEW} Integer: Number of carousel items that should move on animation. If 0, slider will move all visible items.
          before: function(){},           //Callback: function(slider) - Fires asynchronously with each slider animation
          after: function(){},            //Callback: function(slider) - Fires after each slider animation completes
          end: function(){}               //Callback: function(slider) - Fires when the slider reaches the last slide (asynchronous)
          });
          });
    // EndOAWidget_Instance_2827522
    </script>
    <div id="main-container">
      <p>&nbsp;</p>
      <div id="main" class="wrapper clearfix">
        <!-- FlexSlider -->
     <div id="container">
          <div id="slider" class="flexslider">
            <ul class="slides">
              
              <li> <img src="anouncemets/Screen Shot 2014-02-26 at 9.00.40 PM.png" /> </li>
              <li> <img src="anouncemets/Screen Shot 2014-02-26 at 9.00.40 PM.png" /> </li>
    
     <li> <img src="anouncemets/Screen Shot 2014-02-26 at 9.01.21 PM.png" /> </li>
              <li> <img src="anouncemets/Screen Shot 2014-02-26 at 9.01.28 PM.png" /> </li>
              <li> <img src="anouncemets/Screen Shot 2014-02-26 at 9.01.42 PM.png" /> </li>
              <li> <img src="anouncemets/Screen Shot 2014-02-26 at 9.02.10 PM.png" usemap="#last" /></li>
            </ul>
      </div>
          </div>
      </div>
      <!-- #main -->
    </div>
    <!--end of slideshow-->
    <!-- Begin Slideshow maps-->
    <map name="last" id="last">
    <area shape="rect" coords="482.02px,118.0px,319.01px,861.01px" href="http://www.peopletopeople.com" usemap="#last" />
    
    
    <area shape="rect" coords="866,484,1178,504" href="http://www.peopletopeople.com">
    <area shape="rect" coords="858,240,1342,264" href="http://www.scholarshipplus.com/wake">
    <area shape="rect" coords="1066,1368,1370,1400" href="http://www.openhouse.waketech.edu">
    </map>
    
    <!-- #main-container -->
    
    </body>
    
    </html>
    Last edited by VIPStephan; 02-27-2014 at 07:56 AM. Reason: fixed code BB tags

  • #2
    New to the CF scene
    Join Date
    Feb 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The Javascript is from flex slider if you want the origin of the code it is available on the dreamweaver widget browser


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •