Results 1 to 2 of 2

Thread: Fotorama, can I change the arrow colors + center

  1. #1
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Question Fotorama, can I change the arrow colors + center

    I am trying to use Fotorama and noticed the arrows really blend into my white container. Is there a way to change the colors on the fotorama.png and fotorama@2x.png?

    Also how can I center the (large) images?

    HTML Code:
    <!DOCTYPE html>
    
    <html>
    
    <head>
      
    <title>Basic fotorama</title>
      
    <meta charset="utf-8">
      
    <meta name="viewport" content="width=device-width">
    
      
    <!-- jQuery -->
      
    <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    
      
    <script> // 1. Initialize fotorama manually.
        var $fotoramaDiv = jQuery('.fotorama_custom').fotorama();
    
        // 2. Get the API object.
        var fotorama = $fotoramaDiv.data('fotorama');
    
    // add our buttons 
    
        jQuery("<div class='fotorama_custom__arr fotorama_custom__arr--prev'><</div>").insertBefore(".fotorama__nav-");
        jQuery("<div class='fotorama_custom__arr fotorama_custom__arr--next'>></div>").insertAfter(".fotorama__nav-");
    
    
    // make the buttons functionality
        jQuery('.fotorama_custom__arr--prev').click(function () {
            fotorama.show('<');
        });
        jQuery('.fotorama_custom__arr--next').click(function () {
            fotorama.show('>');
        });   
    </script>
    <!-- Fotorama -->
      
    <link href="fotorama.css" rel="stylesheet">
      
    <script src="fotorama.js"></script>
    
      
    </head>
    
    
    <body>
    
    
    <!-- Fotorama -->
    <div class="fotorama" data-autoplay="true" data-autoplay="2500" data-nav="thumbs" data-width="920" data-ratio="920/500" data-max-width="100%">
      
     
    <img src="1.jpg">
      
    <img src="2.jpg">
      
    <img src="3.jpg">
      
    <img src="4.jpg">
      
    <img src="5.jpg">
    
    </div>
    
    </body>
    
    </html>
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	fotorama@2x.jpg 
Views:	638 
Size:	4.8 KB 
ID:	5470   Click image for larger version. 

Name:	fotorama.png 
Views:	344 
Size:	3.1 KB 
ID:	5471  

  2. #2
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Default

    CSS is too long to post.

    Javascript is too long to post.

    All the source code is here: https://github.com/artpolikarpov/fotorama

Similar Threads

  1. Change DIV BGcolor onmousover an array of colors
    By latendresse76 in forum JavaScript
    Replies: 1
    Last Post: 11-08-2012, 06:14 PM
  2. Change Smooth Nav Menu Arrow on Hover
    By charlieboy in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 06-26-2012, 08:38 AM
  3. How to change colors on a site with a click on a color set
    By Mattarsoft.com in forum JavaScript
    Replies: 0
    Last Post: 04-15-2009, 09:36 PM
  4. Scrollable Content II; Change Scrolling Arrow placements
    By bennybolet in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 12-24-2008, 10:47 PM
  5. Rich HTML Balloon Tooltip center the arrow
    By onigetoc in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 01-24-2008, 04:33 AM

Bookmarks

Posting Permissions

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